#Naveed | Web3Auth

1 messages · Page 1 of 1 (latest)

twilit yachtBOT
graceful sonnet
#

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)

wise steppe
#

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?

graceful sonnet
#

You can use it for collecting the PaymentMethod of the customer, then you use the same PaymentMethod for both Susbcriptions

#

then you use the same PaymentMethod for the second Susbcription

wise steppe
#

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?

graceful sonnet
#

Yes that's an option!

wise steppe
#

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

graceful sonnet
#

No, you can used for all plans of that customer

graceful sonnet
wise steppe
#

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

graceful sonnet
#

Yes feel free to choose what you think it's better for your integration

#

but both works

wise steppe
#

in the example of doing it one endpoint though the disadvantage is that i cant do it via payment Element

#

is that correct

graceful sonnet
#

PaymentElement is for collecting the PaymentMethod, so in both cases you will need the Payment Elements.

strange notch
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!