2017 © Pedro Peláez
 

library omnipay-sofort

SOFORT Überweisung gateway for Omnipay payment processing library

image

gentor/omnipay-sofort

SOFORT Überweisung gateway for Omnipay payment processing library

  • Friday, June 1, 2018
  • by gentor
  • Repository
  • 1 Watchers
  • 0 Stars
  • 627 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 6 Versions
  • 26 % 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 purchase which initializes a purchase and returns a redirect url., (*3)

The second one is acceptNotification. This method receives status notification from SOFORT Überweisung and validates it by getting transaction_details from the API., (*4)

Installation

Omnipay is installed via Composer. To install, simply run:, (*5)

composer require gentor/omnipay-sofort

Usage

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

1. Purchase, (*7)

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

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

if ($response->isSuccessful() && $response->isRedirect()) {
    // redirect to offsite payment gateway
    $transactionReference = $response->getTransactionReference();
    $transactionStatus = $response->getTransactionStatus();
    $response->redirect();
} else {
    // payment failed: display message to customer
    echo $response->getMessage();
}

2. Accept Notification, (*8)

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

$response = $gateway->acceptNotification()->send();

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

The Versions

01/06 2018

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