Coder Social home page Coder Social logo

syliusadyenplugin_old's People

Contributors

4c0n avatar bitbager avatar krisflorq avatar patrick477 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

syliusadyenplugin_old's Issues

Name file & Class Interface

Hello,
There is a small naming error on the ModificationRequestAdyenBridgeInteface file and class => ModificationRequestAdyenBridgeInterface

See you soon.

New Tag

Hey!

first of all, thank you for this Plugin! ๐Ÿ˜„

Would you create a new tag? Currently, the latest stable version isn't useable in newer versions of sylius, because all services are private by default.

This commit fixes this issue :)

Many Thanks!

Concurrent notify runs

We have concurrent runs, to update a status to 'paid'.

  1. customer "checkout callback"
  2. Adyen "/payment/adyen/notify"
    Both set the status on paid, and all state-machine-callbacks are running twice.

Did you also experienced this problem?
related: Sylius/Sylius#10872

Unsuccessful Authorisation saved as successful

Because reason is empty, the payment is marked as Authorised !!
An example of a real Adyen notification:

originalReference=
reason=
additionalData.hmacSignature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
merchantAccountCode=xxxxxxxxxx
eventCode=AUTHORISATION
operations=
success=false
paymentMethod=ideal
currency=EUR
pspReference=4755881009859805
merchantReference=*****3051-7409
value=4990
live=true
eventDate=2020-04-28T19:10:18.42Z

This code is wrong.

          if (AdyenBridgeInterface::AUTHORISATION === $httpRequest->request['eventCode']) {
                if (true === filter_var($httpRequest->request['success'], FILTER_VALIDATE_BOOLEAN)) {
                    $httpRequest->request['authResult'] = AdyenBridgeInterface::AUTHORISED;
                } elseif (!empty($httpRequest->request['reason'])) {
                    $httpRequest->request['authResult'] = AdyenBridgeInterface::REFUSED;
                }
            }

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.