#musacoli-Payment
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
"requestId": "req_jFwM5Ro1NV96hu",
The shared request ID is for creating the payment intent, however, I want to be able to create the payment intent with or without the source attached to it, and then confirm the payment intent after the ACH_credit_transfer has been made to the source and it's now chargeable.
However, it's not clear how I do that, and attempts to do that say source isn't a valid property
OK, so there are two ways
- pass
confirm=truewhen creating the paymentIntent, or - don't pass the
sourcewhen creating the paymentIntent, pass it when confirming the paymentIntent.
I'd like to go for option2, because if I pass confirm when creating, if the Source doesn't have enough funds, the paymentIntent fails.
About 2, how do I do it ?
- Remove the
sourcefrom the paymentIntent creation request - Add the
sourcewhen confirming it (https://stripe.com/docs/api/payment_intents/confirm)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hi Jack, this is what happens when I keep passing the source during confirming a payment intent.
Here is my requestID: req_2omPFplC5T3mB3
Here is the command I run
stripe payment_intents confirm pi_3KxmsoCeuRyOLjnM1InWtLr6 --payment-method=src_1KuM4yCeuRyOLjnMi2RjeILz
can you use source instead of payment_method ?
It says source is an unknown flag
Send me the request ID?
Got it to work instead of doing
stripe payment_intents confirm pi_3KxmsoCeuRyOLjnM1InWtLr6 --source=src_1KuM4yCeuRyOLjnMi2RjeILz
I did this
stripe payment_intents confirm pi_3KxmsoCeuRyOLjnM1InWtLr6 -d "source"=src_1KuM4yCeuRyOLjnMi2RjeILz
Cool!
Thanks a bunch @scenic mica
Welcome! happy to help