#bwurtz999 - direct charge
1 messages · Page 1 of 1 (latest)
Hey there, can you share the requests where you create the shared payment method and then the erroring request to confirm the PI?
I suspect there might be a mismatch in the account context
The shared payment method creation is in my first message above
$stripe->paymentIntents->confirm(
$pi->id,
[]
);
^this is how I attempt to confirm the PI
Sure but I mean actual request IDs where you do this -- especially the error
such as req_12345 -- https://stripe.com/docs/api/request_ids
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
oh sorry
No worries - i should have been more clear
Confirm SetupIntent: req_QkUMjyJIgteWbr
Attach PM to Customer: req_vNP6Iwa3ISNyGg
Attempt to Confirm PI:
req_uZ1AgZ5VtjTcKW
strange that I don't see the payment method creation in the logs
wait sorry
ignore the above
use these:
SetupIntent: req_yBAhoLOFWDy1oS
Confirm SetupIntent: req_QkUMjyJIgteWbr
Attach SetupIntent: req_zhv5kKBJPItc7I
Confirm Payment Intent (fails): req_7lEKgTnfHtgqsL
I still don't see a payment method creation in the logs
Gotcha - that one is here: https://dashboard.stripe.com/test/logs/req_gRpb0qRfS4JoeO
I read in the docs that I had to create a cloned payment method to charge a custom across connected accounts. am I doing this right?
to charge a customer*
Oh, oops
OK yea the setup here is all valid
The only issue is that last request to confirm the PI isn't being done with the account header
In the API docs I don't see an option for a connected_account value
It's the same header as the other requests:
https://stripe.com/docs/api/connected_accounts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
It applies to all API calls
ohhhh
So the same thing you did when creating the PI you need to do when confirming