kraffslol / react-native-braintree-xplat

Cross-platform Braintree module for React Native
MIT License
81 stars 121 forks source link

Add Apple Pay functionality #102

Open dimaportenko opened 6 years ago

dimaportenko commented 6 years ago

you can use it as follows

BTClient.showApplePayViewController({
        merchantIdentifier: 'your.merchant.id',
        paymentSummaryItems: [
          {label: 'Subtotals', amount: subtotals},
          {label: 'Shipping', amount: shipping},
          {label: 'Totals', amount: totals},
        ]
      })
        .then((response) => {
          console.log(response);
          if (response.nonce) {

          }
        });