2017 © Pedro Peláez
 

library omnipay-sofort

SOFORT Überweisung gateway for Omnipay payment processing library

image

asci/omnipay-sofort

SOFORT Überweisung gateway for Omnipay payment processing library

  • Wednesday, November 5, 2014
  • by ismailasci
  • Repository
  • 1 Watchers
  • 16 Stars
  • 87,868 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 12 Forks
  • 4 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

SOFORT Überweisung Omnipay gateway

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

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

Important Note: Omnipay 1.x Users, (*3)

If you are using Omnipay 1.x versions please use 1.x tree. For detailed information you can check Omnipay's 2.0 release notes., (*4)

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

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

Installation

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

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

and run composer update, (*8)

Usage

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

1. Authorize, (*10)

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

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

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

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

The Versions

05/11 2014

dev-master

9999999-dev

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

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

1.x-dev

1.9999999.9999999.9999999-dev

SOFORT Überweisung gateway for omnipay

  Sources   Download

Unlicense

The Requires

 

The Development Requires

by Ismail Asci

payment gateway omnipay provider sofort

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