Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 637 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 637 Bytes

react-native-esewa

Getting started

$ npm install react-native-esewa --save Or $ yarn add react-native-esewa

Mostly automatic installation

$ react-native link react-native-esewa

Usage

import Esewa from 'react-native-esewa';

// INITILIZE
Esewa.init(MERCHANT_ID,MERCHANT_SECRET_KEY,ENVIRONMENT);
// Calling helper function to make payment through esewa.
Esewa.makePayment(amount,productName,productID,callbackURL);

// JS implementation
function onPress(){
  Esewa.init(MERCHANT_ID,MERCHANT_SECRET_KEY,ENVIRONMENT);
  Esewa.makePayment(amount,productName,productID,callbackURL);
}

// TODO: iOS