Giter VIP home page Giter VIP logo

2checkout's Introduction

The module integrates a Magento 2 based webstore with the 2Checkout payment service.
The module is free and open source.

Demo videos

  1. Capture a payment.
  2. Partially refund a payment from the Magento side.
  3. Refund a payment from the 2Checkout side.

How to install

Hire me in Upwork, and I will:

  • install and configure the module properly on your website
  • answer your questions
  • solve compatiblity problems with third-party checkout, shipping, marketing modules
  • implement new features you need

2. Self-installation

bin/magento maintenance:enable
rm -f composer.lock
composer clear-cache
composer require mage2pro/2checkout:*
bin/magento setup:upgrade
bin/magento cache:enable
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy -f en_US <additional locales>
bin/magento maintenance:disable

How to update

bin/magento maintenance:enable
composer remove mage2pro/2checkout
rm -f composer.lock
composer clear-cache
composer require mage2pro/2checkout:*
bin/magento setup:upgrade
bin/magento cache:enable
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy -f en_US <additional locales>
bin/magento maintenance:disable

2checkout's People

Contributors

dmitrii-fediuk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

2checkout's Issues

An error has occurred while processing your transaction\nTransaction Captured

{"0":"An error has occurred while processing your transaction\nTransaction Captured\n","1":"#0 \/app\/myuser\/vendor\/mage2pro\/checkout.com\/Method.php(516): Dfe\\CheckoutCom\\Method->leh(Object(Closure))\n#1 \/app\/myuser\/vendor\/mage2pro\/checkout.com\/Method.php(360): Dfe\\CheckoutCom\\Method->capturePreauthorized(Object(Magento\\Sales\\Model\\Order\\Payment\\Transaction\\Interceptor))\n#2 [internal function]: Dfe\\CheckoutCom\\Method->charge()\n#3 \/app\/myuser\/vendor\/mage2pro\/core\/Payment\/Method.php(156): call_user_func(Array)\n#4 \/app\/myuser\/vendor\/mage2pro\/core\/Payment\/Method.php(860): Df\\Payment\\Method->action('charge')\n#5 \/app\/myuser\/vendor\/magento\/module-sales\/Model\/Order\/Payment\/Operations\/CaptureOperation.php(82): Df\\Payment\\Method->capture(Object(Magento\\Sales\\Model\\Order\\Payment\\Interceptor), '609')\n#6 \/app\/myuser\/vendor\/magento\/module-sales\/Model\/Order\/Payment\/Processor.php(85): Magento\\Sales\\Model\\Order\\Payment\\Operations\\CaptureOperation->capture(Object(Magento\\Sales\\Model\\Order\\Payment\\Interceptor), Object(Magento\\Sales\\Model\\Order\\Invoice\\Interceptor))\n#7 \/app\/myuser\/vendor\/magento\/module-sales\/Model\/Order\/Payment.php(467): Magento\\Sales\\Model\\Order\\Payment\\Processor->capture(Object(Magento\\Sales\\Model\\Order\\Payment\\Interceptor), Object(Magento\\Sales\\Model\\Order\\Invoice\\Interceptor))\n#8 \/app\/myuser\/vendor\/magento\/module-sales\/Model\/Order\/Invoice.php(344): Magento\\Sales\\Model\\Order\\Payment->capture(Object(Magento\\Sales\\Model\\Order\\Invoice\\Interceptor))\n#9 \/app\/myuser\/vendor\/magento\/module-sales\/Model\/Order\/Invoice.php(618): Magento\\Sales\\Model\\Order\\Invoice->capture()\n#10 \/app\/myuser\/vendor\/mage2pro\/checkout.com\/Handler\/CustomerReturn.php(148): Magento\\Sales\\Model\\Order\\Invoice->register()\n#11 \/app\/myuser\/vendor\/mage2pro\/checkout.com\/Controller\/Index\/Index.php(35): Dfe\\CheckoutCom\\Handler\\CustomerReturn::p('pay_tok_c61f507...')\n#12 \/app\/myuser\/vendor\/mage2pro\/core\/Qa\/lib\/exception.php(81): Dfe\\CheckoutCom\\Controller\\Index\\Index->Dfe\\CheckoutCom\\Controller\\Index\\{closure}()\n#13 \/app\/myuser\/vendor\/mage2pro\/checkout.com\/Controller\/Index\/Index.php(41): df_leh(Object(Closure))\n#14 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Dfe\\CheckoutCom\\Controller\\Index\\Index->execute()\n#15 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Dfe\\CheckoutCom\\Controller\\Index\\Index\\Interceptor->___callParent('execute', Array)\n#16 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Dfe\\CheckoutCom\\Controller\\Index\\Index\\Interceptor->Magento\\Framework\\Interception\\{closure}()\n#17 \/app\/myuser\/generated\/code\/Dfe\/CheckoutCom\/Controller\/Index\/Index\/Interceptor.php(26): Dfe\\CheckoutCom\\Controller\\Index\\Index\\Interceptor->___callPlugins('execute', Array, Array)\n#18 \/app\/myuser\/vendor\/magento\/framework\/App\/Action\/Action.php(107): Dfe\\CheckoutCom\\Controller\\Index\\Index\\Interceptor->execute()\n#19 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Framework\\App\\Action\\Action->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#20 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Dfe\\CheckoutCom\\Controller\\Index\\Index\\Interceptor->___callParent('dispatch', Array)\n#21 \/app\/myuser\/vendor\/magento\/module-customer-segment\/Model\/App\/Action\/ContextPlugin.php(81): Dfe\\CheckoutCom\\Controller\\Index\\Index\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#22 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(135): Magento\\CustomerSegment\\Model\\App\\Action\\ContextPlugin->aroundDispatch(Object(Dfe\\CheckoutCom\\Controller\\Index\\Index\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\n#23 \/app\/myuser\/app\/code\/mymagento\/StoreSwitcher\/Plugins\/ContextPlugin.php(138): Dfe\\CheckoutCom\\Controller\\Index\\Index\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#24 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(135): mymagento\\StoreSwitcher\\Plugins\\ContextPlugin->aroundDispatch(Object(Dfe\\CheckoutCom\\Controller\\Index\\Index\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\n#25 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Dfe\\CheckoutCom\\Controller\\Index\\Index\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#26 \/app\/myuser\/generated\/code\/Dfe\/CheckoutCom\/Controller\/Index\/Index\/Interceptor.php(39): Dfe\\CheckoutCom\\Controller\\Index\\Index\\Interceptor->___callPlugins('dispatch', Array, Array)\n#27 \/app\/myuser\/vendor\/magento\/framework\/App\/FrontController.php(55): Dfe\\CheckoutCom\\Controller\\Index\\Index\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#28 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Framework\\App\\FrontController->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#29 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\Framework\\App\\FrontController\\Interceptor->___callParent('dispatch', Array)\n#30 \/app\/myuser\/vendor\/magento\/module-store\/App\/FrontController\/Plugin\/RequestPreprocessor.php(94): Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#31 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(135): Magento\\Store\\App\\FrontController\\Plugin\\RequestPreprocessor->aroundDispatch(Object(Magento\\Framework\\App\\FrontController\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\n#32 \/app\/myuser\/vendor\/magento\/module-page-cache\/Model\/App\/FrontController\/BuiltinPlugin.php(69): Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#33 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(135): Magento\\PageCache\\Model\\App\\FrontController\\BuiltinPlugin->aroundDispatch(Object(Magento\\Framework\\App\\FrontController\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\n#34 \/app\/myuser\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#35 \/app\/myuser\/generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php(26): Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins('dispatch', Array, NULL)\n#36 \/app\/myuser\/vendor\/magento\/framework\/App\/Http.php(135): Magento\\Framework\\App\\FrontController\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#37 \/app\/myuser\/vendor\/magento\/framework\/App\/Bootstrap.php(256): Magento\\Framework\\App\\Http->launch()\n#38 \/app\/myuser\/pub\/index.php(37): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http\\Interceptor))\n#39 {main}","url":"\/dfe-checkout-com\/index\/index\/?cko-payment-token=pay_tok_c61f5076-904e-4086-b35d-2dddead43bf5","script_name":"\/index.php"}

compile error mage 2.4.3

Compilation was started.
Repositories code generation... 1/9 [===>------------------------] 11% 1 sec 76.0 MiBPHP Fatal error: Uncaught Error: Class 'Df\Core\OLegacy' not found in /home/cloudpanel/htdocs/local.mage/vendor/mage2pro/2checkout/LineItem.php:7
Stack trace:
#0 /home/cloudpanel/htdocs/local.mage/vendor/composer/ClassLoader.php(444): include()
#1 /home/cloudpanel/htdocs/local.mage/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile()
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#3 /home/cloudpanel/htdocs/local.mage/vendor/mage2pro/2checkout/LineItem/Product.php(9): spl_autoload_call()
#4 /home/cloudpanel/htdocs/local.mage/vendor/composer/ClassLoader.php(444): include('/home/cloudpane...')
#5 /home/cloudpanel/htdocs/local.mage/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile()
#6 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#7 [internal function]: spl_autoload_call()
#8 /home/cloudpanel/htdocs/local.mage/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScann in /home/cloudpanel/htdocs/local.mage/vendor/mage2pro/2checkout/LineItem.php on line 7

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.