mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
remove commented code
This commit is contained in:
parent
871d41d8f3
commit
730961d7b1
@ -150,58 +150,3 @@ class BlockonomicsPaymentDriver extends BaseDriver
|
||||
return $this->payment_method->refund($payment, $amount); //this is your custom implementation from here
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// public function doCurlCall($url, $post_content = '')
|
||||
// {
|
||||
// $ch = curl_init();
|
||||
// curl_setopt($ch, CURLOPT_URL, $url);
|
||||
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
// if ($post_content) {
|
||||
// curl_setopt($ch, CURLOPT_POST, 1);
|
||||
// curl_setopt($ch, CURLOPT_POSTFIELDS, $post_content);
|
||||
// }
|
||||
// curl_setopt($ch, CURLOPT_TIMEOUT, 60);
|
||||
// curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
||||
// 'Authorization: Bearer ' . $this->api_key,
|
||||
// 'Content-type: application/x-www-form-urlencoded',
|
||||
// ]);
|
||||
// $contents = curl_exec($ch);
|
||||
// if (curl_errno($ch)) {
|
||||
// echo "Error:" . curl_error($ch);
|
||||
// }
|
||||
// $responseObj = json_decode($contents);
|
||||
// $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
// curl_close ($ch);
|
||||
// if ($status != 200) {
|
||||
// echo "ERROR: " . $status . ' ' . $responseObj->message;
|
||||
// }
|
||||
// return $responseObj;
|
||||
// }
|
||||
|
||||
// public function setCallbackUrl()
|
||||
// {
|
||||
// $GET_CALLBACKS_URL = 'https://www.blockonomics.co/api/address?&no_balance=true&only_xpub=true&get_callback=true';
|
||||
// $SET_CALLBACK_URL = 'https://www.blockonomics.co/api/update_callback';
|
||||
// $get_callback_response = $this->doCurlCall($GET_CALLBACKS_URL);
|
||||
|
||||
// $callback_url = $this->callback_url;
|
||||
// $xpub = $get_callback_response[0]->address;
|
||||
// $post_content = '{"callback": "' . $callback_url . '", "xpub": "' . $xpub . '"}';
|
||||
|
||||
// $responseObj = $this->doCurlCall($SET_CALLBACK_URL, $post_content);
|
||||
// return $responseObj;
|
||||
// }
|
||||
|
||||
// public function findPaymentHashInTransactionReference($transaction_reference)
|
||||
// {
|
||||
// $pattern = '/payment hash:\s*([a-zA-Z0-9]+)/';
|
||||
// // Perform the regex match
|
||||
// if (preg_match($pattern, $transaction_reference, $matches)) {
|
||||
// // Return the matched payment hash
|
||||
// return $matches[1];
|
||||
// } else {
|
||||
// // Return null if no match is found
|
||||
// return null;
|
||||
// }
|
||||
// }
|
@ -43,4 +43,4 @@ return new class extends Migration
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user