#bhanu365 - Subscriptions

1 messages · Page 1 of 1 (latest)

balmy nebula
#

HI 👋

#

You can use either since both are just ways to capture payment method details. We recommend the Payment Element as it covers more use cases but if all you want is cards then the Card Element will work just fine

full oasis
#

We just have 3 subscription (1 month, 6 months and 12 months) so i just need a functionality that customer can buy a subscription. We can show that subscription on our dashboard date time and next due date. There are auto renewal checkbox if customers checked the checkbox so the subscription will automatically renew on every month or depends on their subscription plan.

balmy nebula
#

Okay...what is your real question then?

full oasis
#

What should I need to use for this functionality like which element (payment or card ) and what steps I need to use

balmy nebula
full oasis
# full oasis

There are 4 subscription as you can see in the screenshot. 1st one is one time payment and other 3 is recurring subscription

balmy nebula
#

All Subscriptions are recurring. A one time payment is just that, a payment

#

The word Subscription implies a recurring charge

full oasis
#

Can you describe me the steps as well because i have read the documents so many times but unable to do implement. There are so many confusion in the doc. I already wasted 2 weeks on it

#

Can you help me

#

Please

balmy nebula
#

Okay so what have you built already?

#

How far are you in your integration?

full oasis
#

I just implemented payment element

#

Do I need to use payment element for it?

balmy nebula
#

Okay but that's just the front-end. Do you have recurring Prices in Stripe? Customers?

#

As I said the first time, you can use either

full oasis
full oasis
balmy nebula
#

Okay so if you already have the Payment Element up and running then it's just the basic Subscription integration.

#

Which is the doc I linked.

#

Your users select a recurring price. Your server creates the Subscription for the Customer record for that user

#

Your server sends the subscription.latest_invoice.payment_intent.client_secret to your front-end

#

Your front end uses the client_secret to create the Payment Element and you collect payment

full oasis
#

Yes already done that part

#

Then I call a function Stripe.comfirmPayment

balmy nebula
#

Okay

#

And are you running into any errors there?

full oasis
#

No, I successfully purchased the subscription

#

I am going the right track?

balmy nebula
#

Yes. It sounds like you have a fully functional subscription integration. Can you share a request ID for one of the subscriptions so I can check?

full oasis
#

sub_1LZaLiFmM52WOkSo0KQDIKdW

#

If a user want to update their card details on our portal then what I need to use for it?

balmy nebula
#

Either card or payment element will work

full oasis
#

So I need to update payment method? Or which API i need to use for update their card details so the next time when payment automatically deduct updated card details

balmy nebula