#Petr

1 messages · Page 1 of 1 (latest)

gritty kiteBOT
robust garden
#

Hi there!

ember nova
#

'payment_method' => '{{PAYMENT_METHOD_ID}}',
this is payment_intent after pay&

robust garden
#

I'm not sure I understand. What is your question?

ember nova
#

where can i get PAYMENT_METHOD_ID

robust garden
#

Once the Checkout Session is completed, it should contain a PaymentIntent (or SetupIntent). And inside the PaymentIntent (or SetupIntent) there is the payment_method

ember nova
#

Once the Checkout Session is completed, I get
"payment_intent": "pi_3N8KbgJ5Wt7WZ6lh1B4vVB7L",
"payment_link": null,
"payment_method_collection": "always",
"payment_method_options": {
},
"payment_method_types": [
"card",
"link"
],
"payment_status": "paid",
"phone_number_collection": {
"enabled": false
},

robust garden
#

Yes, so now retrieve this PaymentIntent: pi_3N8KbgJ5Wt7WZ6lh1B4vVB7L and it contains a PaymentMethod you can reuse