Check Source
Check the source
Check the Source
With this request, you should check the callback source and make sure it comes from FCF Pay.
You will receive theunique_id in the deposit callback.
curl --location --request POST 'https://merchant.fcfpay.com/api/v1/check-source' \
--header 'Authorization: Bearer YOUR_LIVE_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"unique_id": "0x9cf24f76778e517511f6178f114a1d3e95e3c7fdbfcbe52a961b6d748e860849_0"
}'var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer YOUR_LIVE_API_KEY");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"unique_id": "0x9cf24f76778e517511f6178f114a1d3e95e3c7fdbfcbe52a961b6d748e860849_0"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://merchant.fcfpay.com/api/v1/check-source", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));Field
Description
unique_id
The unique id you mus get from deposit callback
Check the source.
POST https://merchant.fcfpay.com/api/v1/check-source
Headers
Name
Type
Description
Authorization*
String
Bearer {{API_KEY}}
Request Body
Name
Type
Description
unique_id
string
Got from deposit callback request
{
"success": true,
"data": {
"unique_id": "0x9cf24f76778e517511f6178f114a1d3e95e3c7fdbfcbe52a961b6d748e860849_0"
},
"message": "Transaction exists."
}{
"success": false,
"data": [],
"message": "Merchant Authentication problem!"
}Last updated
