From f587c170c826e1998ff4c56549efffd181acfec0 Mon Sep 17 00:00:00 2001 From: Anne Jan Brouwer Date: Thu, 31 May 2018 17:46:35 +0200 Subject: [PATCH 1/2] Added Moneyou --- src/Helpers/ServiceHelper.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Helpers/ServiceHelper.php b/src/Helpers/ServiceHelper.php index e0a6889..9d40ff0 100644 --- a/src/Helpers/ServiceHelper.php +++ b/src/Helpers/ServiceHelper.php @@ -32,7 +32,8 @@ class ServiceHelper const IDEAL_VAN_LANSCHOT = 'FVLBNL22'; const IDEAL_KNAB_BANK = 'KNABNL2H'; const IDEAL_BUNQ = 'BUNQNL2A'; - + const IDEAL_MONEYOU = 'MOYONL21'; + /** * Is the string a valid iDeal bank? * @@ -53,6 +54,7 @@ public static function isValidIdealBank($sIdealBank) self::IDEAL_VAN_LANSCHOT, self::IDEAL_KNAB_BANK, self::IDEAL_BUNQ, + slef::IDEAL_MONEYOU, ]); } @@ -102,4 +104,4 @@ public static function isValidBuckarooService($sBuckarooService) ]); } -} \ No newline at end of file +} From 3fbe64981766049af22c6e000615bb00b377ca09 Mon Sep 17 00:00:00 2001 From: Anne Jan Brouwer Date: Thu, 31 May 2018 17:49:34 +0200 Subject: [PATCH 2/2] Added name to getStaticIdealBanks and fixed typo --- src/Helpers/ServiceHelper.php | 2 +- src/IdealTransaction.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Helpers/ServiceHelper.php b/src/Helpers/ServiceHelper.php index 9d40ff0..b7c541c 100644 --- a/src/Helpers/ServiceHelper.php +++ b/src/Helpers/ServiceHelper.php @@ -54,7 +54,7 @@ public static function isValidIdealBank($sIdealBank) self::IDEAL_VAN_LANSCHOT, self::IDEAL_KNAB_BANK, self::IDEAL_BUNQ, - slef::IDEAL_MONEYOU, + self::IDEAL_MONEYOU, ]); } diff --git a/src/IdealTransaction.php b/src/IdealTransaction.php index 6726914..5ad70e6 100644 --- a/src/IdealTransaction.php +++ b/src/IdealTransaction.php @@ -77,6 +77,10 @@ public static function getStaticIdealBanks() 'name' => 'Bunq', 'code' => ServiceHelper::IDEAL_BUNQ, ], + [ + 'name' => 'Moneyou', + 'code' => ServiceHelper::IDEAL_MONEYOU, + ], ]; } @@ -103,4 +107,4 @@ public function getIdealBanks() ->getRequestParameter('issuer') ->getListItems(); } -} \ No newline at end of file +}