Skip to content

Commit

Permalink
Set debtor wallet to contain key of methods CARTE_BANCAIRE and BANCON…
Browse files Browse the repository at this point in the history
…TACT
  • Loading branch information
daanrijpkemacb committed Nov 10, 2024
1 parent 25cdf6e commit 431013c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Contexts/PaymentsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class PaymentsContext extends BluemContext
*/
public function __construct()
{
// @todo: make BICs method-specific
parent::__construct(
[
new BIC("ABNANL2A", "ABN AMRO"),
Expand Down
4 changes: 3 additions & 1 deletion src/Requests/PaymentBluemRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,10 @@ private function XmlWrapDebtorWalletForPaymentMethod(): string
} elseif ($this->context->isSofort()) {
// if specific sofort body becomes required in the future; please add it here
} elseif ($this->context->isCarteBancaire()) {
// $res .= "CARTE_BANCAIRE";
// if specific carte bancaire body becomes required in the future; please add it here
} elseif ($this->context->isBancontact()) {
// $res .= "BANCONTACT";
// if specific bancontact body becomes required in the future; please add it here
}

Expand All @@ -366,7 +368,7 @@ private function XmlWrapDebtorWalletForPaymentMethod(): string
* @return void
* @throws Exception
*/
public function selectDebtorWallet($BIC)
public function selectDebtorWallet($BIC): void
{

if (! in_array($BIC, $this->context->getBICCodes())) {
Expand Down

0 comments on commit 431013c

Please sign in to comment.