$arrData = array('OrderKeyId' =>$OrderKeyId,'MerchantKeyId'=>$this->MerchantKeyId,'PaymentType'=>$PaymentType);
$arrDatajson = json_encode($arrData);
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL =>uatapiv2.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": "93281250227M10404UTEST512scx3",
"MerchantKeyId": 10121,
"UniqueRequestId": "TEST512scx3",
"OrderType": "PAYMENT",
"OrderAmount": 3.00,
"OrderId": null,
"OrderStatus": "1",
"OrderPaymentStatus": 0,
"OrderPaymentStatusText": "Paid",
"PaymentStatus": 0,
"PaymentTransactionId": "767926",
"PaymentResponseCode": 1,
"PaymentApprovalCode": null,
"PaymentReasonCode": null,
"PaymentTransactionRefNo": null,
"PaymentResponseText": "Approved",
"PaymentMethod": "CreditCard",
"PaymentAccount": "41111 - XXXX - 1111",
"OrderRefundTransactionId": 0,
"RefundPaymentResponseCode": 0,
"RefundPaymentResponseText": null,
"RefundDateTime": null,
"CardType": null,
"CardLevel": null,
"OrderNotes": "Internal",
"PaymentDateTime": "2/27/2025 1:57:09 PM",
"UpdatedDateTime": "2/27/2025 1:52:35 PM",
"PaymentProcessUrl": null,
"CustomerData": {
"CustomerId": "123456",
"CustomerNotes": "Mens clothing",
"FirstName": "Ayush",
"LastName": "Rane",
"MobileNo": "7887673322",
"Email": "ayushtesting12@gmail.com",
"EmailReceipt": false,
"BillingAddress": "76, Sch. 115",
"BillingCity": "Indore",
"BillingState": "MP",
"BillingCountry": "India",
"BillingZipCode": "452011",
"ShippingFirstName": "Ayush",
"ShippingLastName": "Rane",
"ShippingAddress": "76, Sch. 115",
"ShippingCity": "Indore",
"ShippingState": null,
"ShippingCountry": "India",
"ShippingZipCode": "452011",
"ShippingMobileNo": "9987887733"
},
"ProductData": "{'PaymentReason':'OnlineOrder for OrderNo- 1234'}",
"OrderPaymentCustomerData": null,
"UpiLink": null,
"OrderPaymentTransactionDetail": [
{
"OrderKeyId": "93281250227M10404UTEST512scx3",
"MerchantKeyId": 10404,
"TransactionId": 767926,
"ResponseCode": 1,
"ResponseText": "Approved",
"TransactionAmount": 3.00
}
],
"UserDefinedData": {
"UserDefined1": "",
"UserDefined2": null,
"UserDefined3": null,
"UserDefined4": null,
"UserDefined5": null,
"UserDefined6": null,
"UserDefined7": null,
"UserDefined8": null,
"UserDefined9": null,
"UserDefined10": null,
"UserDefined11": null,
"UserDefined12": null,
"UserDefined13": null,
"UserDefined14": null,
"UserDefined15": null,
"UserDefined16": null,
"UserDefined17": null,
"UserDefined18": null,
"UserDefined19": null,
"UserDefined20": null
},
"SplitPaymentResponse": null,
"Id": 93281
}