← All changes
|
payment/admin/settings/VippsAdminSettings.class.php
+21
-19
6.0.5
→
6.2.2
View file →
| @@ -198,14 +198,21 @@ | ||
| 198 | 198 | 'receipt_image_error' => __('The uploaded image is too small. It must be at least 167 pixels in height.', 'woo-vipps'), |
| 199 | 199 | 'settings_saved' => __('Settings saved', 'woo-vipps'), |
| 200 | 200 | |
| 201 | 201 | 'kustom_sale_1' => __('Checkout - Important Update', 'woo-vipps'), |
| 202 | - 'kustom_sale_2' => __('Vipps MobilePay has entered into an agreement to sell the Checkout solution to <a href="https://Kustom.co" target="_blank">Kustom</a>', 'woo-vipps'), | |
| 203 | - 'kustom_sale_3' => __('As part of this transition, <b>Vipps MobilePay Checkout</b> will become <b>Kustom Checkout</b>. This means the Checkout product you ordered will be delivered and developed by Kustom going forward.', 'woo-vipps'), | |
| 204 | - 'kustom_sale_4' => __('If your account is newer than March 27. 2026, it will <b>not</b> support Vipps MobilePay Checkout in this plugin.', 'woo-vipps'), | |
| 205 | - 'kustom_sale_5' => __('If you have questions, you can check our <a href="https://vippsmobilepay.com/vippsmobilepay-kustom" target="_blank">FAQ</a>.', 'woo-vipps'), | |
| 202 | + 'kustom_sale_2' => __('Vipps MobilePay has entered into an agreement to sell the Checkout solution to Kustom. As part of this transition, <b>Vipps MobilePay Checkout will become Kustom Checkout</b>. You can follow <a href="https://docs.kustom.co/contents/partners/e-commerce-platforms/woocommerce-vipps-guide#switch-from-vipps-checkout-to-kustom-checkoutguide" target="_blank">this guide</a> to migrate over to Kustom Checkout.', 'woo-vipps'), | |
| 203 | + 'kustom_sale_3' => __('Going forward, Kustom will be responsible for delivering and developing the Checkout solution. <b>Vipps MobilePay will remain available as a payment method in Kustom Checkout</b>, so your customers can continue to pay with Vipps MobilePay in the familiar way.', 'woo-vipps'), | |
| 204 | + 'kustom_sale_4' => __('Please note that <b>accounts created after March 27, 2026 will not support Checkout in this plugin</b>.', 'woo-vipps'), | |
| 205 | + 'kustom_sale_5' => __('If you have any questions about what the transition means for you, please see our <a href="https://vippsmobilepay.com/en-NO/vippsmobilepay-kustom" target="_blank">FAQ</a>.', 'woo-vipps'), | |
| 206 | + 'kustom_sale_6' => sprintf(__('For help you can reach out to <a href="mailto:%1$s">%1$s</a> and <a href="tel:%2$s">%3$s</a>. You can also find the Kustom portal <a href="%4$s" target="_blank">here</a>.', 'woo-vipps'), 'support@kustom.co', '+4721564684', '+47 21 56 46 84', 'https://portal.kustom.co/'), | |
| 206 | 207 | ); |
| 207 | 208 | |
| 209 | + /* We need to postprocess the settings for.. various reasons IOK 2024-06-04 */ | |
| 210 | + /* Also we need to run init_form_fields here, because for whatever reason the | |
| 211 | + * first time it is called, it does wrong things in this context. IOK 2024-06-04 */ | |
| 212 | + $gw->init_form_fields(); | |
| 213 | + $settings = $gw->settings; | |
| 214 | + | |
| 208 | 215 | $wizardTranslations = [ |
| 209 | 216 | 'wizard_header' => [ |
| 210 | 217 | 'title' => __('Initial settings', 'woo-vipps'), |
| 211 | 218 | 'description' => sprintf(__('Welcome! You are almost ready to accept payments with %1$s', 'woo-vipps'), Vipps::CompanyName()), |
| @@ -213,16 +220,8 @@ | ||
| 213 | 220 | 'checkout_options_wizard' => array( |
| 214 | 221 | 'title' => sprintf(__('Get started with %1$s', 'woo-vipps'), Vipps::CheckoutName()), |
| 215 | 222 | 'description' => sprintf(__('%1$s is a service from %2$s, which allows you to replace the usual WooCommerce checkout page with a super simple checkout screen, where your customers can pay with Vipps, Visa, and MasterCard!', 'woo-vipps'), Vipps::CheckoutName(), Vipps::CompanyName()), |
| 216 | 223 | ), |
| 217 | - /* | |
| 218 | - 'vipps_checkout_enabled_wizard' => array( | |
| 219 | - 'title' => Vipps::CheckoutName(), | |
| 220 | - 'label' => sprintf(__('Yes, I want to start using %1$s', 'woo-vipps'), Vipps::CheckoutName()), | |
| 221 | - 'description' => sprintf(__('If activated, this will <strong>replace</strong> the standard Woo checkout screen with %1$s, providing easy checkout using %1$s or credit card, with no need to type in addresses.', 'woo-vipps'), Vipps::CheckoutName()), | |
| 222 | - 'default' => 'no', | |
| 223 | - ), | |
| 224 | - */ | |
| 225 | 224 | 'enablestaticshipping_checkout_wizard' => array( |
| 226 | 225 | 'title' => __('Are you going to base shipping price on the customers address?', 'woo-vipps'), |
| 227 | 226 | 'label' => __('Yes, I want dynamic shipping calculation', 'woo-vipps'), |
| 228 | 227 | 'description' => __('If your shipping prices are the same no matter where the customer lives, you don\'t need dynamic shipping calculation.'), |
| @@ -301,16 +300,19 @@ | ||
| 301 | 300 | ], |
| 302 | 301 | 'accept' => sprintf(__('Start using %1$s', 'woo-vipps'), Vipps::CheckoutName()), |
| 303 | 302 | 'skip' => __('Skip & save', 'woo-vipps'), |
| 304 | 303 | ], |
| 304 | + 'express_options_wizard' => array( | |
| 305 | + 'title' => sprintf(__('Get started with %1$s', 'woo-vipps'), Vipps::ExpressCheckoutName()), | |
| 306 | + 'description' => sprintf(__("%1\$s allows you to buy products by a single click from the cart, checkout, or directly from product or catalog pages. Product will get a 'buy now' button which will start the purchase process immediately.", 'woo-vipps'), Vipps::ExpressCheckoutName()), | |
| 307 | + 'readmore' => __('Read more', 'woo-vipps'), | |
| 308 | + ), | |
| 309 | + 'singleproductexpressarchives_wizard' => [ | |
| 310 | + 'title' => sprintf(__('%s on product catalog pages', 'woo-vipps'), Vipps::ExpressCheckoutName()), | |
| 311 | + 'label' => sprintf(__('Enable a %s button for relevant products on catalog pages', 'woo-vipps'), Vipps::ExpressCheckoutName()), | |
| 312 | + ], | |
| 313 | + ]; | |
| 305 | 314 | |
| 306 | - ]; | |
| 307 | - | |
| 308 | - /* We need to postprocess the settings for.. various reasons IOK 2024-06-04 */ | |
| 309 | - /* Also we need to run init_form_fields here, because for whatever reason the | |
| 310 | - * first time it is called, it does wrong things in this context. IOK 2024-06-04 */ | |
| 311 | - $gw->init_form_fields(); | |
| 312 | - $settings = $gw->settings; | |
| 313 | 315 | if (!empty($settings['receiptimage'])) { |
| 314 | 316 | $settings['receiptimage_url'] = wp_get_attachment_url($settings['receiptimage']); |
| 315 | 317 | } |
| 316 | 318 | if (!$gw->allow_external_payments_in_checkout()) { |