mediabeastnz / commerce-laybuy
Laybuy integration for Craft Commerce 2
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:craft-plugin
Requires
- craftcms/commerce: ^2.0.0
- mediabeastnz/omnipay-laybuy: ^2.1.0
README
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