Code Monkey home page Code Monkey logo

magento2_payupl's Introduction

This project is ABANDONNED

Orba Magento 2 Payu.pl Module

Payu.pl integration for Magento 2

Key features

  • both POS types support (classic and checkout),
  • multi-store support,
  • full integration with Magento payment flow (transactions, refunds, etc.),
  • logging all APIs exceptions and errors,
  • possibility to choose payment type directly in checkout (only for classic POS),
  • possibility to repeat unsuccessful payment,
  • over 300 unit tests

Configuration in Payu.pl panel

You have to create new POS in Payu.pl panel for your Magento store. Both "classic" and "checkout" POS types are supported but we recommend to use "classic".

POS should have "Data coding" set to "UTF-8".

"Error return address" should be set to "yourdomain/orba_payupl/payment/end/error/%error%/session_id/%sessionId%"

"Successful return address" should be set to "yourdomain/orba_payupl/payment/end"

"Address for reports" should be set to "yourdomain/orba_payupl/payment/notify"

The string "yourdomain" should be replaced with your store domain, eg. "magento-store.pl/orba_payupl/payment/end".

For testing purposes enable "test payment". It's a fake payment method you can use during checkout. You won't be charged for anything but all the processes will work just like if it was a normal payment.

Configuration in Magento panel

The configuration can be found in Stores > Configuration > Sales > Payment Methods > ORBA | Payu.pl. It should be pretty straight-forward.

magento2_payupl's People

Contributors

marcin-dzdza-orba avatar michal-biarda-orba avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento2_payupl's Issues

Notification consumer unable to handle the Order

PHP 7.1.16
Magento 2.2.4
Latest version of PayU module

NewRelic stack trace:

Exception: Noticed exception 'Exception' with message 'Notice: Undefined property: stdClass::$order in /var/www/magento/current/app/code/Orba/Payupl/Model/Client/Rest/Order.php on line 208' in /var/www/magento/current/vendor/magento/framework/App/ErrorHandler.php:61
in Magento\Framework\App\ErrorHandler::handler called at /var/www/magento/current/app/code/Orba/Payupl/Model/Client/Rest/Order.php (208)
in Orba\Payupl\Model\Client\Rest\Order::consumeNotification called at /var/www/magento/current/app/code/Orba/Payupl/Model/Client.php (116)
in Orba\Payupl\Model\Client::orderConsumeNotification called at /var/www/magento/current/app/code/Orba/Payupl/Controller/Payment/Notify.php (59)
in Orba\Payupl\Controller\Payment\Notify::execute called at /var/www/magento/current/vendor/magento/framework/App/Action/Action.php (107)
in Magento\Framework\App\Action\Action::dispatch called at /var/www/magento/current/vendor/magento/framework/Interception/Interceptor.php (58)
in Orba\Payupl\Controller\Payment\Notify\Interceptor::___callParent called at /var/www/magento/current/vendor/magento/framework/Interception/Interceptor.php (138)
in Orba\Payupl\Controller\Payment\Notify\Interceptor::Magento\Framework\Interception\{closure} called at /var/www/magento/current/app/code/Anowave/Ec/Plugin/App/Action/Context.php (148)
in Anowave\Ec\Plugin\App\Action\Context::aroundDispatch called at /var/www/magento/current/vendor/magento/framework/Interception/Interceptor.php (135)
in Orba\Payupl\Controller\Payment\Notify\Interceptor::Magento\Framework\Interception\{closure} called at /var/www/magento/current/app/code/---/---/Plugin/App/Action/Context.php (47)
in Fwc\Kwanko\Plugin\App\Action\Context::aroundDispatch called at /var/www/magento/current/vendor/magento/framework/Interception/Interceptor.php (135)
in Orba\Payupl\Controller\Payment\Notify\Interceptor::Magento\Framework\Interception\{closure} called at /var/www/magento/current/vendor/magento/framework/Interception/Interceptor.php (153)
in Orba\Payupl\Controller\Payment\Notify\Interceptor::___callPlugins called at /var/www/magento/current/generated/code/Orba/Payupl/Controller/Payment/Notify/Interceptor.php (26)
in Orba\Payupl\Controller\Payment\Notify\Interceptor::dispatch called at /var/www/magento/current/vendor/magento/framework/App/FrontController.php (55)
in Magento\Framework\App\FrontController::dispatch called at /var/www/magento/current/vendor/magento/framework/Interception/Interceptor.php (58)
in Magento\Framework\App\FrontController\Interceptor::___callParent called at /var/www/magento/current/vendor/magento/framework/Interception/Interceptor.php (138)
in Magento\Framework\App\FrontController\Interceptor::Magento\Framework\Interception\{closure} called at /var/www/magento/current/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php (94)
in Magento\Store\App\FrontController\Plugin\RequestPreprocessor::aroundDispatch called at /var/www/magento/current/vendor/magento/framework/Interception/Interceptor.php (135)
in Magento\Framework\App\FrontController\Interceptor::Magento\Framework\Interception\{closure} called at /var/www/magento/current/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php (69)
in Magento\PageCache\Model\App\FrontController\BuiltinPlugin::aroundDispatch called at /var/www/magento/current/vendor/magento/framework/Interception/Interceptor.php (135)
in Magento\Framework\App\FrontController\Interceptor::Magento\Framework\Interception\{closure} called at /var/www/magento/current/vendor/magento/framework/Interception/Interceptor.php (153)
in Magento\Framework\App\FrontController\Interceptor::___callPlugins called at /var/www/magento/current/generated/code/Magento/Framework/App/FrontController/Interceptor.php (26)
in Magento\Framework\App\FrontController\Interceptor::dispatch called at /var/www/magento/current/vendor/magento/framework/App/Http.php (135)
in Magento\Framework\App\Http::launch called at /var/www/magento/current/vendor/magento/framework/App/Bootstrap.php (256)
in Magento\Framework\App\Bootstrap::run called at /var/www/magento/current/pub/index.php (38)

