Delete a OkePay Gateway
**DELETE**
https://api.okepay.info/v1.0/Gateway/id
PHPBash
// $instanceName is a part of the url where you access your okepay installation.
// https://{$instanceName}.okepay.info
$instanceName = 'YOUR_INSTANCE_NAME';
// $secret is the okepay secret for the communication between the applications
// if you think someone got your secret, just regenerate it in the okepay administration
$secret = 'YOUR_SECRET';
$okepay = new \Okepay\Okepay($instanceName, $secret);
$gateway = new \Okepay\Models\Request\Gateway();
$gateway->setId(1);
try {
$response = $okepay->delete($gateway);
var_dump($response);
} catch (\Okepay\OkepayException $e) {
print $e->getMessage();
}
apiSignature=`echo -n "" | openssl dgst -sha256 -hmac "INSTANCE_API_SECRET" -binary | openssl enc -base64`
curl --request DELETE "https://api.okepay.info/v1.0/Gateway/1/?instance=INSTANCE_NAME" --data-urlencode "ApiSignature=$apiSignature"
PATH PARAMS | |
---|---|
id int32 |
REQUIRED The id of the invoice to delete |
QUERY PARAMS | |
---|---|
instance string |
REQUIRED Your OkePay instance name |
Integration manual
For more information about the usage of OkePay Gateway, please visit following link:
https://okepay.biz/api-okepay-gateway
Next to read:
Retrieve a Transaction
Retrieve a Transaction