#devik-paymentintent-capture
1 messages · Page 1 of 1 (latest)
devik-paymentintent-capture
@nova solstice can you give me more details? Exact code, exact request id req_123 in the error response, etc.?
req_mBQ4SJ0gxpibs1
Okay so you need to change your code to call https://stripe.com/docs/api/payment_intents/capture instead of https://stripe.com/docs/api/charges/capture
correct
Ok, I must have read some outdated info. Thanks!
Actually, one more think.
After the money is captured, I'm doing a transfer to a connected account.
I was told here that I can link the transfer with the charge using source_transaction on the transfer.
Can I replace this with payment intent id as well, or do I need the charge after all?
no in that case you need the Charge id
And will this work if I'm capturing the intent, not the charge?
yep works the same. Just on capture you do it through the PaymentIntent and on Transfer creation you have to pass source_transaction: 'ch_123'