#subhan_22659
1 messages · Page 1 of 1 (latest)
Can you share the sub_xxx ID?
sub_1NYMarGjLUhGYSPpQhlVFyBV
What's the confusion? Your original message has 3 statements
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
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.
Seems expected given thetrial_settingshash you provided when you created the Subscription: https://dashboard.stripe.com/test/logs/req_T2CiyUN54gw7ji
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
missing_payment_method: 'cancel'. Therefore we'll cancel at end of trial if no PM has been collected
so what should it be?
and is payment_method compulsory???
We have unchecked sending email as we are handling it at our own, so should I set payment_method to card while creating subscription?
You'd set default_payment_method to the pm_xxx object you have for your customer
Please review my code and help me out what fixes i should do here
Well, what do you want to do?
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
Then you need to collect payment details from your user during your flow: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#collect-payment
I'm not sure how you expect to take payment at the end of a trial if you don't have any payment information
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
In the example you shared (sub_1NYMarGjLUhGYSPpQhlVFyBV) we created a Setup Intent to facilitate payment collection and setup for recurring payments, pending_setup_intent on the response: https://dashboard.stripe.com/test/setup_intents/seti_1NYMarGjLUhGYSPpXLqNZ6EI
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You never attempted confirmation of that Setup Intent in your payment UI with the details colected, so we didn't save any payment info
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?
Your code the create the subscription seems fine. The issue is likely the front-end/mobile code with the payment UI
Are you using the Android SDK? https://stripe.com/docs/payments/save-and-reuse?platform=android&ui=payment-sheet