2017 © Pedro Peláez
 

library omnipay-sips2

Omnipay gateway for Worldline Sips PayPage POST API (Atos Sips 2.0)

image

yagogak/omnipay-sips2

Omnipay gateway for Worldline Sips PayPage POST API (Atos Sips 2.0)

  • Sunday, February 4, 2018
  • by yagogak
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Omnipay gateway for Worldline (Atos) Sips 2.0

This gateway implements Sips PayPage POST API only. This is a fork of ambroisemaupate/omnipay-sips2 for Mercanet Atos Sips 2, (*1)

Gateway parameters

Gateway is provided default Sogenactif (Société Générale) testing credentials., (*2)

Parameter Default value
merchantId 002001000000001
secretKey 002001000000001_KEY1
interfaceVersion "HP_2.14"
keyVersion 1
url https://payment-webinit.simu.sips-atos.com

Be careful, in test mode, transactionReference parameter is mandatory., (*3)

Usage

First step: offsite payment

$gateway = \Omnipay\Omnipay::create('SipsPayPage');
$gateway->setMerchantId('XXXXXXXXXXXXXXXXX');
$gateway->setSecretKey('XXXXXXXXXXXXXXXXX');
$gateway->setUrl('https://payment-webinit.simu.sips-atos.com');

$card = new \Omnipay\Sips\OffsiteCreditCard();
$card->setEmail('test@test.com');

// Send purchase request
$request = $gateway->purchase(
    [
        'clientIp' => $request->getClientIp(),
        'amount' => '10.00',
        'currency' => 'EUR',
        'returnUrl' => $this->generateUrl('completePurchaseRoute', [], UrlGenerator::ABSOLUTE_URL),
        'notifyUrl' => $this->generateUrl('completePurchaseRoute', [], UrlGenerator::ABSOLUTE_URL),
        'cancelUrl' => $this->generateUrl('cancelRoute', [], UrlGenerator::ABSOLUTE_URL),
        'card' => $card
    ]
);
$response = $request->send();

if ($response->isRedirect()) {
    $response->redirect(); // this will automatically forward the customer
}

Second step: manual and automatic response

$gateway = \Omnipay\Omnipay::create('SipsPayPage');
$gateway->setMerchantId('XXXXXXXXXXXXXXXXX');
$gateway->setSecretKey('XXXXXXXXXXXXXXXXX');
$gateway->setUrl('https://payment-webinit.simu.sips-atos.com');

// Send completePurchase request 
$request = $gateway->completePurchase();
$response = $request->send();

if ($response->isSuccessful()) {
    // DO your store logic.

    $bankTransactionRef = $response->getTransactionReference();
    $websiteOrderId = $response->getTransactionId();
} elseif ($response->isPending()) {
    // Do temporary things until we get a success/failed tranaction response.
} else {
    echo $response->getMessage();
}

The Versions

04/02 2018

dev-master

9999999-dev https://github.com/yagogak/omnipay-sips2

Omnipay gateway for Worldline Sips PayPage POST API (Atos Sips 2.0)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexis Desmarais

payment pay gateway merchant omnipay sips atos mercanet sogenactif sips2 worldline

26/01 2018

1.0.2

1.0.2.0 https://github.com/ambroisemaupate/omnipay-sips2

Omnipay gateway for Worldline Sips PayPage POST API (Atos Sips 2.0)

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sips atos sogenactif sips2 worldline

26/01 2018

dev-develop

dev-develop https://github.com/ambroisemaupate/omnipay-sips2

Omnipay gateway for Worldline Sips PayPage POST API (Atos Sips 2.0)

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sips atos sogenactif sips2 worldline

24/01 2018

1.0.1

1.0.1.0 https://github.com/ambroisemaupate/omnipay-sips2

Omnipay gateway for Worldline Sips PayPage POST API (Atos Sips 2.0)

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sips atos sogenactif sips2 worldline

23/06 2017

1.0.0

1.0.0.0 https://github.com/ambroisemaupate/omnipay-sips2

Omnipay gateway for Worldline Sips PayPage POST API (Atos Sips 2.0)

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sips atos sogenactif sips2 worldline

19/05 2017

0.1.0

0.1.0.0 https://github.com/ambroisemaupate/omnipay-sips2

Omnipay gateway for Worldline Sips PayPage POST API (Atos Sips 2.0)

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay sips atos sogenactif sips2 worldline