react-native-paypal-module
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

react-native-paypal

A wrapper for the paypal sdk for both android and ios.

Getting started

$ yarn add react-native-paypal-module

Usage

import RNPaypal from 'react-native-paypal-module';

RNPaypal.paymentRequest({
    clientId: '<YOUR CLIENT ID>',
    environment: RNPaypal.ENVIRONMENT.NO_NETWORK,
    intent: RNPaypal.INTENT.SALE,
    price: 60,
    currency: 'USD',
    description: `Android testing`,
    acceptCreditCards: true
}).then(response => {
    console.log(response)
}).catch(err => {
    console.log(err.message)
})

Package Sidebar

Install

npm i react-native-paypal-module

Weekly Downloads

0

Version

1.0.12

License

MIT

Unpacked Size

113 kB

Total Files

26

Last publish

Collaborators

  • noddy1996