Coder Social home page Coder Social logo

php-hostedpayments-lib's Introduction

PHP-HostedPayments-lib

PHP-HostedPayments-lib is a small library that will help PHP developers to process their payments through EVO Snap*.

Please note, verison 1.1 is a significant rewrite of the library. Do not upgrade directly from 1.0.1 to 1.1 without reviewing the changelog. Version 1.1 is designed with PSR-4 and Composer in mind, and should play nicely with modern PHP frameworks.

You can get more info about Hosted Payments at the Hosted Payments website.

Using the library with Composer:

Below is an "composer.json" example file that will download the library:

{
    "name": "evo/example",
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/EVO-Snap/PHP-HostedPayments-lib"
        }
    ],
    "require": {
        "evo-snap/hosted-payments": "1.1"
    }
}

Use in production

Hosted Payments library uses PHP cURL to communicate with our servers. It is prepared to avoid SSL verification in our UAT to allow developers a quick setup or their development environment. While using Hosted Payments with our production servers you could get some errors while communicating with them caused by a misconfigured cURL. You will want to verify that you have an updated CA bundle file. You can download the latest version from the cURL official site at https://curl.haxx.se/docs/caextract.html.

Once you got a valid CA bundle, you will want to configure your cURL library to use it. You will only need to edit your "php.ini" file, add the code below and restart your server.

curl.cainfo=/path/to/bundle/cacert.pem

Note that according to cURL documentation: "This is required to be an absolute path.".

php-hostedpayments-lib's People

Contributors

molit avatar shawnsnap avatar snap-admin avatar

Watchers

 avatar

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.