pikaju / flutter-braintree

Flutter plugin that wraps the native Braintree SDKs. Enables payments with credit cards, PayPal, Google Pay and more.
https://pub.dev/packages/flutter_braintree
MIT License
66 stars 126 forks source link

Support for ApplePay #8

Closed ghost closed 4 years ago

ghost commented 4 years ago

Is there any sample for ApplePay ?

pikaju commented 4 years ago

I am currently unable to implement this, as I don't have any Apple devices.

ghost commented 4 years ago

Hello @Pikaju,

Is there any way to open the drop-in with just the Google Pay option? We tried to send the enableCard = false flag and change it on the Braintree portal, but the option in the drop-in still remained.Can you help us?

Thanks.

pikaju commented 4 years ago

Hello @Pikaju,

Is there any way to open the drop-in with just the Google Pay option? We tried to send the enableCard = false flag and change it on the Braintree portal, but the option in the drop-in still remained.Can you help us?

Thanks.

This may be a bug, I'll have to look into it.

hareshgediya commented 4 years ago

Hello, @JulioBoffo @Pikaju enableCard = false option did not handle in the swift plugin so that it will not working in iOS. I add those codes in plugin also make pull request for this. @Pikaju you can check in PR.

pikaju commented 4 years ago

Thank you @HareshGediya ! I merged your PR, so this issue should be fixed in version 1.0.3.

pikaju commented 4 years ago

Wait this was a separate issue...

hareshgediya commented 4 years ago

Hello, @Pikaju I add Apple Pay support in Drop-In UI. I make a pull request for Apple Pay support.

pikaju commented 4 years ago

Thank you @HareshGediya. I merged it in. Version 1.1.0 should come with ApplePay support.

SagarDhiman018 commented 4 years ago

Hi @Pikaju & @HareshGediya, I have done with all the required steps in Xcode, App Store Connect & Braintree control panel side. But the option of Apple pay in drop in is not showing. is there any further steps to enable Apple pay or it is the issue of regions(Country). i'm testing it in india. Although my region is not in the list of apple pay supported countries. i want to just show the apple pay option so that people in supported countries will be able use it. Thanks in advance for any help or suggestions.

hareshgediya commented 4 years ago

@sagar440 Please check the official Braintree setup for Apple Pay, and configure as suggest in that doc. After configuring your Braintree, Apple account, and Xcode adds bellow request into your project. Apple Pay option only available in supported countries otherwise it will not show.

var request = BraintreeDropInRequest(
tokenizationKey: "you need to set your token key from Braintree Panel",
  collectDeviceData: true,
  applePayRequest: BraintreeApplePayRequest(
    amount: 10.5,
    countryCode: "US",
    currencyCode: "USD",
    displayName: "Testing Apple Pay",
    appleMerchantID: "merchant id from apple account",
  ),
);

BraintreeDropInResult result = await BraintreeDropIn.start(request);
SagarDhiman018 commented 4 years ago

Thanks @HareshGediya for your quick response. And i have already added applePayRequest code in my project but no success. I just wants to know is there any way to test it in my region(India)? it seems you are also an indian. have you tested it before? Thanks,