From 9cdc1d5fd45a1f716cd82fa7044b34b2021704b2 Mon Sep 17 00:00:00 2001 From: Daan Rijpkema Date: Fri, 31 Jul 2026 18:41:07 +0200 Subject: [PATCH] Add missing iDEAL issuing bank BICs --- README.md | 2 ++ src/Contexts/PaymentsContext.php | 2 ++ tests/Unit/BluemPaymentsTest.php | 13 +++++++++++++ 3 files changed, 17 insertions(+) diff --git a/README.md b/README.md index dc29728..462b7ad 100644 --- a/README.md +++ b/README.md @@ -815,9 +815,11 @@ The current 2026 certificate is available as `keys/webhook_bluem_nl_20260716.pem #### ePayments - ABN AMRO
BIC: `ABNANL2A` +- Adyen
BIC: `ADYBNL2A` - ASN Bank
BIC: `ASNBNL21` - ASN (previously SNS)
BIC: `SNSBNL2A` - bunq
BIC: `BUNQNL2A` +- BUUT
BIC: `BUUTNL2A` - ING
BIC: `INGBNL2A` - Knab
BIC: `KNABNL2H` - Rabobank
BIC: `RABONL2U` diff --git a/src/Contexts/PaymentsContext.php b/src/Contexts/PaymentsContext.php index e7dfe44..810e473 100644 --- a/src/Contexts/PaymentsContext.php +++ b/src/Contexts/PaymentsContext.php @@ -55,8 +55,10 @@ public function __construct() parent::__construct( [ new BIC("ABNANL2A", "ABN AMRO"), + new BIC("ADYBNL2A", "Adyen"), new BIC("ASNBNL21", "ASN Bank"), new BIC("BUNQNL2A", "Bunq"), + new BIC("BUUTNL2A", "BUUT"), new BIC("INGBNL2A", "ING"), new BIC("KNABNL2H", "Knab"), new BIC("RABONL2U", "Rabobank"), diff --git a/tests/Unit/BluemPaymentsTest.php b/tests/Unit/BluemPaymentsTest.php index 8170ea0..e4cedab 100644 --- a/tests/Unit/BluemPaymentsTest.php +++ b/tests/Unit/BluemPaymentsTest.php @@ -10,6 +10,7 @@ namespace Bluem\BluemPHP\Tests\Unit; use Bluem\BluemPHP\Requests\PaymentBluemRequest; +use Bluem\BluemPHP\Contexts\PaymentsContext; class BluemPaymentsTest extends BluemTestCase { @@ -40,4 +41,16 @@ public function testCreditCardRequestIncludesSecurityCodeWhenProvided(): void self::assertStringContainsString('123', $request->XmlString()); } + + public function testSupportsAllDocumentedIdealIssuingBankBics(): void + { + $expectedBics = [ + 'ABNANL2A', 'ADYBNL2A', 'ASNBNL21', 'BUNQNL2A', 'BUUTNL2A', + 'INGBNL2A', 'KNABNL2H', 'RABONL2U', 'RBRBNL21', 'SNSBNL2A', + 'TRIONL2U', 'FVLBNL22', 'REVOLT21', 'BITSNL2A', 'NTSBDEB1', + 'NNBANL2G', + ]; + + self::assertSame($expectedBics, (new PaymentsContext())->getBICCodes()); + } }