aUPI Set Payment Request
This is the first step of aUPI. By the using of this api we can set all aUPI Required data. if any one need to store Extra data they can pass with aUPI Required Data.
Parameters
Name
Description
Accept
string
( header )
Must be application/json
Accept - Encoding
string
( header )
Must be gzip
Authorization
string
( header )
Must be Your PID
Must be Your API Key
action
string
( query )
Must be "getLocations" as parameter
Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.
REQUEST
REQUEST Method: POST
API Endpoint: https://payments.adivaha.com/UPI/v1/api.php?action=set_payment_request
header: array( 'Content-Type:application/json', 'Accept-encoding: gzip', 'PID:'ADD-PID-KEY', 'x-api-key:'ADD-API-YOUR-KEY' );Post Request
{ "orderId":"634XXXXX966f", "txnNote":"Custom", "moduleName":"Test Payment", "product":"Custom", "return_url":"https://payments.adivaha.com/UPI/v1/request/response.php", "pid":"77A211", "customerName":"Amit Kumar", "customerEmail":"xxxxxxx@gmail.com", "customerMobile":"94XXXXXX85", "txnAmount":"1" }
Response
The API returns an HTTP response, which generally includes the result of the request invocation
{ "status":"success", "message":"", "orderId":"634XXXXX966f " }