#cashiersprit

1 messages · Page 1 of 1 (latest)

umbral boltBOT
dawn lake
sage bay
#

yes, my is automatic

#
{
  "currency": "usd",
  "automatic_payment_methods": {
    "enabled": "true"
  },
  "amount": "1000",
  "secret_key_confirmation": "required"
}

we always use automatic

dawn lake
sage bay
#

but this is update payment intent. we always set "automatic_payment_methods": {
"enabled": "true"
}, when create payment intent

#

automatic_payment_methods needed for create payment intent, not for update payment intent? I am confused now

prime crest
#

That linked request that my colleague provided isn't an update request it's a creation request. Notice how a payment intent id isn't included in the request uri. So, you'll need to pass automatic payment methods to true

sage bay
#

ah, sorry about that. let me check again

sage bay
#

all good. it works for me. sorry, I wrote the code too long times ago. I forgot to charge with the saved payment method is actually create a payment intent 😂

#

thanks for all your help

prime crest
#

No problem! Happy to help