#subhan_22659

1 messages · Page 1 of 1 (latest)

craggy daggerBOT
tawdry sparrow
#

Can you share the sub_xxx ID?

woeful gull
#

sub_1NYMarGjLUhGYSPpQhlVFyBV

tawdry sparrow
#

What's the confusion? Your original message has 3 statements

woeful gull
#

Confusion is I used stripe API explorer and ends my trial 3 minutes after current time
then when i checked it my subscription is cancelled.
However it should not cancel the subscription only ends the trial and automatically the date of current_period_ends should be updated
Note I have configured webhook that updates the database status and current_period_ends and trial ends

tawdry sparrow
#

missing_payment_method: 'cancel'. Therefore we'll cancel at end of trial if no PM has been collected

woeful gull
#

so what should it be?
and is payment_method compulsory???

tawdry sparrow
woeful gull
#

We have unchecked sending email as we are handling it at our own, so should I set payment_method to card while creating subscription?

tawdry sparrow
#

You'd set default_payment_method to the pm_xxx object you have for your customer

woeful gull
#

Please review my code and help me out what fixes i should do here

tawdry sparrow
#

Well, what do you want to do?

woeful gull
#

As discussed that I used stripe API explorer and ends my trial 3 minutes after current time
then when i checked it my subscription is cancelled.
However it should not cancel the subscription only ends the trial and automatically the date of current_period_ends should be updated
Note I have configured webhook that updates the database status and current_period_ends and trial ends

#

Also payment should be detected after trial ends

#

and date of subscription end is fixed

tawdry sparrow
#

I'm not sure how you expect to take payment at the end of a trial if you don't have any payment information

woeful gull
#

On Application stripe sheet opens so why stripe not automatically have any payment information
and my code works for
payment should be detected after trial ends
and date of subscription end is fixed

tawdry sparrow
#

You never attempted confirmation of that Setup Intent in your payment UI with the details colected, so we didn't save any payment info

woeful gull
#

So you mean mobile developer set it (confirmation of that Setup Intent when payemnt sheet of stripe opens)
then my code and required need will work smoothly?

#

Or should I update my code on API end?

tawdry sparrow
#

Your code the create the subscription seems fine. The issue is likely the front-end/mobile code with the payment UI