Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

Commit

Permalink
Make sure to return gateways grouped.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Apr 30, 2015
1 parent 241853c commit 5300d9b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,23 @@ public function __construct( Pronamic_WP_Pay_Gateways_MultiSafepay_Config $confi
* @see Pronamic_WP_Pay_Gateway::get_issuers()
*/
public function get_issuers() {
$groups = array();

// Merchant
$merchant = new Pronamic_WP_Pay_Gateways_MultiSafepay_Connect_Merchant();
$merchant->account = $this->config->account_id;
$merchant->site_id = $this->config->site_id;
$merchant->site_secure_code = $this->config->site_code;

$result = $this->client->get_ideal_issuers( $merchant );

return $result;
if ( $result ) {
$groups[] = array(
'options' => $result,
);
}

return $groups;
}

/////////////////////////////////////////////////
Expand Down

0 comments on commit 5300d9b

Please sign in to comment.