@meerasolution/react-native-ms-upi-payment
Add upi payment option to your android app in react native.
Last updated 2 months ago by kkmadhpuriya .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @meerasolution/react-native-ms-upi-payment 
SYNC missed versions from official npm registry.

react-native-ms-upi-payment

Getting started

$ npm install @meerasolution/react-native-ms-upi-payment --save
or
$ yarn add @meerasolution/react-native-ms-upi-payment

Mostly automatic installation

$ react-native link @meerasolution/react-native-ms-upi-payment

Usage

import MsUpiPayment from '@meerasolution/react-native-ms-upi-payment';

async calledBtn() {
    let txnId = 'MSTX' + Math.floor(Math.random() * 100000) + 1; // Transection ID
    let txnRefId = 'MSTXF' + Math.floor(Math.random() * 1000) + 1; // Transection Ref ID
    try {
      let data = await MsUpiPayment.makePayment({
        VPA: '7987060197@okbizaxis', // Required
        payeeName: 'Meera Solution', // Required
        txnID: txnId, // Required
        txnRefId: txnRefId, // Required
        payeeAmount: '1', // Required
        currencyCode: 'INR', // Optional (Default 'INR')
        txnNote: 'Test MS Payment', // Optional
        refUrl: '', // Optional
      });
      console.log('payment response');
      console.log(data);
    } catch (e) {
      console.log('Error');
      Alert.alert('OOPS!', e.message);
      console.log(e.message);
    }
}

Issue

For Any Issue mail us on kkmadhpuriya@gmail.com

Current Tags

  • 2.0.2                                ...           latest (2 months ago)

6 Versions

  • 2.0.2                                ...           2 months ago
  • 2.0.1                                ...           2 months ago
  • 2.0.0                                ...           2 months ago
  • 1.0.2                                ...           2 months ago
  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (422)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |