Collection
Payin Initiated
https://peavenue.in/production/api/collection/order/create
Payin Initiated is a payment gateway that allows you to accept payments from your customers. It is a payment gateway that allows you to accept payments from your customers. It is a payment gateway that allows you to accept payments from your customers.
Header
| Name | Type | Description |
|---|---|---|
| api-key | string | (get it from api credentials in api panel) |
| content-type | string | application/json |
| accept | string | application/json |
$headers = array(
'api-key' => 'your-api-key',
'content-type' => 'application/json',
'accept' => 'application/json',
);
Request Body Parameters
| Name | Type | Value |
|---|---|---|
| partner_id | integer | Get it from API Panel (Your Partner ID) |
| apitxnid | String | Unique ID for every transaction |
| mobile | String | Customer mobile number |
| name | String | Customer name |
| String | Customer Email ID | |
| amount | Double | Amount for Payin |
| callback | String | Webhook URL to receive collection status and data |
$parameter = [
'partner_id' => '1',
'apitxnid' => 'UPI12345',
'mobile' => '1234567890',
'name' => 'test',
'email' => 'email@gmail.com',
'amount' => '100',
'callback' => 'https://yourdomain.com'
];
$body_json_string = json_encode($parameter);
Response
| Name | Type | Condition | Possible Value |
|---|---|---|---|
| statuscode | String | All Time | TXN / TUP / TXF / ERR |
| message | String | All Time | Transaction Response Message |
| upi_tr | String | In Case TXN | UPI Collection Reference ID |
| upi_string | String | In Case TXN | UPI Intent to receive payment |
| upi_string_image | String | In Case TXN | URL to display QR Code. Pass this URL directly to thesrcattribute of an HTMLimgtag. |
