Skip to content

Commit

Permalink
Merge pull request #1006 from buckaroo-it/BP-3683-SEPA-Direct-Debit-t…
Browse files Browse the repository at this point in the history
…ransaction-shows-error-An-error-occurred-on-the-server-please-try-again

Bp 3683 sepa direct debit transaction shows error an error occurred on the server please try again
  • Loading branch information
vegimcarkaxhija committed Aug 8, 2024
2 parents 13492f5 + 026882d commit 0ec523c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Model/Method/SepaDirectDebit.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public function validateAdditionalData() {
$billingCountry = $paymentInfo->getQuote()->getBillingAddress()->getCountryId();
}

$ibanValidator = $this->objectManager->create(\Zend\Validator\Iban::class);
$ibanValidator = $this->objectManager->create(\Laminas\Validator\Iban::class);
if (empty($customerIban) || !$ibanValidator->isValid($customerIban)) {
throw new \Buckaroo\Magento2\Exception(__('Please enter a valid bank account number'));
}
Expand Down
2 changes: 1 addition & 1 deletion Test/Unit/Model/Method/SepaDirectDebitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
use Buckaroo\Magento2\Gateway\Http\TransactionBuilderFactory;
use Buckaroo\Magento2\Model\Method\SepaDirectDebit;
use Buckaroo\Magento2\Service\CreditManagement\ServiceParameters;
use Zend\Validator\Iban;
use Laminas\Validator\Iban;

class SepaDirectDebitTest extends \Buckaroo\Magento2\Test\BaseTest
{
Expand Down

0 comments on commit 0ec523c

Please sign in to comment.