Looks like some notifications does not carry any OrderID, which ends up with exception.

AbstractMethod is Deprecated

As you know, in MCE2.1.1 AbstractMethod is Deprecated and your class should be change class Payupl extends AbstractMethod

Payubiz india

can we use the sam plugin for payubiz india magento integration ??

create invoice when payment is succesful

Hi,
In configurations, I can choose that "Completed Payment Order Status" will be in "processing" status.
So it changes the status to processing but does not create an invoice.

how can I make it create an invoice automatically when payment is completed?

thanks.

Currency problem.

Hi!
Whenever I am trying to use your extension as a payment method in my store i have a problem with currencies.
My store is in EURO and when client start doing chekout using PAY U as a payment method it redirects him to the PAY U site but the total in PLN = total in EURO.
So for example device should cost 2000EUR but when using PAY U after redirecting to the PAU site it is 2000 PLN.
Do you have any idea how i can fix this problem?
I'm using classic POS.
THANKS

Magento Backend Order print give error :POS ID is empty

Magento backend Order print give error:

a:4:{i:0;s:16:"POS ID is empty.";i:1;s:8042:"#0 /var/www/html/xxxxx/app/code/Orba/Payupl/Model/Client.php(35): Orba\Payupl\Model\Client\Classic\Config->setConfig()
#1 /var/www/html/xxxxx/app/code/Orba/Payupl/Model/Client/Classic.php(23): Orba\Payupl\Model\Client->__construct(Object(Orba\Payupl\Model\Client\Classic\Config), Object(Orba\Payupl\Model\Client\Classic\Order), Object(Orba\Payupl\Model\Client\Classic\Refund))
#2 /var/www/html/xxxxx/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(93): Orba\Payupl\Model\Client\Classic->__construct(Object(Orba\Payupl\Model\Client\Classic\Config), Object(Orba\Payupl\Model\Client\Classic\Order), Object(Orba\Payupl\Model\Client\Classic\Refund))
#3 /var/www/html/xxxxx/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(89): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Orba\Payupl\Mod...', Array)
#4 /var/www/html/xxxxx/vendor/magento/framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Orba\Payupl\Mod...', Array)
#5 /var/www/html/xxxxx/app/code/Orba/Payupl/Model/ClientFactory.php(42): Magento\Framework\ObjectManager\ObjectManager->create('Orba\Payupl\Mod...', Array)
...............

May be because payupl payment method is set in other store and we are print order of that store and payupl payment method is not enabled in default store(admin store)

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.