PluginProbe
Pay with Vipps and MobilePay for WooCommerce / 6.2.5
Pay with Vipps and MobilePay for WooCommerce v6.2.5
6.2.5 6.2.4 6.2.3 6.2.2 6.2.1 6.2.0 6.1.10 6.1.9 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1.0 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 5.4.3 5.4.2 All 187 releases
← All changes | payment/Blocks/Payment/Vipps.class.php +8 -2 6.0.2 → 6.2.5 View file →
@@ -48,10 +48,16 @@
48 48 return [ 'wc-payment-method-vipps' ];
49 49 }
50 50
51 51 public function get_express_checkout_button () {
52 - $button = \Vipps::instance()->express_checkout_button_shortcode();
53 - return $button;
52 + $context='cart_gutenberg';
53 + if (is_checkout()) {
54 + $context = 'checkout_gutenberg';
55 + }
56 + ob_start();
57 + \Vipps::instance()->cart_express_checkout_button_html($context);
58 + $button = ob_get_clean();
59 + return $button;
54 60 }
55 61 public function show_express_checkout_button () {
56 62 $gw = \Vipps::instance()->gateway();
57 63 if (!$gw->cart_supports_express_checkout()) return false;