#anhle82 - Update Automatic Payment Methods
1 messages · Page 1 of 1 (latest)
Hi Rubeus, on front end, I use automatic_payment_method.enabled = true when showing payement element form to customer to allow customer to choose different payment method: Google Pay, Apple Pay, Card....
If customer calls in to make a payment, i just want to show card option in our backend for our rep to input card
i tried to set automatic_payment_methods.enabled = false and update the payment intent but it doesn't work. Keep showing all the element options, google pay, apple pay...
Google Pay and Apple Pay are card payment options, so those still showing up is expected. Are there other methods of payment showing up that you don't want to appear?
after pay, klarna
Have you tried updating the Payment Intent's payment_method_types to be only card? https://stripe.com/docs/api/payment_intents/update#update_payment_intent-payment_method_types
Can you show me the update request ID showing that attempt? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
pi_3KxcLCL7hEzSMtUX1jf7ITnm
req_qHTgRCvIlhOltR
oh, i think i know where my mistake is
I don't see you setting payment_method_types in that request.
You're setting payment_method_options, but that's a completely different property which does something else.
yes, I put it at a wrong place, just fixed it and got error now. Can you please check again req_PQFBzK3tL1MBY2
This request, i tried to reset automatic_payment_methods and got a different error
req_iY1ygoQGRbgzCj
Looking...
You can't set automatic_payment_methods when updating a Payment Intent. Try setting only payment_method_types
i did that in this request req_PQFBzK3tL1MBY2