Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApplePay does not show up #2

Open
tulga870911 opened this issue Jan 19, 2018 · 7 comments
Open

ApplePay does not show up #2

tulga870911 opened this issue Jan 19, 2018 · 7 comments

Comments

@tulga870911
Copy link

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
Copy link
Author

@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
Copy link
Member

@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
Copy link
Author

@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
Copy link
Member

@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
Copy link
Author

tulga870911 commented Jan 19, 2018

@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
Copy link
Author

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

@tulga870911
Copy link
Author

Anybody used this plugin in Ionic 2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants