Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-allinone-upi

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-allinone-upi

UPI Payment using installed UPI Payment Apps in Mobile

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-allinone-upi

UPI Payment using installed UPI Payment Apps in Mobile. Currently, supported only on Android.

Installation

npm install react-native-allinone-upi

Usage

import { initiateTransaction } from 'react-native-allinone-upi';

// ...

initiateTransaction({
  upi: 'upi_id', // Required
  transactionId: 'transaction_id', // Required
  currency: 'INR', // Currency Code (Required)
  merchantCategoryCode: 'Merchant Category Code', // Four digit Code. (Required)
  payeeName: 'Name of the Payee', // Required
  amount: '1', // Amount must be in String and must be greater than 1.00 (Required)
  note: 'test', // Additional Notes or description (Optional)
})
  .then((res) => {
    console.log(res, 'RESPONSE');
  })
  .catch((e) => {
    console.log(e.message, 'ERROR');
  });

Response Props

KeyValueDescription
paymentStatus-1 or 1 or 0-1 - DATA MISSING OR INVALID, 1 - SUCCESS, 0 - FAILURE
txnIdStringTransaction ID return from the Payment App ( for Backend Process ) only return when the paymentStatus is 1 or 0
txnRefStringTransaction Reference ID return from the Payment App ( only return when the paymentStatus is 1 or 0 )
missingDataMissing DataData which is missing or Invalid ( only return when the paymentStatus is -1 )
responseCodeStringCode return from the Payment App ( only return when the paymentStatus is 1 or 0 )
messageStringMessage about Success or Failure or Invalid Data
Missing Data

AMOUNT, UPI_ID, TRANSACTION_ID, CURRENCY, MERCHANT_CATEGORY_CODE, PAYEE_NAME

Contributing

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

License

MIT

Would you like to support me?

Buy Me A Coffee

Keywords

FAQs

Package last updated on 11 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc