-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capture Stripe Connect Direct Charges #2765
Comments
Resolved by #2912 |
@spencern Do you remember how capturing "on the behalf of another stripe account" works ? Cannot find anything documented here https://stripe.com/docs/api/charges/capture Thanx |
Solved! If it can help anyone, you can use the "Stripe-Account header" technique with every api calls https://stripe.com/docs/connect/authentication#authentication-via-the-stripe-account-header (doc is somehow hard to find) |
The Stripe Connect implementation is currently incomplete.
The stripe/payment/createCharges method is capable of creating direct charges on behalf of another stripe account, but the our stripe capture method does not currently support capturing direct charges.
This ticket is for updating that capture payment method to support capturing payment for charges created by Stripe Connect on behalf of another stripe account (e.g. for a marketplace merchant).
I'm not 100% certain why this doesn't work as is, but my guess would be that we need to pass the merchant
stripe_account
into the charges/:id/capture call.I think this is a good time to update the existing Stripe capture method to use the node-stripe lib as well and you should be able to follow the patterns set in the
stripe/payment/createCharges
method to figure that part out.Resources and other notes
stripe_account
argument which is how we determine which stripe account/shop to create a charge on behalf of.The text was updated successfully, but these errors were encountered: