#rohitbhargav-subscription-trial

1 messages ยท Page 1 of 1 (latest)

haughty rain
#

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

hoary pelican
#

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

haughty rain
hoary pelican
#

yes

#

i need help in react js

haughty rain
#

What are you having trouble with in react specifically?

hoary pelican
#

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

weak root
#

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?

hoary pelican
#

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

weak root
#

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

hoary pelican
#

okay so any documentation for react js and go lang

weak root
#

For all the back-end code snippets you can select Go as the language displayed.

hoary pelican
#

okay and react js

weak root
#

And for the front-end we show both HTML+JS and React abs

hoary pelican
#

okay

#

okay

#

thank you