2017 © Pedro Peláez
 

library omnipay-sofort

SOFORT Überweisung gateway for Omnipay payment processing library

image

aimeoscom/omnipay-sofort

SOFORT Überweisung gateway for Omnipay payment processing library

  • Monday, August 7, 2017
  • by aimeoscom
  • Repository
  • 1 Watchers
  • 6 Stars
  • 2,308 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

SOFORT Überweisung Omnipay gateway

Build Status Coverage Status Scrutinizer Code Quality, (*1)

SOFORT Überweisung gateway for awesome Omnipay library., (*2)

API Notes

This gateway only provides 2 methods to place a successful transaction. The first one is authorize which initializes an authorization and returns a redirect url., (*3)

The second one is completeAuthorize. This method doesn't actually complete anything. Since SOFORT Überweisung doesn't have a capture functionality, the only way to know about a transaction is checking that transaction details. According to official docs, if there is no any successful or failed transactions, the API will return empty transactions XML object., (*4)

Installation

To install, simply add it to your composer.json file:, (*5)

{
    "require": {
        "aimeoscom/omnipay-sofort": "~2.0"
    }
}

and run composer update, (*6)

Usage

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

1. Authorize, (*8)

$gateway = Omnipay::create('Sofort');
$gateway->initialize(array(
    'username' => 'your_account_id',
    'password' => 'password',
    'projectId' => 'sofort_project_id',
    'testMode' => true
));

$response = $gateway->authorize(array(
    'amount' => 199.00,
    'description' => 'Google Nexus 4',
))->send();

$transactionReference = $response->getTransactionReference();

if ($response->isRedirect()) {
    // redirect to offsite payment gateway
    $response->redirect();
} else {
    // payment failed: display message to customer
    echo $response->getMessage();
}

2. Complete Authorize, (*9)

$gateway = Omnipay::create('Sofort');
$gateway->initialize(array(
    'username' => 'your_account_id',
    'password' => 'password',
    'projectId' => 'sofort_project_id',
    'testMode' => true
));

$response = $gateway->completeAuthorize(array(
    'transactionReference' => $transactionReference,
))->send();

if ($response->isSuccessful()) {
    // payment was successful
    print_r($response);
} else {
    // payment failed: display message to customer
    echo $response->getMessage();
}

The Versions

07/08 2017

dev-master

9999999-dev

SOFORT Überweisung gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ismail Asci
by Aimeos GmbH

payment gateway omnipay provider sofort uberweisung

27/06 2016

2.3.0

2.3.0.0

SOFORT Überweisung gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ismail Asci
by Aimeos GmbH

payment gateway omnipay provider sofort uberweisung

05/11 2014

v2.2.1

2.2.1.0

SOFORT Überweisung gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ismail Asci

payment gateway omnipay provider sofort uberweisung

07/04 2014

v2.2.0

2.2.0.0

SOFORT Überweisung gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ismail Asci

payment gateway omnipay provider sofort uberweisung

10/03 2014

v2.1.0

2.1.0.0

SOFORT Überweisung gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ismail Asci

payment gateway omnipay provider sofort uberweisung

29/12 2013

v1.1.0

1.1.0.0

SOFORT Überweisung gateway for omnipay

  Sources   Download

Unlicense

The Requires

 

The Development Requires

by Ismail Asci

payment gateway omnipay provider sofort