culturekings / afterpay

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

Home Page:https://culturekings.github.io/afterpay/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Afterpay API

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

https://culturekings.github.io/afterpay/

License:MIT License


Languages

Language:PHP 100.0%