2017 © Pedro Peláez
 

library omnipay-sisow

Sisow gateway for the Omnipay payment processing library

image

fruitcakestudio/omnipay-sisow

Sisow gateway for the Omnipay payment processing library

  • Tuesday, May 15, 2018
  • by Barryvdh
  • Repository
  • 4 Watchers
  • 5 Stars
  • 43,811 Installations
  • PHP
  • 1 Dependents
  • 3 Suggesters
  • 7 Forks
  • 1 Open issues
  • 10 Versions
  • 14 % Grown

The README.md

Omnipay: Sisow

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

Build Status Latest Stable Version Total Downloads, (*2)

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP. This package implements Sisow support for Omnipay., (*3)

Installation

Omnipay is installed via Composer. To install, simply require league/omnipay and fruitcakestudio/omnipay-sisow with Composer:, (*4)

composer require league/omnipay fruitcakestudio/omnipay-sisow

Basic Usage

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

  • Sisow

For general usage instructions, please see the main Omnipay repository. See also the Sisow REST Documentation, (*6)

Example

 $gateway = \Omnipay\Omnipay::create('Sisow');
    $gateway->initialize(array(
        'shopId' => '',
        'merchantId' => '0123456',
        'merchantKey' => 'b36d8259346eaddb3c03236b37ad3a1d7a67cec6',
        'testMode' => true,
    ));

    // Start the purchase
    if(!isset($_GET['trxid'])){
        $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
        $response = $gateway->purchase(array(
            'amount' => "6.84",
            'description' => "Testorder #1234",
            'issuer' => 99,                         // Get the id from the issuers list, 99 = test issuer
            //'paymentMethod' => 'overboeking',     // For 'overboeking', extra parameters are required:
            'card' => array(
                'email' => 'barry@fruitcakestudio.nl',
                'firstName' => 'Barry',
                'lastName' => 'vd. Heuvel',
                'company' => 'Fruitcake Studio',
            ),
            'transactionId' => 1234,
            'returnUrl' => $url,
            'notifyUrl' => $url,
        ))->send();

        if ($response->isRedirect()) {
            // redirect to offsite payment gateway
            $response->redirect();
        } elseif ($response->isPending()) {
            // Process started (for example, 'overboeking')
            return "Pending, Reference: ". $response->getTransactionReference();
        } else {
            // payment failed: display message to customer
            return "Error " .$response->getCode() . ': ' . $response->getMessage();
        }
    }else{
        // Check the status
        $response = $gateway->completePurchase()->send();
        if($response->isSuccessful()){
            $reference = $response->getTransactionReference();  // TODO; Check the reference/id with your database
            return "Transaction '" . $response->getTransactionId() . "' succeeded!";
        }else{
            return "Error " .$response->getCode() . ': ' . $response->getMessage();
        }
    }

Note, transactionReference is only available in the PurchaseResponse when an issuer is set. Use the fetchIssuers response to see the available issuers, or use the Javascript script to fill the issuers, (*7)

$response = Omnipay::fetchIssuers()->send();
if($response->isSuccessful()){
    print_r($response->getIssuers());
}

The billing/shipping data are set with the card parameter, with an array or CreditCard object. Other parameters that can be entered with 'overboeking' are:, (*8)

  • including (true/false to include a link to pay with ideal
  • days (number of days before a reminder is sent)

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

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

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

The Versions

15/05 2018

dev-master

9999999-dev

Sisow gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sisow

15/05 2018

v3.0.1

3.0.1.0

Sisow gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sisow

14/05 2018

v3.0.0

3.0.0.0

Sisow gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sisow

03/01 2018

2.0.x-dev

2.0.9999999.9999999-dev

Sisow gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sisow

03/01 2018

v2.0.4

2.0.4.0

Sisow gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sisow

12/07 2017

v2.0.3

2.0.3.0

Sisow gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sisow

12/07 2017

v2.0.2

2.0.2.0

Sisow gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sisow

28/03 2017

dev-3.0-simple

dev-3.0-simple

Sisow gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sisow

16/01 2015

v2.0.1

2.0.1.0

Sisow gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sisow

15/08 2014

v2.0.0

2.0.0.0

Sisow gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sisow