Giter Club home page Giter Club logo

converge-api-php's Introduction

Converge API PHP class

Build Status

A PHP class that acts as wrapper for the Converge API.

Converge, formerly VirtualMerchant, is Elavon's online payment platform.

This API should meet the specifications as released in the Converge Developer Guide, November 2015 Revision.

Official API Documentation

Converge API documentation Site

Converge API documentation PDF

Compatibility

This class should work with PHP >= 5.5. For PHPUnit 5.5, PHP >= 5.6 is required.

Installation

This Converge API is installed via Composer. To install, simply add it to your composer.json file:

{
    "require": {
        "markroland/converge-api-php": "^0.4"
    }
}

And run composer to update your dependencies:

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

Working with the Class

Examples are provided in the "examples" folder.

Running Tests

Run tests from current working directory.

Example: Run with code coverage

[converge-api-php]# phpunit --coverage-html ./report tests/testConvergeApi.php

Copyright and License

The MIT License (MIT)

Copyright (c) 2014 Mark Roland

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

converge-api-php's People

Contributors

abenitymark avatar alexfraundorf-com avatar andrewchumich avatar combatpoodle avatar jrzerr avatar markroland avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

converge-api-php's Issues

Chrome 75 causing duplicate transactions

Hi a few years back I integrated your code into ours and now my memory is fuzzy on if I changed anything or just left it stock, but something crazy has happened here recently.

When Chrome hit version 75 here, most of my API calls to converge are getting duplicated. I switched to Opera and Firefox, but just yesterday we noticed both Opera and Firefox updated to 75 and now we're getting duplicates there too.

When we call the API, we record our own reference in our MySQL DB. If there's a duplicate within 24 hours it is denied, but it hasn't prevented this Converge issue because it hits the API twice (a second apart).

Do you know where I should look in terms of debugging this?

Switching to Guzzle?

Hey, love your project. I'd like to port it over to Guzzle to improve testability in our application; is that something that you'd like to have PR'd back in? Thanks!

Is this method secure?

Sorry for my lack of knowledge I have been reading the user guides from Converge etc and just want to make sure I am using this API safely and correctly.

In my example the user adds their credit card # and details on a form at my website example.com

This information is then sent via post to my site example.com/payment

I then format the API (using this library) with the form data that has just been submitted and send the request to Converge (server to server).

Is this the correct process? I'm unsure about Credit Cards hitting my server (even though nothing is saved). Thank you for your time.

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.