1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
namespace Objectiv\Plugins\Checkout\Compatibility\Gateways;
use Objectiv\Plugins\Checkout\Compatibility\CompatibilityAbstract;
class Vipps extends CompatibilityAbstract { public function is_available(): bool { return defined( 'WOO_VIPPS_VERSION' ); }
public function run() { add_action( 'cfw_payment_request_buttons', array( $this, 'add_vipps_button' ) ); }
public function add_vipps_button() { $button = do_shortcode( '[woo_vipps_express_checkout_button]' );
if ( ! empty( $button ) ) { echo $button;
add_action( 'cfw_checkout_customer_info_tab', 'cfw_add_separator', 11 ); } } }
|