samkelleher / cordova-plugin-applepay

A complete Cordova plugin that adds Apple Pay support.
Apache License 2.0
47 stars 63 forks source link

How to charge stripe with paymentData #52

Open arashcy opened 5 years ago

arashcy commented 5 years ago

How do I create a charge with Stripe with PaymentData? It throws an error that the string is invalid and too long. I decoded paymentdata but don't know how to use for stripe.charge()

genuineman commented 4 years ago

Same issue to me. Looking for help..

TravBradfield commented 4 years ago

Please keep us posted, I'm looking for the answer to this question now too.

carys-cc commented 4 years ago

https://github.com/monoku/cordova-plugin-applepay-stripe

Use the above plugin instead. The paymentResponse object contains a Stripe token which you can then throw to a Stripe Charge API. Got it working just this morning.

colbytown commented 3 years ago

@patrickchoi I tried using that plugin but it's extremely old and using depreciated code everywhere. Kept erroring out.

Anyone have a current solution?

madmacc commented 3 years ago

Did anyone end up finding a solution to work? I am reluctant to use even try a plugin that hasn't been updated in over 5 years (the one patrickchoi recommended).

alexUzgin commented 3 years ago

+1

madmacc commented 3 years ago

@capacitor-community/stripe

https://www.npmjs.com/package/@capacitor-community/stripe