rns-paypal-wrapper
add invoiceNumber for android, welcome to pr for IOS
React Native PayPal wrapper for iOS and Android
Getting started
$ yarn add rns-paypal-wrapper
Installation
$ react-native link rns-paypal-wrapper
Extra steps for iOS 🙄 see here
Usage
Payment
; // 3 env available: NO_NETWORK, SANDBOX, PRODUCTIONPayPal;PayPal ;
FuturePayment
; // Required for Future Paymentsconst options = merchantName : "Merchant name" merchantPrivacyPolicyUri: "https://example.com/privacy" merchantUserAgreementUri: "https://example.com/useragreement"// 3 env available: NO_NETWORK, SANDBOX, PRODUCTIONPayPal; PayPal ; // To decrease payment declines, you must specify a metadata ID header (PayPal-Client-Metadata-Id) // in the payment call. See docs: // https://developer.paypal.com/docs/integration/mobile/make-future-payment/#required-best-practices-for-future-payments const metadataID = await PayPal;
Acknowledgement
This project is fork https://github.com/taessina/react-native-paypal-wrapper