2017 © Pedro Peláez
 

library omnipay-datatrans

Datatrans Gateway for the Omnipay payment processing library

image

w-vision/omnipay-datatrans

Datatrans Gateway for the Omnipay payment processing library

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 2 Versions
  • 12 % Grown

The README.md

Omnipay: Datatrans

Datatrans Gateway for the Omnipay PHP payment processing library., (*1)

Build Status Code Coverage Scrutinizer Code Quality Latest Stable Version Latest Unstable Version License, (*2)

Omnipay is a framework-agnostic, multi-gateway payment processing library for PHP 5.3+., (*3)

This Gateway implements offsite payments via Datatrans. Purchase and Authorization are available, capturing an authorized payment has to be performed via Datatrans backend (not currently implemented for this Gateway)., (*4)

Installation

Omnipay can be installed using Composer. Installation instructions., (*5)

Run the following command to install omnipay and the datatrans gateway:, (*6)

composer require instride/omnipay-datatrans:^1.0.0

Basic Usage

Payment requests to the Datatrans Gateway must at least supply the following parameters:, (*7)

  • merchantId Your merchant ID
  • transactionId unique transaction ID
  • amount monetary amount
  • currency currency
  • sign Your sign identifier. Can be found in datatrans backend.
$gateway = Omnipay::create('Datatrans');
$gateway->setMerchantId('merchantId');
$gateway->setSign('sign');

// Send purchase request
$response = $gateway->purchase(
    [
        'transactionId' => '17',
        'amount' => '10.00',
        'currency' => 'CHF'
    ]
)->send();

// This is a redirect gateway, so redirect right away
$response->redirect();

The Versions

25/01 2018

dev-master

9999999-dev https://github.com/w-vision/omnipay-datatrans

Datatrans Gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay datatrans

10/01 2018

1.0.0

1.0.0.0 https://github.com/w-vision/omnipay-datatrans

Datatrans Gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay datatrans