#Adam- source_transaction

1 messages · Page 1 of 1 (latest)

burnt creek
#

Hi Adam, the source_transaction is to tie a transfer to an existing charge

glad leaf
#

Okay thank you, do you think that means I dont need to use transfer_group then?

burnt creek
#

Yes you don't need to specify a transfer_group, Strip automatically create one for you

glad leaf
#

Nice, now we just need to create a random source_transaction ID right?

burnt creek
#

I'm afraid that is not the case, you need to pass in a valid charge ID.

glad leaf
#

Okay, does this ChargeID come from the PaymentIntent?

#

Reading up on the docs to check now

#

Or do you think that means we need to make a charge object?

#

But then that would make me think that the paymentIntent is supposed to be the one that does the charging

burnt creek
#

Hi Adam, sorry for the waiting

#

you can get the charge object ID from a successful payment intent object

glad leaf
#

Thank you, will read over this

glad leaf
#

Okay so...

glad leaf
#

Sorry, is this the charges object you're referring to? "charges": { "object": "list", "data": [], "has_more": false, "url": "/v1/charges?payment_intent=pi_3JxLkRHBsyfQ9rBx0t0GI47K" },

#

I'm looking at your link

#

It just doesnt look like it has an ID

burnt creek
#

what's the status of this payment intent? if it is succeed, then there will be charge objects in this list

glad leaf
#

Oh I havent tried it yet, I just took that from the docs

#

I checked Stripe Dashboard, I see it here

burnt creek
#

Yup, you've got the charge ID 🙂