#Petr
1 messages · Page 1 of 1 (latest)
Hi there!
One you have a PaymentMethod saved with setup_future_usage, then you can directly create a PaymentIntent to make a new payment.
You can see an example of this here: https://stripe.com/docs/payments/save-and-reuse?platform=web#charge-saved-payment-method
'payment_method' => '{{PAYMENT_METHOD_ID}}',
this is payment_intent after pay&
I'm not sure I understand. What is your question?
where can i get PAYMENT_METHOD_ID
Once the Checkout Session is completed, it should contain a PaymentIntent (or SetupIntent). And inside the PaymentIntent (or SetupIntent) there is the payment_method
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
},
Yes, so now retrieve this PaymentIntent: pi_3N8KbgJ5Wt7WZ6lh1B4vVB7L and it contains a PaymentMethod you can reuse