Coder Social home page Coder Social logo

buckaroo-it / magento2_secondchance Goto Github PK

View Code? Open in Web Editor NEW
1.0 7.0 0.0 83 KB

Repository containing the Magento 2 Second Chance plugin by Buckaroo

License: MIT License

PHP 90.01% HTML 9.99%
ideal keep-alive magento2-payment magento2-plugin payment-processing payments second-chance

magento2_secondchance's People

Contributors

buckaroo-rens avatar florinel-chis avatar saranchuk-hys avatar vladislav-padalka-hys avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento2_secondchance's Issues

Buckaroo_Magento2_Cron fails when card type does not exist on global scope

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

Namespace error in Model/SecondChanceRepository.php

Row 590 of Model/SecondChanceRepository.php uses Type::TYPE_SIMPLE
which results in PHP Fatal error: Uncaught Error: Class 'Buckaroo\Magento2SecondChance\Model\Type' not found

Presumably, this refers to Magento\Catalog\Model\Product\Type::TYPE_SIMPLE which is 'simple'

Fix, add use Magento\Catalog\Model\Product\Type; to the use-block

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.