aUPI Get Payment Response

This is the fourth and final step of aUPI. By the using of this api we can get all aUPI Response 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 "get_payment_response" 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: GET

API Endpoint: https://payments.adivaha.com/UPI/v1/api.php?order_id=634XXXXX966f&action=get_payment_response

Header
                                header: array(
                                'Content-Type:application/json',
                                'Accept-encoding: gzip',
                                'PID:'ADD-PID-KEY',
                                'x-api-key:'ADD-API-YOUR-KEY'
                                );                                
					 		

Response

The API returns an HTTP response, which generally includes the result of the request invocation

Booking All Data Related to Payment. along with Payment Status and Your Request Data That you Store at step 1.
{
"pid":"77AXXXX",
"orderId":"XXXXXXXXX",
"pay_status":"COMPLETED/FAILED/PENDIND",
"Amount":"XXX",
"Particular":"Your Particular",
"customerName":"Your Name",
"customerEmail":"Your Email",
"customerMobile":"Your Mobile",
"request_data":{
      "token":"Token No",
	  "orderId":"XXXXXXXX",
      "txnAmount":"XXX",
      "txnNote":"Your Paticular",
      "customerName":"Your Name",
      "customerEmail":"Your Email",
      "customerMobile":"Your Mobile No."
      .
      .
      .
      .All rest Data That You Sent at step 1 Comes Here.
      }
}
					 		

if pay_status : "COMPLETE" then it means Payment Successfull .

if pay_status : "PENDIND/Pending" then it means Payment Init .

if pay_status : "FAILED" then it means Payment FAILED .