Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -815,9 +815,11 @@ The current 2026 certificate is available as `keys/webhook_bluem_nl_20260716.pem
#### ePayments

- ABN AMRO <BR> BIC: `ABNANL2A`
- Adyen <BR> BIC: `ADYBNL2A`
- ASN Bank <BR> BIC: `ASNBNL21`
- ASN (previously SNS) <BR> BIC: `SNSBNL2A`
- bunq <BR> BIC: `BUNQNL2A`
- BUUT <BR> BIC: `BUUTNL2A`
- ING <BR> BIC: `INGBNL2A`
- Knab <BR> BIC: `KNABNL2H`
- Rabobank <BR> BIC: `RABONL2U`
Expand Down
2 changes: 2 additions & 0 deletions src/Contexts/PaymentsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
13 changes: 13 additions & 0 deletions tests/Unit/BluemPaymentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Bluem\BluemPHP\Tests\Unit;

use Bluem\BluemPHP\Requests\PaymentBluemRequest;
use Bluem\BluemPHP\Contexts\PaymentsContext;

class BluemPaymentsTest extends BluemTestCase
{
Expand Down Expand Up @@ -40,4 +41,16 @@ public function testCreditCardRequestIncludesSecurityCodeWhenProvided(): void

self::assertStringContainsString('<SecurityCode>123</SecurityCode>', $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());
}
}
Loading