Giter Club home page Giter Club logo

2checkout-ins-demo's Introduction

For a discount on 2Checkout’s monthly fees, enter promo code: GIT2CO during signup.

2Checkout INS Simulator for Demo Sales


This script was made to assist you with simulating INS messages on demo sales.

Why do I need it?

Because 2Checkout does not send INS message on demo sales and the INS simulator does not use your sale data that you application will be looking for.

How does it work?

The return.php script works by taking the parameters sent to the approved URL and converting the values to the appropriate INS parameters. The INS array is then saved in a JSON file and retrieved by the testing tool. The original return parameters are then forwarded to your approved URL by GET or POST based on the return method that the you used.

The test.php script retrieves the JSON, takes secret word so that the the MD5 hash can be computed correctly and adds the fields to an HTML form so that you can edit the values if necessary for specific test cases. You can then POST the parameters to your INS URL through the form or using cURL if you prefer by selecting cURL as the return type.

Usage

To use, just download or clone, upload to your server and on your 2Checkout Site Management page set the approved URL to point to the included response.php file.

Please note that the the 2Checkout approved URL passback returns different data for different parameters sets so while I tried to get everything as close as possible, you may need to amend some parameter values that are not returned.

2Checkout INS Documentation https://www.2checkout.com/static/va/documentation/INS/index.html

2checkout-ins-demo's People

Watchers

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