How to use the expo-payments-stripe.PaymentsStripe.paymentRequestWithApplePayAsync function in expo-payments-stripe

To help you get started, we’ve selected a few expo-payments-stripe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / packages / expo-payments-stripe / examples / without-expokit / src / ApplePay.js View on Github external
handleApplePayPress = async () => {
    try {
      this.setState({
        loading: true,
        status: null,
        token: null,
      });
      const token = await Stripe.paymentRequestWithApplePayAsync(
        [
          {
            label: 'Whisky',
            amount: '0.10',
          },
          {
            label: 'Vine',
            amount: '0.30',
          },
          {
            label: 'Tipsi',
            amount: '0.60',
          },
        ],
        {
          //requiredBillingAddressFields: ['all'],