Skip to content

Repository files navigation

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

About

PHP Afterpay Integration exposing the Merchant and InStore APIs - Unsupported since April 2021

Topics

Resources

Stars

10 stars

Watchers

13 watching

Forks

Releases

Packages

Used by

Contributors

Languages