Skip to content

karmasoft/react-native-card-connect

Repository files navigation

react-native-card-connect

Note These bindings only implement card tokenization for now (iOS and Android). Feel free to fork, bridge additional functionality and create a pull request.

Getting started

$ npm install react-native-card-connect --save

Mostly automatic installation

For RN Version < 0.60 (no autolinking)

$ react-native link react-native-card-connect

For RN Version > 0.60 (with autolinking) nothing needs to be done other than installing the package.

Usage

import CardConnect from 'react-native-card-connect';
import moment from 'moment';

expDate = moment('12/22', 'MM/YY').toISOString();
CardConnect.setEndpoint('fts.cardconnect.com')
// card, expiration date, CVV
CardConnect.generateTokenForCard('4788250000121443', expDate, '123', (error, token) => {
  // handle error or generated token
});

Additional Information

CardConnect Mobile SDK

About

ReactNative CardConnect SDK Bindings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •