#Naveed | Web3Auth
1 messages · Page 1 of 1 (latest)
Hi
When using PaymentIntent you can charge the customer for whatever amount you want. But in your scenario I'd recommend using Subscription API. Your customer will have two subscriptions (one yearly and another monthly)
hmmm so what about the UI elements, i cant use stripe PaymentElement?
Neither PaymentIntent nor SetupIntent is ideal for this use case am I right?
You can use it for collecting the PaymentMethod of the customer, then you use the same PaymentMethod for both Susbcriptions
Here is a guide in order to build a Subscription integration for one Subscription:
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
then you use the same PaymentMethod for the second Susbcription
ok so i can use PaymentElement to do the upfront charge
and then i can perhaps listen to webhook events and subscribe the customer on the backend to the monthly subscription
is that correct?
Yes that's an option!
but will the card be saved upon payment?
only then can i subscribe the customer to another plan right
if the card is saved to the annual sub, then it cant be used for other subs
No, you can used for all plans of that customer
Once you collect the PaymentMethod, you can used for the customer with another Subscription
ahhh
so u mentioned theres another option, is there the option of doing all this on the backend in one endpoint
oh actually hmm forget that
i think having customer successfully pay upfront fee and THEN subscribing to the other plan makes the most sense
Yes feel free to choose what you think it's better for your integration
but both works
in the example of doing it one endpoint though the disadvantage is that i cant do it via payment Element
is that correct
PaymentElement is for collecting the PaymentMethod, so in both cases you will need the Payment Elements.
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!