Get Invoice/Order Status
CURL Request
$secret_key = 'aij3vg2bmucgbzrkgzsfgkenaabhdf8be81mgzz7yj38787rav8ai';
$profile_id = 'c83821798-286c-0007-bb29-2ce849e0de10';
$apiURL = 'https://live.oyf.io/api/payment/get-order-status';
$postInput = [
'trx_number' => 'TRX0283',
'cart_id' => '231123',
'profile_id' => $profile_id,
];
$curl = curl_init($apiURL);
curl_setopt($curl, CURLOPT_URL, $apiURL);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array('Content-Type: application/json','X-Authorization:' . $secret_key);
curl_setopt($curl, CURLOPT_HTTPHEADER,$headers);
$data= json_encode($postInput);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Response
{
"_metadata": {
"outcome": "SUCCESS",
"outcomeCode": 200,
"numOfRecords": 1,
"message": "Currency list"
"records": [
{
"return_url": "https://test.com/api/payment ",
"transection_hash":
"0x9231263dd800c51fb3a256eb213d8fd43b4b50974dc1b902f8493ea99fbab37e",
"logo": "https://dhsf9xmf10p0r.cloudfront.net/oyf/uploads/1684244567-Group%201000004067.png",
"cart_id": "756755768",
"invoice_price": "90.00",
"payment_status": "success",
"blockchain_link_with_transection_hash": "https://testnet.bscscan.com/tx/0x9231263dd800c51fb3a256eb213d8fd43b4b50974dc1b902f8493ea99fbab37e",
"paid_at": "2023-06-08 14:34:11",
"message": ""
},
"errors": []
}
Last updated