logo
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

NameTypeDescription
api-keystring (get it from api credentials in api panel)
content-typestringapplication/json
acceptstringapplication/json

    $headers = array(
        'api-key' => 'your-api-key',
        'content-type' => 'application/json',
        'accept' => 'application/json',
    );  

Request Body Parameters

NameTypeValue
partner_idintegerGet it from API Panel (Your Partner ID)
apitxnidStringUnique ID for every transaction
mobileStringCustomer mobile number
nameStringCustomer name
emailStringCustomer Email ID
amountDoubleAmount for Payin
callbackStringWebhook 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

NameTypeConditionPossible Value
statuscodeStringAll TimeTXN / TUP / TXF / ERR
messageStringAll TimeTransaction Response Message
upi_trStringIn Case TXNUPI Collection Reference ID
upi_stringStringIn Case TXNUPI Intent to receive payment
upi_string_imageStringIn Case TXNURL to display QR Code. Pass this URL directly to thesrcattribute of an HTMLimgtag.