rn-paygoal-pg
v1.3.1
Published
Paygoal payment gateway for react-native app
Downloads
68
Maintainers
Readme
rn-paygoal-pg
Paygoal payment gateway for react-native app
Installation
For npm
npm install rn-paygoal-pg
For yarn
yarn add rn-paygoal-pg
Usage
import { PayGoalPgComponent } from 'rn-paygoal-pg';
// ...
const TestPG = () => {
return (
<PayGoalPgComponent
amount="10000" // amount should be in paisa only i.e. 10000 paisa for transaction of 100 rupees
email="[email protected]"
name="Test"
mobile="9999999999"
orderId="ref@123"
address="Delhi"
uid="123456789"
encryptionKey="123456789"
onComplete = () => {
// onComplete will be invoked in both cases failed or success
// your code here
}
/>
);
};
Props
| Param | Type | Mandatory | Description | | :------------ | :------------------- | :-------- | :------------------------------------------------------------- | | style | StyleProp | No | View style prop | | onComplete() | void | No | Function to handle onComplete of payment | | scrollEnabled | boolean | No | Weather the SDK view will be scrollable or not | | amount | string | Yes | Amout of transaction (in Rupees only) | | email | string | Yes | Email of user | | name | string | Yes | Name of user | | mobile | string | Yes | Mobile of user | | orderId | string | Yes | Unique refrence ID (Alpha numeric only, no special characters) | | address | string | Yes | Address of user | | uid | string | Yes | Unique ID provided by Paygoal payment gateway team | | encryptionKey | string | Yes | key provided by Paygoal payment gateway team |
Git Repository
https://github.com/CMPundhir/react-native-paygoal-pg.git
Developed By
BiggBrains Solutions Pvt. Ltd.
License
MIT