culturekings / afterpay
Integrate easily with the afterpay.com.au API
Installs: 83 442
Dependents: 1
Suggesters: 0
Security: 0
Stars: 11
Watchers: 14
Forks: 19
Open Issues: 5
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^6.0
- jms/serializer: ^1.2
- nesbot/carbon: ^1.21
- psr/log: ^1.0
- symfony/yaml: ^3.1
Requires (Dev)
- culturekings/symfony2-coding-standard: ^2.10
- henrikbjorn/phpspec-code-coverage: ^3.0
- phpspec/phpspec: ^3.0
- satooshi/php-coveralls: dev-master
- sebastian/phpcpd: ^2.0
- squizlabs/php_codesniffer: ^2.6
- symfony/console: ^3.1
- symfony/var-dumper: ^3.1
README
PHP library to interface with the Afterpay API
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
InStore API
Known Afterpay Issues
- 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.