https://github.com/culturekings/afterpay
PHP Afterpay Integration exposing the Merchant and InStore APIs - Unsupported since April 2021
https://github.com/culturekings/afterpay
afterpay payments php
Last synced: 8 days ago
JSON representation
PHP Afterpay Integration exposing the Merchant and InStore APIs - Unsupported since April 2021
- Host: GitHub
- URL: https://github.com/culturekings/afterpay
- Owner: culturekings
- License: mit
- Created: 2016-08-22T00:15:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-02T04:10:37.000Z (almost 3 years ago)
- Last Synced: 2025-10-24T13:02:43.603Z (8 days ago)
- Topics: afterpay, payments, php
- Language: PHP
- Homepage: https://culturekings.github.io/afterpay/
- Size: 253 KB
- Stars: 10
- Watchers: 13
- Forks: 19
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[Afterpay API](https://culturekings.github.io/afterpay/)
=======================
PHP library to interface with the [Afterpay API](http://docs.afterpay.com.au/)
[](https://coveralls.io/github/culturekings/afterpay)
[](https://circleci.com/gh/culturekings/afterpay)
[](https://scrutinizer-ci.com/g/culturekings/afterpay/)
[](https://insight.sensiolabs.com/projects/b9b910ea-dc47-4459-a7b1-ff9da76edebd)
## Installation
The recommended way to install is via [Composer](http://getcomposer.org).
```bash
composer require culturekings/afterpay
```
Don't forget to include Composer's auto-loader if you haven't already:
```php
require 'vendor/autoload.php';
```
## Merchant API
[API Documentation](docs/merchant/api.md)
## InStore API
[API Documentation](docs/instore/api.md)
## 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](https://github.com/culturekings/afterpay/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](https://github.com/schmittjoh/serializer)
[Guzzle](https://github.com/guzzle/guzzle)