react-native-arps-authorize-net
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

/react-native-arps-authorize-net/

    Package Sidebar

    Install

    npm i react-native-arps-authorize-net

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    63.6 kB

    Total Files

    21

    Last publish

    Collaborators

    • dev.arpssol