Code Monkey home page Code Monkey logo

paymenthighway-php-lib's People

Contributors

jonni-larjomaa avatar kostersson avatar margussipria avatar swie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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

paymenthighway-php-lib's Issues

Transaction class constructor expects Splitting to be in Request namespace

We're using library version 1.6.0. Our static code analysis tool picked up the following error

ERROR: InvalidArgument - PaymentHighway.php:144:75 - 
Argument 6 of Solinor\PaymentHighway\Model\Request\Transaction::__construct 
expects Solinor\PaymentHighway\Model\Request\Splitting|null,
null|Solinor\PaymentHighway\Model\Splitting provided
$transaction = new Transaction($token, $amount, $currency, true, null, $splitting);

Your Transaction class is namespaced with Solinor\PaymentHighway\Model\Request and the constructor expects to receive Model\Request\Splitting, but there's no Splitting in Request. It's in Model, i.e Model\Splitting.

Possible typo in Transaction request model

Transaction model has variable defined named orderId

public $orderId = null;

In constructor however $orderId is assigned to class variable order

public function __construct( $request, $amount, $currency, $blocking = true, $orderId = null )
...
$this->order = $orderId;

I'm assuming it should be orderId instead of order in constructor?

Conflict with Laravel 5.4

Hi,

This package is using ramsey/uuid version 2.8, while Laravel 5.4 requires version ^3.0 and thus it cannot be installed by Composer. Could you update the dependencies requirement please?

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.