#anh3608-PaymentIntent
1 messages · Page 1 of 1 (latest)
Hi, you'd be able to pass payment_method_types {'card}, https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_types in this case.
yes i tried that but received the following error
"message": "You cannot provide both automatic_payment_methods and payment_method_types."
"type": "invalid_request_error"
You would not pass both, can you take out https://stripe.com/docs/api/payment_intents/create#create_payment_intent-automatic_payment_methods ?
how do I do that when updating a payment intent?
i tried to set automatic_payment_methods.enabled = false but doesn't work
Please take a look at pi_3LVh4cFjgDuKhVRV0dyLJDOb
I think you'd need to create the PaymentIntent without the automatic payment method
Alternatively, you can also disable your other PaymentMethods via the Dashboard: https://dashboard.stripe.com/settings/payment_methods
so it's not possible to change it once automatic payment method is set via creating payment intent
My application requires to show all available payment methods but there are some scenario which require me to update the payment intent to show card option only afterward
I'm not seeing an option to disable it after the fact, https://stripe.com/docs/api/payment_intents/update
ok thanks. Do you think this is something that your team can consider to implement in the future?
I'm testing one more thing to confirm, just give me a moment please
thanks
Confirming this is not possible, you'd create the PaymentIntent payment_method_types {'card'}