Skip to content

Commit

Permalink
Testing opayo log method
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jan 20, 2024
1 parent e6a9c20 commit a6f3666
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions upload/catalog/controller/extension/payment/opayo.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ public function threeDSnotify(): void {

$opayo_order_info = $this->model_extension_opayo_payment_opayo->getOrder($this->request->get['order_id']);

$url = '';

if ($setting['general']['environment'] == 'live') {
$url = 'https://live.sagepay.com/gateway/service/direct3dcallback.vsp';
} elseif ($setting['general']['environment'] == 'test') {
Expand Down
6 changes: 4 additions & 2 deletions upload/catalog/model/extension/payment/opayo.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,9 +671,9 @@ public function sendCurl(string $url, array $payment_data, $i = null): array {
* @param string $title
* @param ?string $data
*
* @return void
* @return ?object
*/
public function log(string $title, ?string $data): void {
public function log(string $title, ?string $data): ?object {
$_config = new \Config();
$_config->load('opayo');

Expand All @@ -686,6 +686,8 @@ public function log(string $title, ?string $data): void {

$log->write($title . ': ' . print_r($data, 1));
}

return null;
}

/**
Expand Down

0 comments on commit a6f3666

Please sign in to comment.