mediabeastnz/commerce-laybuy

Laybuy integration for Craft Commerce 2

1.0.4.1 2019-02-20 04:37 UTC

This package is auto-updated.

Last update: 2024-10-21 21:06:15 UTC


README

Laybuy for Craft Commerce icon

Laybuy for Craft Commerce 2

This plugin provides an Laybuy integration for Craft Commerce.

Requirements

This plugin requires Craft Commerce 2.0.0 or later.

Setup

In order for this gateway to work, the Craft config setting tokenParam must be changed to something other than the word 'token'. Craft looks for this querystring internally and it just so happens Laybuy returns the same word when returning to the merchant site. Simply add this (or whatever word you prefer) to your general.php.

'*' => [
    // Token querystring
    'tokenParam' => 'crafttoken'
]

To add Laybuy as a gateway, go to Commerce → Settings → Gateways, create a new gateway, and set the gateway type to "Laybuy". You can either choose to set the gateway configuration in the CMS or use a config file instead. Learn more about that here

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for "Laybuy". Then click on the "Install" button in its modal window.

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require mediabeastnz/commerce-laybuy

# tell Craft to install the plugin
./craft install/plugin commerce-laybuy