Create subscription using API that should go into trial_expired state when trial is over instead of going into 'live' status
Hello,
I am creating subscription from API where I set trial period of x days. After x days we want the trial to expire - means the subscription to go into expired status.
Currently once the trial is over customer gets an email with invoice and asked to be paid and teh status of the subscription is changed to LIVE.
What should i set correctly while creating subscription so it goes into the expected status??
Thanks in advance.