Delete a OkePay Gateway

**DELETE**https://api.okepay.info/v1.0/Gateway/id

PHPBash
<?php
// $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();
}
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