2017 © Pedro Peláez
 

project ixopay-php-client

Ixopay Client for PHP

image

ixolit/ixopay-php-client

Ixopay Client for PHP

  • Thursday, July 12, 2018
  • by friegler
  • Repository
  • 12 Watchers
  • 2 Stars
  • 2,965 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 52 Versions
  • 23 % Grown

The README.md

IXOPAY PHP Client

Packagist PHP Version License, (*1)

Installation via composer:

composer require ixopay/ixopay-php-client

Documentation

Learn more about IXOPAY by reading its Documentation, (*2)

Usage:

```php <?php, (*3)

use Ixopay\Client\Client; use Ixopay\Client\Data\Customer; use Ixopay\Client\Transaction\Debit; use Ixopay\Client\Transaction\Result;, (*4)

// Include the autoloader (if not already done via Composer autoloader) require_once('path/to/initClientAutoload.php');, (*5)

// Instantiate the "Ixopay\Client\Client" with your credentials $client = new Client("username", "password", "apiKey", "sharedSecret");, (*6)

$customer = new Customer(); $customer->setBillingCountry("AT") ->setEmail("customer@email.test");, (*7)

$debit = new Debit();, (*8)

// define your transaction ID: e.g. 'myId-'.date('Y-m-d').'-'.uniqid() $merchantTransactionId = 'your_transaction_id'; // must be unique, (*9)

$debit->setTransactionId($merchantTransactionId) ->setSuccessUrl($redirectUrl) ->setCancelUrl($redirectUrl) ->setCallbackUrl($callbackUrl) ->setAmount(10.00) ->setCurrency('EUR') ->setCustomer($customer);, (*10)

// send the transaction $result = $client->debit($debit);, (*11)

// now handle the result if ($result->isSuccess()) { //act depending on $result->getReturnType(), (*12)

$gatewayReferenceId = $result->getReferenceId(); //store it in your database

if ($result->getReturnType() == Result::RETURN_TYPE_ERROR) {
    //error handling
    $errors = $result->getErrors();
    //cancelCart();

} elseif ($result->getReturnType() == Result::RETURN_TYPE_REDIRECT) {
    //redirect the user
    header('Location: '.$result->getRedirectUrl());
    die;

} elseif ($result->getReturnType() == Result::RETURN_TYPE_PENDING) {
    //payment is pending, wait for callback to complete

    //setCartToPending();

} elseif ($result->getReturnType() == Result::RETURN_TYPE_FINISHED) {
    //payment is finished, update your cart/payment transaction

    //finishCart();
}

}, (*13)

License

The MIT License (MIT). Please see LICENSE for more information., (*14)

The Versions

12/07 2018

dev-prerelease/2018_07

dev-prerelease/2018_07

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

12/07 2018

dev-feature/postbackdata

dev-feature/postbackdata

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

29/06 2018

dev-feature/rb/status-retrieval-call

dev-feature/rb/status-retrieval-call

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

26/06 2018

dev-php7

dev-php7

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

14/06 2018

dev-feature/rb/risk-checks-without-processing

dev-feature/rb/risk-checks-without-processing

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

12/06 2018

dev-feature/scheduler

dev-feature/scheduler

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

12/06 2018

v2.2

2.2.0.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

26/03 2018

v2.1.13

2.1.13.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

26/03 2018

v2.1.12

2.1.12.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

22/01 2018

dev-feature/merchant-meta-data

dev-feature/merchant-meta-data

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

24/11 2017

dev-feature/transaction-indicator

dev-feature/transaction-indicator

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

24/11 2017

v2.1.11

2.1.11.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

15/11 2017

v2.1.10

2.1.10.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

07/11 2017

v2.1.9

2.1.9.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

31/10 2017

v2.1.8

2.1.8.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

30/10 2017

v2.1.7

2.1.7.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

22/06 2017

v2.1.5

2.1.5.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

22/06 2017

v2.1.6

2.1.6.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

20/06 2017

v2.1.4

2.1.4.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

02/05 2017

v2.1.3

2.1.3.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

13/03 2017

v2.1.2

2.1.2.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

03/03 2017

v2.1.0

2.1.0.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

03/03 2017

v2.1.1

2.1.1.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

10/02 2017

v2.0.2

2.0.2.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

10/02 2017

v1.1.3

1.1.3.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

08/02 2017

v1.1.2

1.1.2.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

08/02 2017

v1.0.20

1.0.20.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

08/02 2017

v1.0.19

1.0.19.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

08/02 2017

v2.0.1

2.0.1.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

08/02 2017

v1.1.1

1.1.1.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

08/02 2017

v1.0.18

1.0.18.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

03/02 2017

v2.0.0

2.0.0.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

15/12 2016

v1.1.0

1.1.0.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

30/08 2016

dev-master

9999999-dev

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

30/08 2016

v1.0.17

1.0.17.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

18/08 2016

v1.0.16

1.0.16.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

11/04 2016

v1.0.15

1.0.15.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

04/02 2016

v1.0.14

1.0.14.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

14/01 2016

v1.0.13

1.0.13.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

21/12 2015

v1.0.12

1.0.12.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

18/12 2015

v1.0.11

1.0.11.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

02/12 2015

v1.0.10

1.0.10.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

20/10 2015

v1.0.9

1.0.9.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

07/10 2015

v1.0.8

1.0.8.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

07/10 2015

v1.0.7

1.0.7.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

25/09 2015

v1.0.6

1.0.6.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

25/09 2015

v1.0.5

1.0.5.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

22/09 2015

v1.0.3

1.0.3.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

22/09 2015

v1.0.4

1.0.4.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

ixopay

22/09 2015

v1.0.2

1.0.2.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-curl *

 

The Development Requires

ixopay

15/09 2015

v1.0.1

1.0.1.0

Ixopay Client for PHP

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • ext-curl *

 

The Development Requires

ixopay

09/09 2015

v1.0.0

1.0.0.0

Ixopay Client for PHP

  Sources   Download

proprietary

The Development Requires

ixopay