This commit is contained in:
2026-02-02 17:30:17 +01:00
parent ae0ee002ec
commit 68c2d651c6
16 changed files with 173 additions and 44 deletions

View File

@@ -160,7 +160,7 @@ class PaynowPaymentOptions
'paymentMethodId' => $payment_method->getId()
]
),
'action_token' => Tools::encrypt($this->context->customer->secure_key ?? ''),
'action_token' => PaynowCompatibilityHelper::encrypt($this->context->customer->secure_key ?? ''),
'action_token_refresh' => Context::getContext()->link->getModuleLink('paynow', 'customerToken'),
'error_message' => $this->getMessage('An error occurred during the payment process'),
'terms_message' => $this->getMessage('First accept the terms of service, then click pay.'),
@@ -175,7 +175,7 @@ class PaynowPaymentOptions
'paynow',
'removeSavedInstrument'
),
'action_remove_saved_instrument_token' => Tools::encrypt($this->context->customer->secure_key ?? ''),
'action_remove_saved_instrument_token' => PaynowCompatibilityHelper::encrypt($this->context->customer->secure_key ?? ''),
'default_card_image' => Media::getMediaPath(_PS_MODULE_DIR_ . $this->module->name . '/views/img/card-default.svg'),
'paynow_card_instruments' => $payment_method->getSavedInstruments(),
]);