Skip to content

Commit

Permalink
Merge branch 'feature/webhook-status' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed May 31, 2019
2 parents 22c93ac + fe11a59 commit 5b958ef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
19 changes: 15 additions & 4 deletions src/Connect/Gateway.php
Expand Up @@ -50,18 +50,29 @@ class Gateway extends Core_Gateway {
public function __construct( Config $config ) {
parent::__construct( $config );

$this->supports = array(
'payment_status_request',
);

$this->set_method( self::METHOD_HTTP_REDIRECT );
$this->set_slug( self::SLUG );

// Supported features.
$this->supports = self::get_supported_features();

// Client.
$this->client = new Client();

$this->client->api_url = $config->api_url;
}

/**
* Get supported features.
*
* @return array
*/
public static function get_supported_features() {
return array(
'payment_status_request',
);
}

/**
* Get iDEAL issuers
*
Expand Down
6 changes: 2 additions & 4 deletions src/Settings.php
Expand Up @@ -90,12 +90,10 @@ public function fields( array $fields ) {
// Transaction feedback
$fields[] = array(
'section' => 'multisafepay',
'methods' => array( 'multisafepay' ),
'title' => __( 'Transaction feedback', 'pronamic_ideal' ),
'type' => 'description',
'html' => sprintf(
'<span class="dashicons dashicons-yes"></span> %s',
__( 'Payment status updates will be processed without any additional configuration.', 'pronamic_ideal' )
),
'html' => __( 'Payment status updates will be processed without any additional configuration.', 'pronamic_ideal' ),
);

// Return fields
Expand Down

0 comments on commit 5b958ef

Please sign in to comment.