Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.67 KB

README.md

File metadata and controls

43 lines (26 loc) · 1.67 KB

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