engineerapart / cordova-plugin-braintree

:credit_card: A Cordova plugin for the Braintree mobile payment processing SDK.
MIT License
3 stars 12 forks source link

ApplePay does not show up #2

Open tulga870911 opened 6 years ago

tulga870911 commented 6 years ago

I called BraintreePlugin.setupApplePay before presentDropInPaymentUI(), but in the Drop-In UI, ApplePay does not show up. In the callback of setupApplePay, I can see that ApplePay is enabled.

tulga870911 commented 6 years ago

@barrysteyn @kwtangerine @codinronan Thanks in advance for your help.

Just FYI, this is the output of ionic info.

Cordova CLI: 8.0.0 Ionic Framework Version: 2.0.0-beta.2 Ionic CLI Version: 2.2.3 Ionic App Lib Version: 2.2.1 Ionic App Scripts Version: 2.1.4 ios-deploy version: 1.9.2 ios-sim version: Not installed OS: macOS Node Version: v6.9.2 Xcode version: Xcode 8.3.2 Build version 8E2002

codinronan commented 6 years ago

@tulga870911 it's probably better to ask over on https://github.com/Taracque/cordova-plugin-braintree, which is where this plugin originates, you'll get more help there :) I just brought it up to date and opened a PR back to that repo.

tulga870911 commented 6 years ago

@codinronan Thanks for your quick reply. I've already created an issue there days ago, but didn't get any reply. I have been struggling with this plugin for weeks, and was thirsty for a help.

Just curious, does Apple Pay show up on your end?

I tried everything I could do. I tried to build it in Xcode8, and then Xcode 9. Neither worked. I'd really appreciate it if you could give me any hint or clue.

Thanks again.

codinronan commented 6 years ago

@tulga870911 Yes it does, in order for it to show up you need 4 things:

  1. Make sure you have configured an Apple Pay merchant on your iTunesConnect account, and added that key to your entitlements
  2. Make sure that entitlement is being used in xcode
  3. Make sure that merchant ID is list in the Capabilities screen in Xcode
  4. Configure the plugin as described

That's all I did and it works - getting the account + entitlements right can be tricky.

tulga870911 commented 6 years ago

@codinronan Thanks again for your detailed explanation.

In terms of the 4 steps you mentioned, I think I followed them correctly at least up to 3. When I use this plugin in the same project, Apple Pay shows up. https://www.npmjs.com/package/cordova-plugin-applepay

The following is how I used the plugin. I've displayed the message on the screen, and I can see "set up Apple Pay" image

tulga870911 commented 6 years ago

@codinronan @barrysteyn @kwtangerine Does this plugin work in Ionic 2?

tulga870911 commented 6 years ago

Anybody used this plugin in Ionic 2?