Skip to content
Reference app for using Payabbhi React Native plugin
Java JavaScript Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
android
.buckconfig
.eslintrc.js
.flowconfig
.gitattributes
.gitignore
.prettierrc.js
.watchmanconfig
App.js
README.md
app.json
babel.config.js
index.js
metro.config.js
package.json

README.md

Payabbhi React Native Sample app

This is a reference app for enabling Payments acceptance using Payabbhi React Native plugin.

Running the sample app

Make sure you have signed up for your Payabbhi Account and downloaded the API keys from the Portal.

  1. Run the following commands to include payabbhi-react-native module
$ npm i react-native-payabbhi --save
$ npm install
  1. Provide suitable values for the following in App.js:
  • <access_id>
  • <amount>
  1. Add logic to get order_id from your Mobile Backend (server-side code)

    TIP: An alternative to having a Mobile Backend for running the sample App is:

    1. Generate a unique order_id using curl
    2. Copy/paste the generated order_id in App.js
    3. Once a successful test transaction is completed for a particular order, repeat the above steps
    curl https://payabbhi.com/api/v1/orders \
      -u access_id:secret_key \
      -d amount=100 \
      -d merchant_order_id=ordRefNo123456 \
      -d currency=INR
    

    Provide suitable value for the following in App.js:

    • <order_id>
  2. Start the android application

$ react-native run-android
You can’t perform that action at this time.