#anhle82 - Update Automatic Payment Methods

1 messages · Page 1 of 1 (latest)

loud orbit
#

Hello! Not sure I understand your question, can you provide more details?

arctic rover
#

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...

loud orbit
#

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?

arctic rover
#

after pay, klarna

loud orbit
arctic rover
#

yes I did, it doesn't work either

#

$stripe_data['payment_method_types'] = ["card"];

loud orbit
arctic rover
#

pi_3KxcLCL7hEzSMtUX1jf7ITnm

#

req_qHTgRCvIlhOltR

#

oh, i think i know where my mistake is

loud orbit
#

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.

arctic rover
#

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

loud orbit
#

Looking...

#

You can't set automatic_payment_methods when updating a Payment Intent. Try setting only payment_method_types

arctic rover
#

i did that in this request req_PQFBzK3tL1MBY2

loud orbit
#

Oh, sorry, I misread the error message.

#

I guess you can't override automatic payment methods once set. If you need to alter the payment_method_types after creation it seems like you'll need to stop using automatic payment methods.