PHP library to interface with the Afterpay API
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';
- 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.