From 58c002027784b086e2c970e81732478ad66c801e Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Wed, 13 Jul 2022 10:05:15 +0200 Subject: [PATCH 01/14] Use new payment methods register methods. --- src/Gateway.php | 64 +++++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/src/Gateway.php b/src/Gateway.php index f592e18..ec2c303 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -11,7 +11,9 @@ namespace Pronamic\WordPress\Pay\Gateways\Adyen; use Pronamic\WordPress\Pay\Core\Gateway as Core_Gateway; +use Pronamic\WordPress\Pay\Core\PaymentMethod; use Pronamic\WordPress\Pay\Core\PaymentMethods; +use Pronamic\WordPress\Pay\Core\SelectField; use Pronamic\WordPress\Pay\Core\Util as Core_Util; use Pronamic\WordPress\Pay\Payments\Payment; use Pronamic\WordPress\Pay\Payments\PaymentStatus; @@ -60,36 +62,37 @@ public function __construct( Config $config ) { ]; $this->client = new Client( $config ); - } - /** - * Get supported payment methods - * - * @return array - * @see Core_Gateway::get_supported_payment_methods() - */ - public function get_supported_payment_methods() { - return [ - PaymentMethods::AFTERPAY_COM, - PaymentMethods::ALIPAY, - PaymentMethods::APPLE_PAY, - PaymentMethods::BANCONTACT, - PaymentMethods::BLIK, - PaymentMethods::CREDIT_CARD, - PaymentMethods::DIRECT_DEBIT, - PaymentMethods::EPS, - PaymentMethods::GIROPAY, - PaymentMethods::GOOGLE_PAY, - PaymentMethods::IDEAL, - PaymentMethods::KLARNA_PAY_LATER, - PaymentMethods::KLARNA_PAY_NOW, - PaymentMethods::KLARNA_PAY_OVER_TIME, - PaymentMethods::MB_WAY, - PaymentMethods::SOFORT, - PaymentMethods::SWISH, - PaymentMethods::TWINT, - PaymentMethods::VIPPS, - ]; + // Methods. + $ideal_payment_method = new PaymentMethod( PaymentMethods::IDEAL ); + + $ideal_issuer_field = new SelectField( 'ideal-issuer' ); + $ideal_issuer_field->set_required( true ); + $ideal_issuer_field->set_options_callback( function() { + return $this->get_issuers(); + } ); + + $ideal_payment_method->add_field( $ideal_issuer_field ); + + $this->register_payment_method( new PaymentMethod( PaymentMethods::AFTERPAY_COM ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::ALIPAY ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::APPLE_PAY ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::BANCONTACT ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::BLIK ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::CREDIT_CARD ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::DIRECT_DEBIT ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::EPS ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::GIROPAY ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::GOOGLE_PAY ) ); + $this->register_payment_method( $ideal_payment_method ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::KLARNA_PAY_LATER ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::KLARNA_PAY_NOW ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::KLARNA_PAY_OVER_TIME ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::MB_WAY ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::SOFORT ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::SWISH ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::TWINT ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::VIPPS ) ); } /** @@ -123,9 +126,8 @@ public function get_available_payment_methods() { * Get issuers. * * @return array|array>> - * @see Core_Gateway::get_issuers() */ - public function get_issuers() { + private function get_issuers() { $issuers = []; $payment_methods_request = new PaymentMethodsRequest( $this->config->get_merchant_account() ); From 4ec9f2ebab616faa0d73ad46a8191d7b0565dc46 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Wed, 13 Jul 2022 10:06:20 +0200 Subject: [PATCH 02/14] Update DropInGatewayTest.php --- tests/src/DropInGatewayTest.php | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/tests/src/DropInGatewayTest.php b/tests/src/DropInGatewayTest.php index 44ced37..f9cc8a5 100644 --- a/tests/src/DropInGatewayTest.php +++ b/tests/src/DropInGatewayTest.php @@ -36,23 +36,8 @@ public function test_gateway() { $gateway = new DropInGateway( $config ); - $this->assertEquals( - [ - PaymentMethods::ALIPAY, - PaymentMethods::APPLE_PAY, - PaymentMethods::BANCONTACT, - PaymentMethods::CREDIT_CARD, - PaymentMethods::DIRECT_DEBIT, - PaymentMethods::EPS, - PaymentMethods::GIROPAY, - PaymentMethods::GOOGLE_PAY, - PaymentMethods::IDEAL, - PaymentMethods::KLARNA_PAY_LATER, - PaymentMethods::SOFORT, - PaymentMethods::SWISH, - PaymentMethods::VIPPS, - ], - $gateway->get_supported_payment_methods() - ); + $payment_methods = $gateway->get_payment_methods(); + + $this->assertCount( 12, $payment_methods ); } } From dc81d91c92cabd82ec4dcd1dcb5ee918b9ae94e8 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Wed, 13 Jul 2022 16:04:38 +0200 Subject: [PATCH 03/14] Clarify iDEAL issuers method. --- src/Gateway.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Gateway.php b/src/Gateway.php index ec2c303..553e0d8 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -69,7 +69,7 @@ public function __construct( Config $config ) { $ideal_issuer_field = new SelectField( 'ideal-issuer' ); $ideal_issuer_field->set_required( true ); $ideal_issuer_field->set_options_callback( function() { - return $this->get_issuers(); + return $this->get_ideal_issuers(); } ); $ideal_payment_method->add_field( $ideal_issuer_field ); @@ -123,11 +123,11 @@ public function get_available_payment_methods() { } /** - * Get issuers. + * Get iDEAL issuers. * * @return array|array>> */ - private function get_issuers() { + private function get_ideal_issuers() { $issuers = []; $payment_methods_request = new PaymentMethodsRequest( $this->config->get_merchant_account() ); From 3876be4a127ebee8ad52604ce4857e04a35e02dc Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Fri, 19 Aug 2022 14:13:00 +0200 Subject: [PATCH 04/14] Update Gateway.php --- src/Gateway.php | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/Gateway.php b/src/Gateway.php index 553e0d8..b0e66da 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -11,9 +11,11 @@ namespace Pronamic\WordPress\Pay\Gateways\Adyen; use Pronamic\WordPress\Pay\Core\Gateway as Core_Gateway; +use Pronamic\WordPress\Pay\Core\IDealIssuerSelectField; use Pronamic\WordPress\Pay\Core\PaymentMethod; use Pronamic\WordPress\Pay\Core\PaymentMethods; use Pronamic\WordPress\Pay\Core\SelectField; +use Pronamic\WordPress\Pay\Core\SelectFieldOption; use Pronamic\WordPress\Pay\Core\Util as Core_Util; use Pronamic\WordPress\Pay\Payments\Payment; use Pronamic\WordPress\Pay\Payments\PaymentStatus; @@ -66,7 +68,7 @@ public function __construct( Config $config ) { // Methods. $ideal_payment_method = new PaymentMethod( PaymentMethods::IDEAL ); - $ideal_issuer_field = new SelectField( 'ideal-issuer' ); + $ideal_issuer_field = new IDealIssuerSelectField( 'ideal-issuer' ); $ideal_issuer_field->set_required( true ); $ideal_issuer_field->set_options_callback( function() { return $this->get_ideal_issuers(); @@ -93,6 +95,7 @@ public function __construct( Config $config ) { $this->register_payment_method( new PaymentMethod( PaymentMethods::SWISH ) ); $this->register_payment_method( new PaymentMethod( PaymentMethods::TWINT ) ); $this->register_payment_method( new PaymentMethod( PaymentMethods::VIPPS ) ); + $this->register_payment_method( new PaymentMethod( PaymentMethods::VOID ) ); } /** @@ -146,20 +149,12 @@ private function get_ideal_issuers() { $id = $payment_method_issuer->get_id(); $name = $payment_method_issuer->get_name(); - $issuers[ $id ] = $name; + $issuers[] = new SelectFieldOption( $id, $name ); } } } - if ( empty( $issuers ) ) { - return $issuers; - } - - return [ - [ - 'options' => $issuers, - ], - ]; + return $issuers; } /** From a7b81111810ef601014e3b73163b6052bd9e9fef Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Mon, 22 Aug 2022 13:25:58 +0200 Subject: [PATCH 05/14] Use new cached callback options class. --- src/Config.php | 20 ++++++++++++++++++-- src/Gateway.php | 20 +++++++++++++------- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/src/Config.php b/src/Config.php index c1671e8..4036f60 100644 --- a/src/Config.php +++ b/src/Config.php @@ -10,13 +10,13 @@ namespace Pronamic\WordPress\Pay\Gateways\Adyen; -use Pronamic\WordPress\Pay\Core\Gateway as Core_Gateway; +use JsonSerializable; use Pronamic\WordPress\Pay\Core\GatewayConfig; /** * Config class */ -class Config extends GatewayConfig { +class Config extends GatewayConfig implements JsonSerializable { /** * Environment. * @@ -85,4 +85,20 @@ public function get_merchant_account() { public function get_merchant_order_reference() { return (string) $this->merchant_order_reference; } + + /** + * Serialize to JSON. + * + * @link https://www.w3.org/TR/json-ld11/#specifying-the-type + * @return mixed|void + */ + public function jsonSerialize() { + return [ + '@type' => __CLASS__, + 'environment' => $this->environment, + 'merchant_account' => (string) $this->merchant_account, + 'api_key' => (string) $this->api_key, + 'client_key' => (string) $this->client_key, + ]; + } } diff --git a/src/Gateway.php b/src/Gateway.php index b0e66da..2cab923 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -11,11 +11,12 @@ namespace Pronamic\WordPress\Pay\Gateways\Adyen; use Pronamic\WordPress\Pay\Core\Gateway as Core_Gateway; -use Pronamic\WordPress\Pay\Core\IDealIssuerSelectField; use Pronamic\WordPress\Pay\Core\PaymentMethod; use Pronamic\WordPress\Pay\Core\PaymentMethods; -use Pronamic\WordPress\Pay\Core\SelectField; -use Pronamic\WordPress\Pay\Core\SelectFieldOption; +use Pronamic\WordPress\Pay\Fields\CachedCallbackOptions; +use Pronamic\WordPress\Pay\Fields\IDealIssuerSelectField; +use Pronamic\WordPress\Pay\Fields\SelectFieldOption; +use Pronamic\WordPress\Pay\Fields\SelectFieldOptionGroup; use Pronamic\WordPress\Pay\Core\Util as Core_Util; use Pronamic\WordPress\Pay\Payments\Payment; use Pronamic\WordPress\Pay\Payments\PaymentStatus; @@ -69,10 +70,15 @@ public function __construct( Config $config ) { $ideal_payment_method = new PaymentMethod( PaymentMethods::IDEAL ); $ideal_issuer_field = new IDealIssuerSelectField( 'ideal-issuer' ); + $ideal_issuer_field->set_required( true ); - $ideal_issuer_field->set_options_callback( function() { - return $this->get_ideal_issuers(); - } ); + + $ideal_issuer_field->set_options( new CachedCallbackOptions( + function() { + return $this->get_ideal_issuers(); + }, + 'pronamic_pay_ideal_issuers_' . \md5( \wp_json_encode( $config ) ) + ) ); $ideal_payment_method->add_field( $ideal_issuer_field ); @@ -128,7 +134,7 @@ public function get_available_payment_methods() { /** * Get iDEAL issuers. * - * @return array|array>> + * @return iterable */ private function get_ideal_issuers() { $issuers = []; From d8137fbf235e64dc95c3ffe0f798e9e5f326ac7f Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Tue, 23 Aug 2022 11:19:36 +0200 Subject: [PATCH 06/14] Enrich payment methods with status active. --- src/Gateway.php | 44 +++++++++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/src/Gateway.php b/src/Gateway.php index 2cab923..3b9fbae 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -105,30 +105,44 @@ function() { } /** - * Get available payment methods. + * Get payment methods. * - * @return array - * @see Core_Gateway::get_available_payment_methods() + * @param array $args Query arguments. + * @return PaymentMethod[] */ - public function get_available_payment_methods() { - $core_payment_methods = []; + public function get_payment_methods( $args = [] ) { + $this->maybe_enrich_payment_methods(); - $payment_methods_response = $this->client->get_payment_methods( new PaymentMethodsRequest( $this->config->get_merchant_account() ) ); + return parent::get_payment_methods( $args ); + } - foreach ( $payment_methods_response->get_payment_methods() as $payment_method ) { - $type = $payment_method->get_type(); + /** + * Maybe enrich payment methods. + * + * @return void + */ + private function maybe_enrich_payment_methods() { + $cache_key = 'pronamic_pay_adyen_payment_methods_' . \md5( \wp_json_encode( $this->config ) ); - if ( null === $type ) { - continue; - } + $adyen_payment_methods = \get_transient( $cache_key ); - $core_payment_methods[] = PaymentMethodType::to_wp( $type ); + if ( false === $adyen_payment_methods ) { + $payment_methods_response = $this->client->get_payment_methods( new PaymentMethodsRequest( $this->config->get_merchant_account() ) ); + + $adyen_payment_methods = $payment_methods_response->get_payment_methods(); + + \set_transient( $cache_key, $adyen_payment_methods, \DAY_IN_SECONDS ); } - $core_payment_methods = array_filter( $core_payment_methods ); - $core_payment_methods = array_unique( $core_payment_methods ); + foreach ( $adyen_payment_methods as $adyen_payment_method ) { + $core_payment_method_id = PaymentMethodType::to_wp( $adyen_payment_method->get_type() ); + + $core_payment_method = $this->get_payment_method( $core_payment_method_id ); - return $core_payment_methods; + if ( null !== $core_payment_method ) { + $core_payment_method->set_status( 'active' ); + } + } } /** From 60cfcf8594185517a24f824886d3b15936720a8a Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Tue, 23 Aug 2022 11:39:27 +0200 Subject: [PATCH 07/14] Also mark payment methods as inactive and void is always active. --- src/Gateway.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Gateway.php b/src/Gateway.php index 3b9fbae..8cd0e5d 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -101,7 +101,11 @@ function() { $this->register_payment_method( new PaymentMethod( PaymentMethods::SWISH ) ); $this->register_payment_method( new PaymentMethod( PaymentMethods::TWINT ) ); $this->register_payment_method( new PaymentMethod( PaymentMethods::VIPPS ) ); - $this->register_payment_method( new PaymentMethod( PaymentMethods::VOID ) ); + + $payment_method_void = new PaymentMethod( PaymentMethods::VOID ); + $payment_method_void->set_status( 'active' ); + + $this->register_payment_method( $payment_method_void ); } /** @@ -143,6 +147,12 @@ private function maybe_enrich_payment_methods() { $core_payment_method->set_status( 'active' ); } } + + foreach ( $this->payment_methods as $payment_method ) { + if ( '' === $payment_method->get_status() ) { + $payment_method->set_status( 'inactive' ); + } + } } /** From 4c9c4b81aeaefc5661e45a12e60d42999abaf0ad Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Thu, 25 Aug 2022 13:20:44 +0200 Subject: [PATCH 08/14] Update Gateway.php --- src/Gateway.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Gateway.php b/src/Gateway.php index 8cd0e5d..f54a1cc 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -55,6 +55,8 @@ class Gateway extends Core_Gateway { * @param Config $config Config. */ public function __construct( Config $config ) { + parent::__construct(); + $this->config = $config; $this->set_method( self::METHOD_HTTP_REDIRECT ); From 284a84fa52a223d968de235db485b6dc2b328d74 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Thu, 25 Aug 2022 13:32:50 +0200 Subject: [PATCH 09/14] Catch exceptions. --- src/Gateway.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Gateway.php b/src/Gateway.php index f54a1cc..2445c73 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -117,7 +117,11 @@ function() { * @return PaymentMethod[] */ public function get_payment_methods( $args = [] ) { - $this->maybe_enrich_payment_methods(); + try { + $this->maybe_enrich_payment_methods(); + } catch ( \Exception $e ) { + // No problem. + } return parent::get_payment_methods( $args ); } From 321f9213477352c3767b012d2e4398636c899bbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Wed, 31 Aug 2022 14:44:59 +0200 Subject: [PATCH 10/14] Update `get_payment_methods()` return type to `PaymentMethodsCollection`. --- src/Gateway.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Gateway.php b/src/Gateway.php index 2445c73..a4a641b 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -13,6 +13,7 @@ use Pronamic\WordPress\Pay\Core\Gateway as Core_Gateway; use Pronamic\WordPress\Pay\Core\PaymentMethod; use Pronamic\WordPress\Pay\Core\PaymentMethods; +use Pronamic\WordPress\Pay\Core\PaymentMethodsCollection; use Pronamic\WordPress\Pay\Fields\CachedCallbackOptions; use Pronamic\WordPress\Pay\Fields\IDealIssuerSelectField; use Pronamic\WordPress\Pay\Fields\SelectFieldOption; @@ -114,9 +115,9 @@ function() { * Get payment methods. * * @param array $args Query arguments. - * @return PaymentMethod[] + * @return PaymentMethodsCollection */ - public function get_payment_methods( $args = [] ) { + public function get_payment_methods( array $args = [] ) : PaymentMethodsCollection { try { $this->maybe_enrich_payment_methods(); } catch ( \Exception $e ) { From b831da62be719c43639561a08ef0f7dbb128cd6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Thu, 1 Sep 2022 17:00:43 +0200 Subject: [PATCH 11/14] Remove void payment method. --- src/Gateway.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Gateway.php b/src/Gateway.php index a4a641b..01685de 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -104,11 +104,6 @@ function() { $this->register_payment_method( new PaymentMethod( PaymentMethods::SWISH ) ); $this->register_payment_method( new PaymentMethod( PaymentMethods::TWINT ) ); $this->register_payment_method( new PaymentMethod( PaymentMethods::VIPPS ) ); - - $payment_method_void = new PaymentMethod( PaymentMethods::VOID ); - $payment_method_void->set_status( 'active' ); - - $this->register_payment_method( $payment_method_void ); } /** From ec458a5f99dab22b59e169b39cab4914ec439c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Thu, 1 Sep 2022 22:23:26 +0200 Subject: [PATCH 12/14] Coding standards. --- src/Gateway.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/Gateway.php b/src/Gateway.php index 01685de..923f9f9 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -14,11 +14,11 @@ use Pronamic\WordPress\Pay\Core\PaymentMethod; use Pronamic\WordPress\Pay\Core\PaymentMethods; use Pronamic\WordPress\Pay\Core\PaymentMethodsCollection; +use Pronamic\WordPress\Pay\Core\Util as Core_Util; use Pronamic\WordPress\Pay\Fields\CachedCallbackOptions; use Pronamic\WordPress\Pay\Fields\IDealIssuerSelectField; use Pronamic\WordPress\Pay\Fields\SelectFieldOption; use Pronamic\WordPress\Pay\Fields\SelectFieldOptionGroup; -use Pronamic\WordPress\Pay\Core\Util as Core_Util; use Pronamic\WordPress\Pay\Payments\Payment; use Pronamic\WordPress\Pay\Payments\PaymentStatus; use Pronamic\WordPress\Pay\Plugin; @@ -76,12 +76,14 @@ public function __construct( Config $config ) { $ideal_issuer_field->set_required( true ); - $ideal_issuer_field->set_options( new CachedCallbackOptions( - function() { - return $this->get_ideal_issuers(); - }, - 'pronamic_pay_ideal_issuers_' . \md5( \wp_json_encode( $config ) ) - ) ); + $ideal_issuer_field->set_options( + new CachedCallbackOptions( + function() { + return $this->get_ideal_issuers(); + }, + 'pronamic_pay_ideal_issuers_' . \md5( \wp_json_encode( $config ) ) + ) + ); $ideal_payment_method->add_field( $ideal_issuer_field ); From ef73425b54d951100011ab2b0be4b24e4fca8e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Sun, 25 Sep 2022 20:12:09 +0200 Subject: [PATCH 13/14] Fix changelog. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42bd56f..fc049c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -151,7 +151,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - First release. [unreleased]: https://github.com/pronamic/wp-pronamic-pay-adyen/compare/4.1.0...HEAD -[4.0.0]: https://github.com/pronamic/wp-pronamic-pay-adyen/compare/4.0.0...4.1.0 +[4.1.0]: https://github.com/pronamic/wp-pronamic-pay-adyen/compare/4.0.0...4.1.0 [4.0.0]: https://github.com/pronamic/wp-pronamic-pay-adyen/compare/3.1.1...4.0.0 [3.1.1]: https://github.com/pronamic/wp-pronamic-pay-adyen/compare/3.1.0...3.1.1 [3.1.0]: https://github.com/pronamic/wp-pronamic-pay-adyen/compare/3.0.1...3.1.0 From 6e41e6bcb618f68714312ed56f5e1447bb8f2cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Sun, 25 Sep 2022 20:14:13 +0200 Subject: [PATCH 14/14] Getting ready for version 4.2.0. --- CHANGELOG.md | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc049c8..e5708d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased][unreleased] +## [4.2.0] - 2022-09-25 +- Updated payment methods registration. + ## [4.1.0] - 2022-07-01 ### Changed - Added WordPress network ID and blog ID to merchant reference ([#1](https://github.com/pronamic/wp-pronamic-pay-adyen/issues/1)). @@ -150,7 +153,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## 1.0.0 - 2019-03-28 - First release. -[unreleased]: https://github.com/pronamic/wp-pronamic-pay-adyen/compare/4.1.0...HEAD +[unreleased]: https://github.com/pronamic/wp-pronamic-pay-adyen/compare/4.2.0...HEAD +[4.2.0]: https://github.com/pronamic/wp-pronamic-pay-adyen/compare/4.1.0...4.2.0 [4.1.0]: https://github.com/pronamic/wp-pronamic-pay-adyen/compare/4.0.0...4.1.0 [4.0.0]: https://github.com/pronamic/wp-pronamic-pay-adyen/compare/3.1.1...4.0.0 [3.1.1]: https://github.com/pronamic/wp-pronamic-pay-adyen/compare/3.1.0...3.1.1 diff --git a/package.json b/package.json index e90aa01..be50922 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "adyen", - "version": "4.1.0", + "version": "4.2.0", "description": "Adyen driver for the WordPress payment processing library.", "repository": { "type": "git",