react-native-arps-authorize-net
v1.0.1
Published
This react-native plugin usage Authorize.Net accept method to get token for the payment request made for given payment method.
Downloads
1
Readme
react-native-arps-authorize-net
This react-native plugin usage Authorize.Net accept method to get token for the payment request made for given payment method.
Installation
npm install react-native-arps-authorize-net
OR
yarn add react-native-arps-authorize-net
Usage
import {
ArpsAuthorizeNetEnv,
getTokenWithRequestForCard,
} from 'react-native-arps-authorize-net';
// ...
const promise = getTokenWithRequestForCard({
env: ArpsAuthorizeNetEnv.SANDBOX, //ArpsAuthorizeNetEnv.PRODUCTION
cardValues: {
loginID: '...',
clientKey: '...',
cardNumber: '4007000000027',
cardCVV: '0000',
expirationYear: 'YY',
expirationMonth: 'MM',
zipCode: '...', //Optional
cardHolderName: '...', //Optional
},
});
promise.then((value) => {
console.log('resolved', value);
});
promise.catch((error) => {
console.log('rejected', error);
});
License
MIT