culturekings/afterpay

Integrate easily with the afterpay.com.au API

v2.2.0 2017-06-22 21:56 UTC

README

PHP library to interface with the Afterpay API

Coverage Status CircleCI Scrutinizer SensioLabsInsight

Installation

The recommended way to install is via Composer.

composer require culturekings/afterpay

Don't forget to include Composer's auto-loader if you haven't already:

require 'vendor/autoload.php';

Merchant API

API Documentation

InStore API

API Documentation

Known Afterpay Issues

  1. Passing in a Money value with more than 2 decimal places will result in an error from Afterpay saying 'The request contains improperly formated JSON'. Issues #33 outlines this problem. This library will not provide rounding or manipulation of values as it's is the responsability of the project to provide accurate values. Thanks @rudolfl for the report.

Special Thanks

JMS Serializer

Guzzle