Giter VIP home page Giter VIP logo

Comments (2)

samkelleher avatar samkelleher commented on August 22, 2024

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.

hsmith825 avatar hsmith825 commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.