samkelleher / cordova-plugin-applepay

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

How is this application used with payment processors like Stripe? #60

Open MatthewOps opened 3 years ago

MatthewOps commented 3 years ago

I've been able to use this plugin to get apple pay to generate a token, but I'm not sure how to use that with stripe. At the beginning of this repo, it states that this plugin is compatible with any payment processor and uses stripe as an example, so I was wondering if perhaps I was missing something simple. I have been able to use stripe separately from this application, but I'm not sure how to get them working together.

dolosplus commented 3 years ago

You still need to decrypt the token on the server side. The plugin does not provide the decryption.

MatthewOps commented 3 years ago

Thanks for the reply! Do you have an example on how to do that decryption or a plugin that would do the decryption?

dolosplus commented 3 years ago

Sorry can't share the code, it belongs to my client. Each decryption has a different requirements and security. You can check on Apple documentation for the data format: https://developer.apple.com/library/archive/documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html

If you or anyone needs help, I am available for hire. Contact me on Github or my website.