2017 © Pedro Peláez
 

library php_sdk

image

riskified/php_sdk

  • Monday, July 16, 2018
  • by stephenjwinn
  • Repository
  • 28 Watchers
  • 2 Stars
  • 14,203 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 15 Open issues
  • 22 Versions
  • 9 % Grown

The README.md

Riskified PHP SDK

version: 1.9.5

See samples/ for examples on how to use this SDK., (*1)

Migrating to API Version 2

API Version 2 introduces new features (and breaks some old ones)., (*2)

Order Webhook

This version represents a shift from data-driven order handling to multiple API endpoints, each designed for a specific purpose. These include:, (*3)

  • /api/create - served by $transport->createOrder()
  • /api/update - served by $transport->updateOrder()
  • /api/submit - served by $transport->submitOrder()
  • /api/refund - served by $transport->refundOrder()
  • /api/cancel - served by $transport->cancelOrder()

Refer to the online documentation for more details. When migrating from version 1, you'll need to separate the different calls to Riskified's API to support this new process., (*4)

Decision Notifications

Constructor $headers argument format

The format of the $headers argument when constructing a new Riskified\DecisionNotification\Notification instance has changed. The constructor now expects an associative array of all the HTTP headers of the request, and not a flat array of strings, as in previous versions of this SDK., (*5)

This change should simplify integration since the argument now follows the format of the return value of the popular PHP/Apache function getallheaders()., (*6)

API v2 payload format

Notification requests in API version 2 now contain a JSON encoded payload which is more flexible and easily extended., (*7)

If you are already using the Notification class in version 1, there are no additional actions required to support the migration to JSON, as this SDK handles the new data format seamlessly., (*8)

The Versions

16/07 2018

dev-bankwire-payment

dev-bankwire-payment

  Sources   Download

26/06 2018

dev-ato

dev-ato

  Sources   Download

19/06 2018

dev-deco

dev-deco

  Sources   Download

08/06 2018

dev-remove-staging

dev-remove-staging

  Sources   Download

17/05 2018

dev-tls12

dev-tls12

  Sources   Download

26/04 2018

dev-master

9999999-dev

  Sources   Download

26/04 2018

v1.8.5

1.8.5.0

  Sources   Download

20/04 2018

dev-override-validations

dev-override-validations

  Sources   Download

28/03 2018

dev-decide-endpoint

dev-decide-endpoint

  Sources   Download

23/03 2018

dev-sync-path

dev-sync-path

  Sources   Download

27/02 2018

dev-wh-sync

dev-wh-sync

  Sources   Download

30/01 2018

v1.8.4

1.8.4.0

  Sources   Download

15/09 2017

dev-category-response-error

dev-category-response-error

  Sources   Download

24/05 2017

dev-eat24

dev-eat24

  Sources   Download

28/03 2017

v1.8.3

1.8.3.0

  Sources   Download

26/12 2016

v1.8.2

1.8.2.0

  Sources   Download

18/11 2016

v1.8.1

1.8.1.0

  Sources   Download

18/09 2016

v1.8.0

1.8.0.0

  Sources   Download

25/07 2016

v1.7.0

1.7.0.0

  Sources   Download

23/06 2016

v1.6.6

1.6.6.0

  Sources   Download

19/04 2016

v1.6.5

1.6.5.0

  Sources   Download

19/04 2016

v1.6.4

1.6.4.0

  Sources   Download