Skip to content

Commit

Permalink
Merge pull request #189 from Invertus/SL-257/add-holdername
Browse files Browse the repository at this point in the history
SL-257 Added 'Holder Name' into BO
  • Loading branch information
MarijusCoding authored Sep 23, 2024
2 parents e185635 + 4627df2 commit 4e65cce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Config/SaferPayConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ class SaferPayConfig
const PAYMENT_BEHAVIOR_WITHOUT_3D_CANCEL = 0;
const PAYMENT_BEHAVIOR_WITHOUT_3D_AUTHORIZE = 1;

const SAFERPAY_CARDFORM_HOLDERNAME_REQUIRENCE = 'MANDATORY';

public static function supportsOrderCapture(string $paymentMethod)
{
//payments that DOES NOT SUPPORT capture
Expand Down
3 changes: 3 additions & 0 deletions src/DTO/Request/Initialize/InitializeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ public function getAsArray()
'AddressSource' => $this->deliveryAddressForm->getAddressSource(),
'MandatoryFields' => $this->deliveryAddressForm->getMandatoryFields(),
],
'CardForm' => [
'HolderName' => SaferPayConfig::SAFERPAY_CARDFORM_HOLDERNAME_REQUIRENCE,
],
];

if ($this->notification !== null) {
Expand Down

0 comments on commit 4e65cce

Please sign in to comment.