PayG (2.0.0)

Order Detail 🔗

This end point retrieve the Order Detail by passing OrderKeyID as a parameter.

AUTHORIZATIONS:
PATH PARAMETERS
OrderKeyId
required
OrderKeyId
MerchantKeyId
required
Id which is obtained on MerchantRegistration
MID
required
Id which is obtained on MerchantRegistration
PaymentTransactionId
required
Id generated for that transaction
PaymentType Identifies the type of the payment., eg:Credit/debit/upi,etc

API request parameters 🔗

 
      
PayGAuthentication –
<MerchantAuthenticationKey>:<MerchantAuthenticationToken>:M:<MID>
      
      

 
      
$arrData = array('OrderKeyId' =>$OrderKeyId,'MerchantKeyId'=>$this->MerchantKeyId,'PaymentType'=>$PaymentType);

$arrDatajson = json_encode($arrData);
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL =>uatapi.payg.in/payment/api/order/Detail',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS =>$arrDatajson,
  CURLOPT_HTTPHEADER => $header,
));

$response = curl_exec($curl);

curl_close($curl);
 
      
      

 
      
         {
            "OrderKeyId": "210624M7963Ubd259588d4",
            "MerchantKeyId": "7963",
            "PaymentType": ''
          };
          
      
      

 
      
    {
      "OrderKeyId": "210624M7963Ubd259588d4",
      "MerchantKeyId": 7963,
      "UniqueRequestId": "bd259588d4",
      "OrderType": "213",
      "OrderAmount": 1.00,
      "OrderId": null,
      "OrderStatus": "0",
      "OrderPaymentStatus": 0,
      "OrderPaymentStatusText": null,
      "PaymentStatus": 0,
      "PaymentTransactionId": null,
      "PaymentResponseCode": 0,
      "PaymentApprovalCode": null,
      "PaymentTransactionRefNo": null,
      "PaymentResponseText": null,
      "PaymentMethod": null,
      "PaymentAccount": null,
      "OrderNotes": null,
      "PaymentDateTime": null,
      "UpdatedDateTime": "6/24/2021 6:12:43 PM",
      "PaymentProcessUrl": null,
      "OrderPaymentCustomerData": null,
      "UpiLink": null
    }
      
      

Response 🔗

OrderKeyId Id generated based on the create order request
MerchantKeyId Id which is obtained on MerchantRegistration
UniqueRequestId Unique Id generated for that particular Request
OrderType
OrderAmount Transaction Amount
OrderId
OrderStatus Status of the order., eg:- 0,1,2,3,4,5,6,7
OrderPaymentStatus
OrderPaymentStatusText created, completed-approved transaction,cancelled payment by user
PaymentStatus Status of the order., eg:- 0,1,2,3,4,5,6,7
PaymentTransactionId Id generated for that transaction
PaymentResponseCode Status of the order., eg:- 0,1,2,3,4,5,6,7
PaymentApprovalCode Unique number identifying the Approved transaction
PaymentResponseText eg:- created, completed-approved transaction,cancelled payment by user
PaymentMethod Identifies the type of the payment., eg:- Credit/debit/upi,etc
PaymentAccount payment details
OrderNotes
PaymentDateTime
UpdatedDateTime
PaymentProcessUrl This url redirects to the payment page with order details
OrderPaymentCustomerData
UpiLink