Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buckaroo_Magento2_Cron fails when card type does not exist on global scope #18

Open
igorwulff opened this issue Jun 30, 2022 · 0 comments
Assignees

Comments

@igorwulff
Copy link

igorwulff commented Jun 30, 2022

For our client the allowed creditcards set on a default/global level are different then those on website and store level:

mysql> select scope, scope_id, value from core_config_data where path = 'payment/buckaroo_magento2_creditcard/allowed_creditcards';
+----------+----------+----------------------------------------------------------------+
| scope | scope_id | value |
+----------+----------+----------------------------------------------------------------+
| default | 0 | maestro,mastercard,visa |
| stores | 4 | amex,maestro,mastercard,visa |
| websites | 3 | amex,cartebancaire,cartebleuevisa,maestro,mastercard,visa,vpay |
| stores | 3 | amex,cartebancaire,cartebleuevisa,maestro,mastercard,visa,vpay |
| websites | 33 | maestro,mastercard,visa |
| websites | 1 | amex,maestro,mastercard,visa |
+----------+----------+----------------------------------------------------------------+
6 rows in set (0.00 sec)

This leads to the following error when running the cornjob: buckaroo_magento2_run:

Run Buckaroo\Magento2SecondChance\Cron\SecondChance::execute

Cron-job "buckaroo_magento2_cron" threw exception InvalidArgumentException

In Creditcard.php line 242:

No card found for card type: cartebancaire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants