2017 © Pedro Peláez
 

library omnipay-affirm

Affirm driver for the Omnipay payment processing library

image

eduardlleshi/omnipay-affirm

Affirm driver for the Omnipay payment processing library

  • Friday, January 20, 2017
  • by eduardlleshi
  • Repository
  • 1 Watchers
  • 3 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

Omnipay: Affirm

Affirm gateway for the Omnipay PHP payment processing library, (*1)

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Affirm support for Omnipay., (*2)

Install

For Omnipay v3:

Instal the gateway using require. Require the league/omnipay base package and this gateway., (*3)

``` bash $ composer require league/omnipay eduardlleshi/omnipay-affirm, (*4)


##### For Omnipay v2: Instal the gateway using require. Require the `league/omnipay` base package and this gateway. ``` bash $ composer require league/omnipay:^2.0 eduardlleshi/omnipay-affirm:^2.0

Usage

The following gateways are provided by this package:, (*5)

  • affirm

For general usage instructions, please see the main Omnipay repository., (*6)

Affirm.js

The Affirm integration is fairly straight forward. Essentially you just pass a checkout_token field through to Affirm instead of the regular payment data., (*7)

Start by following the guide here: Affirm Direct API, (*8)

After that you will have a checkout_token field which will be submitted to your server. Simply pass this through to the gateway as transaction_id, instead of the usual options array:, (*9)

        $transaction_id = $_POST['checkout_token'];

        $response = $gateway->authorize(
            'transaction_id' => $transaction_id,
        ])->send();

        $transaction_reference = $response->getTransactionReference();

        // you may use $transaction_reference in the upcoming calls.

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., (*10)

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

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., (*12)

TODO

  • [ ] Add unit testing.

The Versions

20/01 2017

dev-master

9999999-dev https://eduardlleshi.com

Affirm driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduard Lleshi

payment pay gateway merchant omnipay affirm

20/01 2017

v2.0.1

2.0.1.0 https://eduardlleshi.com

Affirm driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduard Lleshi

payment pay gateway merchant omnipay affirm

08/01 2017

v2.0.0

2.0.0.0 https://eduardlleshi.com

Affirm driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Eduard Lleshi

payment pay gateway merchant omnipay affirm