eopeter / flutter_stripe_payment

Add Stripe Payments to Flutter Application
Other
29 stars 27 forks source link

Missing ability to set Stripe Account when acting as a platform? #3

Closed krolaw closed 3 years ago

krolaw commented 5 years ago

When acting on behalf of another stripe account, we use our PublishableKey but the stripeAccountID of the other entity. This allows the platform to take a cut (ApplicationFee), yet the money (less Stripes charges and applicationFee) goes straight to the vendor.

Sorry if I've missed something obvious.

eopeter commented 5 years ago

this sounds like something that should be handled on the server after getting the payment Intent.

krolaw commented 5 years ago

See: https://github.com/ezet/stripe_sdk/issues/4#issuecomment-538381199

kennethcassel commented 4 years ago

https://stripe.com/docs/connect/direct-charges

It looks like this needs to be done on the client side when initializing Stripe. You pass in the connected account ID.

// Set the connected Stripe Account to collect payments on behalf of that account var stripe = Stripe('STRIPE_PUBLISHABLE_KEY', { stripeAccount: "{{CONNECTED_STRIPE_ACCOUNT_ID}}" });