Giter VIP home page Giter VIP logo

billogram-v2-api-php-lib's People

Contributors

jongotlin avatar kalaspuff avatar kiwiholmberg avatar murtlest avatar peshi avatar railslide avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

billogram-v2-api-php-lib's Issues

BillogramClass.php unused parameter.

$method is never used in this function.

    /**
     * Creates and sells a billogram.
     *
     * @param $data
     * @param $method
     * @return \Billogram\Api\Objects\BillogramObject
     */
    public function createAndSell($data, $method)
    {
        $data['_event'] = 'sell';
        $billogram = $this->create($data);

        return $billogram;
    }

Add support for Httplug

At the moment you are using fopen to send HTTP requests. A lot of what you are doing is like waking across the bridge for water.
Would you be open for using a standard way of sending HTTP requests by using HTTPlug?

This will reduce your code by at least 50% and will also solve the issue in #9.

Feedback

Hey @AndreasHogstrom

May I suggest that you should not be defensive in your responses. Example #9, #12, #13, #14. There are a lot of great developers that would like to help you making your project better, they should be encouraged instead of shot down with an answer without content.

Im fine with you not accepting my changes but I would like to see a reason based on good software design instead of "I do not feel like it".

[Minor] Use PSR4

Just a minor thing. A cool company like Billogram should not be using deprecated PSRs. We should consider moving to PSR4.

allow_url_fopen setting does not work with code

Hi,

using http wrapper in streams considered as potential security risk. On our server we use allow_url_fopen=0 to block possibility to use url instead filenames. The recomended method to make remote requests in PHP is to use curl directly.
Anyway there would be no problem to override Api::httpRequest if it would have protected access modifier.

Find CustomerNo Example

Does the library allow creating invoices without a customer no? I have an issue where every API order creates duplicate customer profiles. The example file is pretty insufficient perhaps an example would save integrators a lot of time.

Create an adapter for Payum

Is there any plans for an extension/adapter to Payum? Would you willing to accept a new package like that?

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.