Skip to content

Commit

Permalink
Added filter value to the fields array.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Nov 4, 2015
1 parent 4c8845a commit a1ce60c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/GatewaySettings.php
Expand Up @@ -29,22 +29,30 @@ public function sections( array $sections ) {
public function fields( array $fields ) {
// Website Key
$fields[] = array(
'filter' => FILTER_SANITIZE_STRING,
'section' => 'buckaroo',
'meta_key' => '_pronamic_gateway_buckaroo_website_key',
'title' => __( 'Website Key', 'pronamic_ideal' ),
'type' => 'text',
'classes' => array( 'code' ),
'description' => sprintf( __( 'You can find your Buckaroo website keys in the <a href="%s" target="_blank">Buckaroo Payment Plaza</a> under "Profile" » "Website".', 'pronamic_ideal' ), 'https://payment.buckaroo.nl/' ),
'description' => sprintf(
__( 'You can find your Buckaroo website keys in the <a href="%s" target="_blank">Buckaroo Payment Plaza</a> under "Profile" » "Website".', 'pronamic_ideal' ),
'https://payment.buckaroo.nl/'
),
);

// Secret Key
$fields[] = array(
'filter' => FILTER_SANITIZE_STRING,
'section' => 'buckaroo',
'meta_key' => '_pronamic_gateway_buckaroo_secret_key',
'title' => __( 'Secret Key', 'pronamic_ideal' ),
'type' => 'text',
'classes' => array( 'regular-text', 'code' ),
'description' => sprintf( __( 'You can find your Buckaroo secret key in the <a href="%s" target="_blank">Buckaroo Payment Plaza</a> under "Configuration" » "Secret Key for Digital Signature".', 'pronamic_ideal' ), 'https://payment.buckaroo.nl/' ),
'description' => sprintf(
__( 'You can find your Buckaroo secret key in the <a href="%s" target="_blank">Buckaroo Payment Plaza</a> under "Configuration" » "Secret Key for Digital Signature".', 'pronamic_ideal' ),
'https://payment.buckaroo.nl/'
),
);

// Push URI
Expand Down

0 comments on commit a1ce60c

Please sign in to comment.