Skip to content

Commit

Permalink
Merge branch 'release/1.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Mar 2, 2016
2 parents 55b8c2f + ff6262f commit 5d0b14d
Show file tree
Hide file tree
Showing 6 changed files with 143 additions and 59 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
This projects adheres to [Semantic Versioning](http://semver.org/) and [Keep a CHANGELOG](http://keepachangelog.com/).

## [Unreleased][unreleased]
-

## [1.1.2] - 2016-03-02
- Added an gateway settings class.

## [1.1.1] - 2016-01-29
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"classmap": ["src/"]
},
"require": {
"wp-pay/core": "^1.3.1"
"wp-pay/core": "^1.3.4",
"wp-pay-gateways/common": "^1.0.1"
},
"require-dev": {
"satooshi/php-coveralls": "dev-master"
Expand Down
139 changes: 102 additions & 37 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ideal",
"version": "1.1.1",
"version": "1.1.2",
"description": "iDEAL driver for the WordPress payment processing library.",
"repository": {
"type": "git",
Expand Down
31 changes: 31 additions & 0 deletions src/AbstractIntegration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

/**
* Title: iDEAL abstract integration
* Description:
* Copyright: Copyright (c) 2005 - 2016
* Company: Pronamic
*
* @author Remco Tolsma
* @version 1.1.2
* @since 1.1.2
*/
abstract class Pronamic_WP_Pay_Gateways_IDeal_AbstractIntegration extends Pronamic_WP_Pay_Gateways_AbstractIntegration {
public function get_settings_class() {
return 'Pronamic_WP_Pay_Gateways_IDeal_Settings';
}

/**
* Get required settings for this integration.
*
* @see https://github.com/wp-premium/gravityforms/blob/1.9.16/includes/fields/class-gf-field-multiselect.php#L21-L42
* @return array
*/
public function get_settings() {
$settings = parent::get_settings();

$settings[] = 'ideal';

return $settings;
}
}
24 changes: 4 additions & 20 deletions src/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ public function sections( array $sections ) {
// iDEAL
$sections['ideal'] = array(
'title' => __( 'iDEAL', 'pronamic_ideal' ),
'methods' => array(
'ideal_basic',
'ideal_advanced',
'ideal_advanced_v3',
),
'methods' => array( 'ideal' ),
);

// Return sections
Expand All @@ -41,11 +37,7 @@ public function fields( array $fields ) {
'type' => 'text',
'classes' => array( 'code' ),
'description' => __( 'You receive the merchant ID (also known as: acceptant ID) from your iDEAL provider.', 'pronamic_ideal' ),
'methods' => array(
'ideal_basic',
'ideal_advanced',
'ideal_advanced_v3',
),
'methods' => array( 'ideal' ),
);

// Sub ID
Expand All @@ -59,11 +51,7 @@ public function fields( array $fields ) {
'type' => 'text',
'classes' => array( 'small-text', 'code' ),
'description' => sprintf( __( 'You receive the sub ID from your iDEAL provider, the default is: %s.', 'pronamic_ideal' ), 0 ),
'methods' => array(
'ideal_basic',
'ideal_advanced',
'ideal_advanced_v3',
),
'methods' => array( 'ideal' ),
);

// Purchase ID
Expand All @@ -83,11 +71,7 @@ public function fields( array $fields ) {
sprintf( __( 'Default: <code>%s</code>.', 'pronamic_ideal' ), '{payment_id}' ),
sprintf( __( 'Tags: %s', 'pronamic_ideal' ), sprintf( '<code>%s</code> <code>%s</code>', '{order_id}', '{payment_id}' ) )
),
'methods' => array(
'ideal_basic',
'ideal_advanced',
'ideal_advanced_v3',
),
'methods' => array( 'ideal' ),
);

// Return fields
Expand Down

0 comments on commit 5d0b14d

Please sign in to comment.