Giter VIP home page Giter VIP logo

Comments (4)

samkelleher avatar samkelleher commented on August 22, 2024

Thanks for stopping by @Graham-C.

On the readme this error is described.

If in your catch you get the message This device can make payments but has no supported cards - you can decide if you want to handle this by showing the 'Setup Apple Pay' buttons instead of the normal 'Pay with Apple Bay' buttons as per the Apple Guidelines.

It means that Apple Pay doesn't find a supported card as described in their docs:

If canMakePayments returns YES but canMakePaymentsUsingNetworks: returns NO, the device supports Apple Pay, but the user has not added a card for any of the requested networks. You can, optionally, display a payment setup button, prompting the user to set up his or her card. As soon as the user taps this button, initiate the process of setting up a new card (for example, by calling the openPaymentSetup method).

The supported payment methods can be defined in code: see https://github.com/samkelleher/cordova-plugin-applepay/blob/master/src/ios/CDVApplePay.m#L14

I would try make the sandbox accounts again, can you see them for example in another Apple Pay apps?

from cordova-plugin-applepay.

Graham-C avatar Graham-C commented on August 22, 2024

Hi @samkelleher, thanks for your quick reply.

When navigating to https://stripe.com/docs/apple-pay/web on the device the Apple Pay button near the top of the page becomes enabled and tapping this brings up the payment sheet with the 2 test cards I have in my wallet available.

img_0059

img_0060

Does the plugin work for yourself when you have only test cards in the wallet?

from cordova-plugin-applepay.

Graham-C avatar Graham-C commented on August 22, 2024

Fixed this now by registering a merchant ID via apple developer and stripe and then including this ID in Apple pay capabilities for my app via Xcode (https://stripe.com/docs/apple-pay/apps). Don't think this is mentioned in the readme which might be worth updating. Thanks

from cordova-plugin-applepay.

Jamesmallon1 avatar Jamesmallon1 commented on August 22, 2024

Hi Graham,

Okay so I followed the stripe guide now I am stuck as I am developing in cordova for this which is HTML and CSS etc so how do I use that in xcode?

James

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.