Closed yllaw closed 2 years ago
@yllaw This is the first time I have heard of this function. It's easy to implement, so we'll be working on it in a few days.
Thank you!
@yllaw I released v3.8.0-0. Please try this: npm install @capacitor-community/stripe@3.8.0-0
https://github.com/capacitor-community/stripe/releases/tag/v3.8.0-0
note: if you use on web, you should update @stripe-elements/stripe-elements to 2.0.1.
@rdlabo Thank you for this!
Apple pay works as intended.
I have not been able to test Google pay yet.
@yllaw I'm glad you got it sorted out!
Did you use this plugin for production? If yes, please tell us what app. This help development this plugin.
👉 https://github.com/capacitor-community/stripe/issues/145
Thanks.
Currently when creating initializing the plugin I pass the Stripe public key.
The initialization succeeds. However requests to charge the payment intent on behalf of connected accounts will fail.
The stripe package is missing the 'Stripe-Account' header. The platform cannot charge payment intents with an application fee without the header.
The fix would be to add the 'Stripe-Account' header to requests as per the Stripe documentation
Essentially updating the initialization options interface to pass in the Stripe connect account id so that requests can be made on their behalf: