#musacoli-Payment

1 messages · Page 1 of 1 (latest)

scenic mica
cosmic yoke
#

"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

scenic mica
#

OK, so there are two ways

  1. pass confirm=true when creating the paymentIntent, or
  2. don't pass the source when creating the paymentIntent, pass it when confirming the paymentIntent.
cosmic yoke
#

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 ?

scenic mica
cosmic yoke
#

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

scenic mica
#

can you use source instead of payment_method ?

cosmic yoke
#

It says source is an unknown flag

scenic mica
#

Send me the request ID?

cosmic yoke
#

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

scenic mica
#

Cool!

cosmic yoke
#

Thanks a bunch @scenic mica

scenic mica
#

Welcome! happy to help