@cariboulette Check that you have pasted the code correctly. Here is the code snippet with a bit more context (between START and END)
/**
* Translators: the following error messages are shown to the end user
*/
$error_general = __('Transaction was unsuccessful. Please check the minimum amount or use another valid card.', 'sumup-payment-gateway-for-woocommerce');
$error_invalid_form = __('Fill in all required details.', 'sumup-payment-gateway-for-woocommerce');
// START fix log warnings --------------------------------
if (!array_key_exists('enable_pix', $this->settings)) {
$this->settings['enable_pix'] = false;
}
if (!array_key_exists('open_payment_modal', $this->settings)) {
$this->settings['open_payment_modal'] = false;
}
// END fix log warnings ----------------------------------
wp_localize_script('wc-sumup-blocks-integration', 'sumup_gateway_params', [
'showInstallments' => "$show_installments",
'sumup_handler_url' => add_query_arg(
[
'wc-api' => 'sumup_api_handler',
'action' => 'create_checkout'
],
home_url() . '/'
),
'showZipCode' => "$show_zipcode",
'maxInstallments' => $number_of_installments,
'locale' => "$card_locale",
'country' => '',
'status' => '',
'errors' => [
'general_error' => "$error_general",
'invalid_form' => "$error_invalid_form",
'payment_error' => ''
],
'enablePix' => $this->settings['enable_pix'],
'openPaymentInModal' => $this->settings['open_payment_modal'],
'redirectUrl' => ''
]);
I hope this helps
-
This reply was modified 6 months ago by Paul.
-
This reply was modified 6 months ago by Paul.