#crsmith0511
1 messages · Page 1 of 1 (latest)
hello! so the only way you can call createPaymentMethod() on PaymentElement that is initialized with
paymentMethodCreation: 'manual'
that's because it is a different integration than the normal one.
sending you a link for what you're trying to do
specifically, you want this guide: https://stripe.com/docs/payments/build-a-two-step-confirmation
this allows you to
- create a PaymentMethod and inspect it and run any of your code
- create a PaymentIntent after and then confirm the PaymentIntent client-side still with Payment Element
"Where would this paymentMethodCreation: 'manual' go and will it impact my desired flow?"
that would go here, where you initialize Payment Element: https://stripe.com/docs/payments/build-a-two-step-confirmation#add-the-payment-element-to-your-checkout-page
But I am using the same payment element (component) for if a user is buying a subscription or adding a card while not buying a subscription. So if I implement this than I will have to rework what I have for allowing a customer to buy a subscription in this flow...no?
https://stripe.com/docs/payments/payment-element/migration?integration-path=one-time#additional-options
Is there any way to not close this thread? I have to step away from this for about 2 hours and I would like to come back to this if I have more questions
@marble bronze stepping in for my teammate. I'll reply here with a few more things but will archive this thread in ~20-30 mins. Once you're ready to come back, just ping in the main #dev-help channel again if you still need help. You can mention you were chatting with someone earlier and include a link to this thread