Giter Club home page Giter Club logo

omnipay-first-atlantic-commerce's Introduction

Omnipay: First Atlantic Commerce

First Atlantic Commerce driver for the Omnipay PHP payment processing library

Source Code Latest Version Software License

Build Status Scrutinizer Code Quality Code Coverage Total Downloads

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements First Atlantic Commerce support for Omnipay.

Installation

Omnipay is installed via Composer. To install, simply add it to your composer.json file and update or install directly with composer require:

$ php composer.phar require strikewood/omnipay-first-atlantic-commerce:dev-master

This package strives to use Semantic Versioning as explained here.

Basic Usage

The following gateways are provided by this package:

  • FirstAtlanticCommerce

This package implements the following methods:

  • authorize($options) – authorize an amount on the customer’s card.
  • capture($options) – capture an amount you have previously authorized.
  • purchase($options) – authorize and immediately capture an amount on the customer’s card.
  • refund($options) – refund an already processed (settled) transaction.
  • void($options) – reverse a previously authorized (unsettled) transaction.
  • status($options) – check the status of a previous transaction.
  • createCard($options) – create a stored card and return the reference token for future transactions.
  • updateCard($options) – update a stored card's expiry or customer reference.

For general usage instructions, please see the Omnipay documentation. For information on the parameters needed for each request, see the class documentation for that request in the Message folder.

Basic Example

use Omnipay\Omnipay;

// Setup payment gateway
$gateway = Omnipay::create('FirstAtlanticCommerce');
$gateway->setMerchantId('123456789');
$gateway->setMerchantPassword('abc123');

// Example form data
$formData = [
    'number'      => '4242424242424242',
    'expiryMonth' => '6',
    'expiryYear'  => '2016',
    'cvv'         => '123'
];

// Send purchase request
$response = $gateway->purchase([
    'amount'        => '10.00',
    'currency'      => 'USD',
    'transactionId' => '1234',
    'card'          => $formData
])->send();

// Process response
if ( $response->isSuccessful() )
{
    // Payment was successful
    print_r($response);
}
else
{
    // Payment failed
    echo $response->getMessage();
}

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.

omnipay-first-atlantic-commerce's People

Contributors

dcaswel avatar einkoro avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

omnipay-first-atlantic-commerce's Issues

Fatal error: Class 'Omnipay\Omnipay' not found

I am getting the following error:
Fatal error: Class 'Omnipay\Omnipay' not found in /home/content/p3nexnas06_data03/92/2137392/html/wp-content/plugins/woocommerce-first-atlantic-commerce-master/includes/class-wc-gateway-fac.php on line 206

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.