Comments (2)
Hello!
If you want to use a native SDK, like the one stripe provide, you'll have to fork and adapt this plugin. Actually I originally forked the plugin and it had a Stripe SDK embedded, but the original found was very unstable and 'early alpha' - didn't have the completion handling or anything. This is why I wrote this plugin as I needed full production safe plugin.
Basically, you need to intercept the Apple PKPayment - the object that Apple Pay generates - and give it to stripe in native code, rather than in JavaScript (via cordova) which this plugin is for.
Ideally you'd find a Cordova Stripe plugin - and you can do it all separately within your JavaScript application without rolling your own customisations in this plugin.
https://github.com/samkelleher/cordova-plugin-applepay/blob/master/src/ios/CDVApplePay.m#L589
This line is where the PKPayment is handled, and this is what the Stripe SDK is referring to. Here you can write your own code from the Stripe sample.
Drop me a message/comment if you need any pointers.
Thanks,
Sam
from cordova-plugin-applepay.
Thanks Sam,
When I get a chance I will take a look.
Howard
From: Sam Kelleher [mailto:[email protected]]
Sent: Thursday, June 09, 2016 10:01 AM
To: samkelleher/cordova-plugin-applepay [email protected]
Cc: hsmith825 [email protected]; Author [email protected]
Subject: Re: [samkelleher/cordova-plugin-applepay] Token not valid for Stripe (#7)
Hello!
If you want to use a native SDK, like the one stripe provide, you'll have to fork and adapt this plugin. Actually I originally forked the plugin and it had a Stripe SDK embedded, but the original found was very unstable and 'early alpha' - didn't have the completion handling or anything. This is why I wrote this plugin as I needed full production safe plugin.
Basically, you need to intercept the Apple PKPayment - the object that Apple Pay generates - and give it to stripe in native code, rather than in JavaScript (via cordova) which this plugin is for.
Ideally you'd find a Cordova Stripe plugin - and you can do it all separately within your JavaScript application without rolling your own customisations in this plugin.
https://github.com/samkelleher/cordova-plugin-applepay/blob/master/src/ios/CDVApplePay.m#L589
This line is where the PKPayment is handled, and this is what the Stripe SDK is referring to. Here you can write your own code from the Stripe sample.
Drop me a message/comment if you need any pointers.
Thanks,
Sam
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub #7 (comment) , or mute the thread https://github.com/notifications/unsubscribe/ABVFjM8EXZORPrbI2qsNBsfdDRrnI_XBks5qKEbOgaJpZM4Iu-iN . https://github.com/notifications/beacon/ABVFjOEvuJpLr17RWXsWyN9v9m4QXIYvks5qKEbOgaJpZM4Iu-iN.gif
from cordova-plugin-applepay.
Related Issues (20)
- Does not work with iOS 12 HOT 4
- Payment Response not returning stripetoken HOT 1
- What will be the method for setup Apple pay?
- Can't access methods
- Apple pay with stripe in ionic 3 HOT 6
- How to contribute to this repo? HOT 1
- How to process Base64 token on ApplePay.makePaymentRequest(order) ? HOT 4
- Getting error [General] Connection to remote alert view service failed
- Subscription payment HOT 1
- Trying to add PKPaymentSummaryItemTypePending support, got "PKPaymentAuthorizationViewController was nil" HOT 1
- How to charge stripe with paymentData HOT 7
- Compatibility with iOS 13 ?
- Trying to handle a timeout error before calling completeLastTransaction
- Apple store declined app: PAY END_MERCHANT_NAME
- Not working since ios 13.3 HOT 12
- Is it possible to use this plugin for subscription payments?
- Hi how I connect with stripe for applepay? HOT 2
- Payment Not Completed HOT 1
- How is this application used with payment processors like Stripe? HOT 3
- Ionic Capacitor2 Vue.js Apple Pay Question
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-applepay.