Skip to content

Commit

Permalink
feat: v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
artembelfox committed Apr 25, 2023
1 parent 5798d73 commit dc0e157
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion catalog/controller/payment/paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ public function index(): string {
$agree_status = $this->model_extension_paypal_payment_paypal->getAgreeStatus();

if ($this->config->get('payment_paypal_status') && $this->config->get('payment_paypal_client_id') && $this->config->get('payment_paypal_secret') && !$this->webhook() && $agree_status) {
if (VERSION >= '4.0.2.0') {
if (!empty($this->session->data['payment_method']['code'])) {
if ($this->session->data['payment_method']['code'] == 'paypal.paylater') {
return $this->load->controller('extension/paypal/payment/paypal_paylater');
}
}
}

$this->load->language('extension/paypal/payment/paypal');

// Setting
Expand Down Expand Up @@ -2708,7 +2716,7 @@ public function webhook(): bool {

return false;
}

public function header_before(string $route, array &$data): void {
$this->load->model('extension/paypal/payment/paypal');

Expand Down

0 comments on commit dc0e157

Please sign in to comment.