| @@ -48,9 +48,15 @@ | ||
| 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(); | |
| 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(); | |
| 53 | 59 | return $button; |
| 54 | 60 | } |
| 55 | 61 | public function show_express_checkout_button () { |
| 56 | 62 | $gw = \Vipps::instance()->gateway(); |