0.1.6 • Published 3 years ago

react-native-openupi v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-native-openupi

Deep linking UPI for react-native in Android

Installation

npm install react-native-openupi

or using yarn

yarn add react-native-openupi

Usage

import Openupi from 'react-native-openupi';

// ...

//replace below param as per your requirement

Openupi.StartPayment(
  'upi://pay?pa=[pa]&pn=[pn]&&tr=[orderID]&am=[amount]',
  orderID
).then((data) => {
  //resolve
  console.log(data);

  console.log(data.status , data.orderID + ': ' + data.message);

  return;
});

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT