Accept Payments with Apple Pay for React Native apps.
$ yarn add react-native-apay
Autolinking will just do the job.
Mostly automatic installation
$ react-native link react-native-apay
Link using Cocoapods by adding this to your
pod 'RNApplePay', :path => '../node_modules/react-native-apay'
- In XCode, in the project navigator, right click
Add Files to [your project's name]
- Go to
- In XCode, in the project navigator, select your project. Add
libRNApplePay.ato your project's
Link Binary With Libraries
- Run your project (
;const requestData =merchantIdentifier: 'merchant.com.example'supportedNetworks: 'mastercard' 'visa'countryCode: 'US'currencyCode: 'USD'paymentSummaryItems:label: 'Item label'amount: '100.00'// Check if ApplePay is availableif ApplePaycanMakePaymentsApplePay;;
You can run the demo by cloning the project and running:
$ yarn demo