GithubHelp home page GithubHelp logo

mpgs62's Introduction

Gateway Sample PHP Code

This is a sample application to help developers start building PHP applications using the Payment Gateway.

Steps for running on Heroku

  1. Obtain an account with your Gateway provider
  2. Register with Heroku
  3. Click this button Deploy
  4. Configure the app with your TEST GATEWAY_BASE_URL, GATEWAY_MERCHANT_ID and GATEWAY_API_PASSWORD
  5. Visit the landing page of the newly deployed app for more details

Steps for running locally

  1. Download code

  2. Set the following ENV variables using:

    • export GATEWAY_BASE_URL=INSERT_YOUR_GATEWAY_URL_HERE GATEWAY_MERCHANT_ID=INSERT_YOUR_GATEWAY_MERCHANT_ID_HERE GATEWAY_API_PASSWORD=INSERT_YOUR_GATEWAY_API_PASSWORD_HERE GATEWAY_DEFAULT_CURRENCY=INSERT_YOUR_CURRENCY_HERE GATEWAY_API_VERSION=INSERT_YOUR_GATEWAY_VERSION_HERE
    • GATEWAY_DEFAULT_CURRENCY and GATEWAY_API_VERSION are optional. If they aren't set, default values from settings.php will be used
  3. To run the application in development, run these commands. Make sure you have composer in your PATH

     composer install
     composer start
    

    Use this command to run the test suite

     composer test
    
  4. Navigate to http://localhost:8080 to test locally

Authentication

  1. Certificate Authentication:
    1. Please refer CERT_AUTH.md for details
  2. **API Key: **
    • You can grab the API Key from merchant portal and set the env variable GATEWAY_API_PASSWORD to that value.

##Versions

  1. Look at composer.json for all plugin versions.

    • php >=5.5.0

    • jquery 2.2.4

    • jquery-ui 1.11.4

    • slim ^3.1

Disclaimer

  • This software is intended for TEST/REFERENCE purposes ONLY and is not intended to be used in a production environment.

mpgs62's People

Contributors

wish1234 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.