#rohitbhargav-subscription-trial
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Give me a moment to catch up here and I'll respond as soon as I can ๐ In the meantime, feel free to describe the issue you're having
hey hi
i need help implementing subscriptions with free trial using react js and go lang
i am unable to find clear documentation or resources related to this
Have you referred to this guide already?
https://stripe.com/docs/billing/subscriptions/trials
What are you having trouble with in react specifically?
on how to hold on to the payment by capturing it using payment elements and then charging the amount at the end of the trial
can i get some help
Hi ๐ I'm stepping in for @haughty rain . What do you mean by "capturing the payment"? If you are using a trial period there is no payment initially.
How are you planning on charging your customers?
when user selects a subscription plan we are going to capture the payment first but we will not process it till the time the trial doesnot complete. the amount deducts only after the trial end
similar to the OTT platform subscriptions like netflix
Okay you aren't capturing the payment but rather the payment method. A separate auth & capture can only hold funds for 7 days so I don't think that would work. In that case I think you would want to use a Setup Intent to create the Payment Method and assign it to the Customer.
https://stripe.com/docs/payments/save-and-reuse
When that request succeeds you can also set the created Payment Method as the default payment method:
https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
okay so any documentation for react js and go lang
For all the back-end code snippets you can select Go as the language displayed.
okay and react js
And for the front-end we show both HTML+JS and React abs