| Conditions | 2 |
| Paths | 2 |
| Total Lines | 25 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | public function __construct( $args = array() ) { |
||
| 9 | $args = wp_parse_args( |
||
| 10 | $args, |
||
| 11 | array( |
||
| 12 | 'id' => null, |
||
| 13 | 'name' => null, |
||
| 14 | 'url' => 'https://secure.ogone.com/', |
||
| 15 | 'product_url' => \__( 'https://payment-services.ingenico.com/nl/en', 'pronamic_ideal' ), |
||
| 16 | 'manual_url' => \__( 'https://www.pronamic.eu/support/how-to-connect-ingenico-with-wordpress-via-pronamic-pay/', 'pronamic_ideal' ), |
||
| 17 | 'dashboard_url' => 'https://secure.ogone.com/', |
||
| 18 | 'provider' => 'ogone', |
||
| 19 | 'supports' => array( |
||
| 20 | 'webhook', |
||
| 21 | 'webhook_log', |
||
| 22 | ), |
||
| 23 | ) |
||
| 24 | ); |
||
| 25 | |||
| 26 | parent::__construct( $args ); |
||
| 27 | |||
| 28 | // Actions. |
||
| 29 | $function = array( __NAMESPACE__ . '\Listener', 'listen' ); |
||
| 30 | |||
| 31 | if ( ! has_action( 'wp_loaded', $function ) ) { |
||
| 32 | add_action( 'wp_loaded', $function ); |
||
| 33 | } |
||
| 36 |