Giter VIP home page Giter VIP logo

Comments (3)

samkelleher avatar samkelleher commented on August 22, 2024

Hello @nexus1892 - the plugin is just wrapping the call to canMakePayments() which is documented here > https://developer.apple.com/documentation/passkit/pkpaymentauthorizationviewcontroller/1616192-canmakepayments

I can't comment on your specific setup since I don't know if you've setup your Apple Pay correctly, the card is valid and its limitations, location and if you've setup your app correctly.

I the top of the CDVApplePay.m file, there are some hard coded requirments:

- (void)pluginInitialize
{

    // Set these to the payment cards accepted.
    // They will nearly always be the same.
    supportedPaymentNetworks = @[PKPaymentNetworkVisa, PKPaymentNetworkMasterCard, PKPaymentNetworkAmex];

    // Set the capabilities that your merchant supports
    // Adyen for example, only supports the 3DS one.
    merchantCapabilities = PKMerchantCapability3DS;// PKMerchantCapabilityEMV;


}

These are the most common settings and I've never enounctered a user with settings different this but maybe you're the first! Basically requries 3DS merchant with Visa, Amex, or MasterCard.

Check your card meets these requirements and if Apple Pay works in some other apps.

Thanks for stopping by, make another comment if you need more info.

from cordova-plugin-applepay.

nexus1892 avatar nexus1892 commented on August 22, 2024

Thank you for the reply. Unfortunately the problem persists. I added a second credit card to my wallet and confirmed that both cards are setup for ApplePay(mastercard and visa). I have not changed the hardcoded settings above. The only thing I have done in my code is make a call to ApplePay.canMakePayments with the same code provided in the tutorial. I added this code to the onDeviceReady after Cordova is initialized. Please advise for anything else I can try.

from cordova-plugin-applepay.

nexus1892 avatar nexus1892 commented on August 22, 2024

This was happening because Apple Pay wasn't enabled under Capabilities in the target settings in Xcode.

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.