From b6fa7e0ff9988363fbf300bc0a67e1bd7f52d4b7 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 17 Sep 2026 10:47:22 +0200 Subject: Mollie --- views/mods/mod_mollie/gfx/mollie.svg | 4 + views/mods/mod_mollie/order_done.phtml | 48 ++++++++++++ .../mods/mod_mollie/order_view_afterpayment.phtml | 26 +++++++ views/mods/mod_mollie/settings_edit.phtml | 88 ++++++++++++++++++++++ 4 files changed, 166 insertions(+) create mode 100644 views/mods/mod_mollie/gfx/mollie.svg create mode 100644 views/mods/mod_mollie/order_done.phtml create mode 100644 views/mods/mod_mollie/order_view_afterpayment.phtml create mode 100644 views/mods/mod_mollie/settings_edit.phtml (limited to 'views/mods') diff --git a/views/mods/mod_mollie/gfx/mollie.svg b/views/mods/mod_mollie/gfx/mollie.svg new file mode 100644 index 0000000..a0c7e28 --- /dev/null +++ b/views/mods/mod_mollie/gfx/mollie.svg @@ -0,0 +1,4 @@ + + + mollie + diff --git a/views/mods/mod_mollie/order_done.phtml b/views/mods/mod_mollie/order_done.phtml new file mode 100644 index 0000000..3e27bf2 --- /dev/null +++ b/views/mods/mod_mollie/order_done.phtml @@ -0,0 +1,48 @@ +view['wpsg_mod_mollie']; + +?> +
+ + + +

+ + + +

+ + + +

view['order']['onr']), wpsg_ff($mollie['amount'], $this->get_option('wpsg_currency'))); ?>

+ +

+ +

+ + + + + +

+ + get_option('wpsg_mod_mollie_debug') === '1') { ?> +

+ + + + +
diff --git a/views/mods/mod_mollie/order_view_afterpayment.phtml b/views/mods/mod_mollie/order_view_afterpayment.phtml new file mode 100644 index 0000000..71177ab --- /dev/null +++ b/views/mods/mod_mollie/order_view_afterpayment.phtml @@ -0,0 +1,26 @@ +view['wpsg_mod_mollie']['oOrder']; + + $payment_id = $oOrder->getMeta('wpsg_mod_mollie_payment_id', false, ''); + $payment_status = $oOrder->getMeta('wpsg_mod_mollie_status', false, ''); + $payment_method = $oOrder->getMeta('wpsg_mod_mollie_method', false, ''); + +?> +
+ + + true]); ?> + + + + true]); ?> + + + + true]); ?> + diff --git a/views/mods/mod_mollie/settings_edit.phtml b/views/mods/mod_mollie/settings_edit.phtml new file mode 100644 index 0000000..01b0f8e --- /dev/null +++ b/views/mods/mod_mollie/settings_edit.phtml @@ -0,0 +1,88 @@ +view['wpsg_mod_mollie']; + +?> +get_option('wpsg_mod_mollie_testmode'), ['hint' => __('Im Testmodus wird der Test-API-Schlüssel verwendet. Mollie unterscheidet Test- und Livebetrieb allein über den Schlüssel.', 'wpsg')]); ?> +get_option('wpsg_mod_mollie_apikey_test'), ['hint' => __('Beginnt mit test_', 'wpsg')]); ?> +get_option('wpsg_mod_mollie_apikey_live'), ['hint' => __('Beginnt mit live_', 'wpsg')]); ?> + true, 'hint' => __('Mollie ruft diese URL bei jeder Statusänderung auf. Sie wird bei jeder Zahlung automatisch mitgesendet und muss von außen erreichbar sein.', 'wpsg')]); ?> + +
+ +get_option('wpsg_mod_mollie_currency'), ['hint' => __('ISO-4217-Code, z.B. EUR', 'wpsg')]); ?> + __('Automatisch (Sprache von WordPress)', 'wpsg'), + 'de_DE' => __('Deutsch (Deutschland)', 'wpsg'), + 'de_AT' => __('Deutsch (Österreich)', 'wpsg'), + 'de_CH' => __('Deutsch (Schweiz)', 'wpsg'), + 'en_GB' => __('Englisch (Großbritannien)', 'wpsg'), + 'en_US' => __('Englisch (USA)', 'wpsg'), + 'nl_NL' => __('Niederländisch', 'wpsg'), + 'fr_FR' => __('Französisch', 'wpsg'), + 'it_IT' => __('Italienisch', 'wpsg'), + 'es_ES' => __('Spanisch', 'wpsg'), + 'pl_PL' => __('Polnisch', 'wpsg') +], $this->get_option('wpsg_mod_mollie_locale')); ?> +get_option('wpsg_mod_mollie_description'), ['hint' => __('Erscheint auf dem Kontoauszug des Kunden, maximal 255 Zeichen. Platzhalter wie %order_id% oder %kunde_id% sind möglich.', 'wpsg')]); ?> +get_option('wpsg_mod_mollie_notaxcountry'), ['help' => 'wpsg_shippay_mwstland']); ?> + +
+ +get_option('wpsg_mod_mollie_successPage')); ?> +get_option('wpsg_mod_mollie_errorPage')); ?> + +
+ +get_option('wpsg_mod_mollie_debug'), ['hint' => __('Schreibt die Kommunikation mit Mollie in das Bestellprotokoll.', 'wpsg')]); ?> + +
+ + +
+ +
+ + +
+ + $arMethod) { ?> + + get_option($key_active) === '1'); + + $method_id = (string)$arMethod['id']; + $method_min = (string)($view['arMollieMethods'][$method_id]['min'] ?? ''); + + // Methoden, die Mollie für dieses Konto nicht freigeschaltet hat, werden gekennzeichnet + $bAtMollie = (($method_id === '') || array_key_exists($method_id, (array)$view['arMollieMethods'])); + + $title = $arMethod['name']; + + if (!$bAtMollie) $title .= ' ('.esc_html__('bei Mollie nicht freigeschaltet', 'wpsg').')'; + + ?> + + true, 'collapsed' => !$bActive]); ?> + + get_option($key_active)); ?> + get_option('wpsg_mod_mollie_m'.$index.'_name'), ['placeholder' => $arMethod['name']]); ?> + get_option('wpsg_mod_mollie_m'.$index.'_hint')); ?> + get_option('wpsg_mod_mollie_m'.$index.'_fee'), true), ['unit' => $this->get_option('wpsg_currency').' / %', 'help' => 'wpsg_shippay_gebuehr']); ?> + get_option('wpsg_mod_mollie_m'.$index.'_tax_key')); ?> + + +
get_option('wpsg_mod_mollie_currency'))); ?>
+ + + + + + +
-- cgit v1.2.3