PHPackages                             culturekings/laravel5-afterpay - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. culturekings/laravel5-afterpay

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

culturekings/laravel5-afterpay
==============================

Afterpay API integration exposed via Laravel5 services'

v2.1.1(9y ago)243MITPHPPHP &gt;=5.6

Since Aug 30Pushed 9y agoCompare

[ Source](https://github.com/culturekings/laravel5-afterpay)[ Packagist](https://packagist.org/packages/culturekings/laravel5-afterpay)[ RSS](/packages/culturekings-laravel5-afterpay/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (9)Versions (14)Used By (0)

Afterpay for Laravel 5
======================

[](#afterpay-for-laravel-5)

This packages exposes services from [CultureKings/Afterpay](https://github.com/culturekings/afterpay) in Laravel5.

[![Coverage Status](https://camo.githubusercontent.com/47942c4e082ded0b7782995ae369463347a9b4a343d2d4b1cfe077d46849b96e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f63756c747572656b696e67732f6c61726176656c352d61667465727061792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/culturekings/laravel5-afterpay?branch=master)[![CircleCI](https://camo.githubusercontent.com/89c45ff7823c9f1a84369a49e934f5408edcbb10a4f47485402df08c7f4c343c/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f63756c747572656b696e67732f6c61726176656c352d61667465727061792e7376673f7374796c653d737667)](https://img.shields.io/circleci/project/culturekings/laravel5-afterpay.svg?style=svg)[![Scrutinizer](https://camo.githubusercontent.com/637eaabf766d81aadda6cb98a7b05f2be3de0d19cedd0455edf57fcfe507cb39/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63756c747572656b696e67732f6c61726176656c352d61667465727061792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/culturekings/afterpay/laravel5-afterpay/quality-score.png?b=master)[![SensioLabsInsight](https://camo.githubusercontent.com/e68a62fcf30c18514075c2e9c46b72722e9bc35462d075acc121ebe13312dc86/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f33666439636665612d346564622d346365312d393466352d6264323335386266623761362e737667)](https://img.shields.io/sensiolabs/i/3fd9cfea-4edb-4ce1-94f5-bd2358bfb7a6.svg)

Version Compatibility
---------------------

[](#version-compatibility)

LaravelLaravel5 Afterpay5.3.x@devInstallation
------------

[](#installation)

The recommended way to install is via [Composer](http://getcomposer.org).

```
composer require culturekings/laravel5-afterpay
```

Find the providers key in your config/app.php and register the Afterpay Service Provider

```
'providers' => array(
    // ...
    CultureKings\LaravelAfterpay\Provider\AfterpayProvider::class,
)
```

Configuration
-------------

[](#configuration)

### Merchant API Configuration

[](#merchant-api-configuration)

By default, the package uses the following environment variables to auto-configure the plugin without modification:

```
AFTERPAY_API_URL (defaults to sandbox url)
AFTERPAY_MERCHANT_ID
AWS_AFTERPAY_SECRET_KEY
```

### InStore API Configuration

[](#instore-api-configuration)

```
AFTERPAY_INSTORE_API_URL (defaults to sandbox url)
```

To customize the configuration file, publish the package configuration using Artisan.

php artisan vendor:publish

Update your settings in the generated app/config/afterpay.php configuration file.

Usage
-----

[](#usage)

### Merchant API Facades

[](#merchant-api-facades)

This package exposes multiple facades for you to use.

Using the facades allows you not to worry about the Authorisation object that is required for calls.

Configuration

```
$api = \App::make('afterpay_merchant_configuration');
$api::get();
```

Payments

```
$api = \App::make('afterpay_merchant_payments');
$payments = $api::listPayments();
```

Orders

```
$api = \App::make('afterpay_merchant_orders');
$order = $api::get(ORDER_TOKEN);
```

### InStore API Facades

[](#instore-api-facades)

This package exposes multiple facades for you to use.

Authentication is more manual with this API and it is required for you to manually set the details on `\CultureKings\Afterpay\Model\InStore\Authorization`.

Customer

```
$api = \App::make('afterpay_instore_customer');
$api::invite();
```

Device

```
$api = \App::make('afterpay_instore_device');
$api::activate();
```

Order

```
$api = \App::make('afterpay_instore_order');
$order = $api::create();
```

PreApproval

```
$api = \App::make('afterpay_instore_preapproval');
$order = $api::enquiry();
```

Refund

```
$api = \App::make('afterpay_instore_refund');
$order = $api::create();
```

### Raw

[](#raw)

[read the documentation](https://github.com/culturekings/afterpay)

Raw does away with the Facade and hits the services directly, giving you more flexibility. The trade off is that your now responsible for creating your own Authentication object and injecting it into the services. You can still ask Laravel to create you an Authentication object with your credentials loaded from config.

```
$auth = \App::make(CultureKings\Afterpay\Model\Merchant\Authorization::class);
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Total

13

Last Release

3337d ago

Major Versions

v0.1.2 → v1.0.02017-01-23

v1.1.3 → v2.0.02017-02-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17635174?v=4)[Culture Kings](/maintainers/culturekings)[@culturekings](https://github.com/culturekings)

![](https://www.gravatar.com/avatar/89f4b2dc9b243ef9bcb85efa3a50321653ee2da59872ac23baa93d5a31791de8?d=identicon)[jared-fraser](/maintainers/jared-fraser)

---

Top Contributors

[![jared-fraser](https://avatars.githubusercontent.com/u/1113900?v=4)](https://github.com/jared-fraser "jared-fraser (4 commits)")

---

Tags

afterpaylaravelpaymentsphppaymentslaravel5shoppingafterpay

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/culturekings-laravel5-afterpay/health.svg)

```
[![Health](https://phpackages.com/badges/culturekings-laravel5-afterpay/health.svg)](https://phpackages.com/packages/culturekings-laravel5-afterpay)
```

###  Alternatives

[srmklive/paypal

PayPal REST API client for Laravel and standalone PHP.

1.1k4.0M29](/packages/srmklive-paypal)[ignited/laravel-omnipay

Integrates Omnipay with Laravel and provides an easy configuration.

5211.1M12](/packages/ignited-laravel-omnipay)[culturekings/afterpay

Integrate easily with the afterpay.com.au API

1087.9k1](/packages/culturekings-afterpay)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
