#george.segovia
1 messages · Page 1 of 1 (latest)
Hi, let me help you with this.
You can control this when creating the PaymentIntent with payment_method_types: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_types
Are you suggesting that on the other page, that would require to only display one payment option, either ACH or credit card, we could create a separate PaymentIntent per case?
A good example that describes our case in the UI is:
- User clicks a button "Pay through ACH"
- User clicks a button "Pay through Credit Card"
So on each click we create the payment intent passing payment_method_types with ["us_bank_account"] and ["card"] accordingly?
Correct.
And just to be sure I got this right.
- That part, about the payment intent, is taking place on BE, correct?
I mean the PaymentElement expects the payment intent to be created already, or at least that's how I understand it
- Does that apply for setup intents as well?
Correct.
Yes.
Thank you, feel free to close the thread
Happy to help.