2017 © Pedro Peláez
 

library paydirekt-php

Library that provides functionality to create valid request for the paydirekt REST API

image

tp/paydirekt-php

Library that provides functionality to create valid request for the paydirekt REST API

  • Monday, May 14, 2018
  • by boonkerz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 6 Versions
  • 50 % Grown

The README.md

paydirekt PHP Client

Build Status, (*1)

PHP client implementation and samples for the paydirekt REST API., (*2)

The source code demonstrates how to create valid requests for the paydirekt REST API using PHP., (*3)

Requirements

  • PHP 5.5 or later
  • random_compat (for cryptographically secure pseudo-random bytes)

Dev-Dependencies

  • PHP cURL support (for integration tests)
  • PHPUnit

Usage

With Composer installed, clone this repository and install with:, (*4)

composer install

Run the unit and integration tests with:, (*5)

composer test

The integration tests run against the actual sandbox endpoint., (*6)

HMAC Signature

The HMAC signature (to be used in the X-Auth-Code header) can be created using the Hmac.php class., (*7)

$randomNonce = Nonce::createRandomNonce();
$signature = Hmac::signature($requestId, $timestamp, $apiKey, $apiSecret, $randomNonce)

API-Key and API-Secret for the your shop are provided via the paydirekt merchant portal. Be aware that there are different credentials for sandbox and production., (*8)

Please refer to ObtainTokenIntegrationTest.php for a full example how to build an http request with all header fields and payload., (*9)

Security Advice

Do never print sensitive information to log files. The following values should never be logged:, (*10)

  • API-Secret
  • OAuth2 Access Token

License

MIT License., (*11)

The Versions

14/05 2018

dev-master

9999999-dev https://github.com/boonkerz/paydirekt-php

Library that provides functionality to create valid request for the paydirekt REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

paydirekt

14/05 2018

4.0.1

4.0.1.0 https://github.com/boonkerz/paydirekt-php

Library that provides functionality to create valid request for the paydirekt REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

paydirekt

14/05 2018

4.0.0

4.0.0.0 https://github.com/paydirekt/paydirekt-php

Library that provides functionality to create valid request for the paydirekt REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

paydirekt

07/03 2016

v0.3.0

0.3.0.0 https://github.com/paydirekt/paydirekt-php

Library that provides functionality to create valid request for the paydirekt REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

paydirekt

03/03 2016

v0.2.0

0.2.0.0 https://github.com/paydirekt/paydirekt-php

Library that provides functionality to create valid request for the paydirekt REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

paydirekt

02/03 2016

v0.1.0

0.1.0.0 https://github.com/paydirekt/paydirekt-php

Library that provides functionality to create valid request for the paydirekt REST API

  Sources   Download

MIT

The Requires

  • lib-openssl *
  • php >=5.4.44

 

The Development Requires

paydirekt