Checkout status
GET
/
payment
/
checkout
/
status
Checkout status
curl --request GET \
--url https://server.staging.vestrapay.app/v1/payment/checkout/status \
--header 'x-access-code: <api-key>'const options = {method: 'GET', headers: {'x-access-code': '<api-key>'}};
fetch('https://server.staging.vestrapay.app/v1/payment/checkout/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://server.staging.vestrapay.app/v1/payment/checkout/status"
headers = {"x-access-code": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://server.staging.vestrapay.app/v1/payment/checkout/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-code: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": "success",
"data": {
"reference": "<string>",
"status": "<string>",
"channel": "<string>",
"paidAt": "2023-11-07T05:31:56Z"
}
}⌘I
Checkout status
curl --request GET \
--url https://server.staging.vestrapay.app/v1/payment/checkout/status \
--header 'x-access-code: <api-key>'const options = {method: 'GET', headers: {'x-access-code': '<api-key>'}};
fetch('https://server.staging.vestrapay.app/v1/payment/checkout/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://server.staging.vestrapay.app/v1/payment/checkout/status"
headers = {"x-access-code": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://server.staging.vestrapay.app/v1/payment/checkout/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-code: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": "success",
"data": {
"reference": "<string>",
"status": "<string>",
"channel": "<string>",
"paidAt": "2023-11-07T05:31:56Z"
}
}