sherlockode / sylius-checkout-plugin
Sylius plugin for Checkout.com
Installs: 2 156
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Type:sylius-plugin
Requires
- php: ^7.3 || ^8.0
- checkout/checkout-sdk-php: ^2.2
- sylius/sylius: ~1.11.0 || ~1.12.0
This package is auto-updated.
Last update: 2024-11-15 14:02:13 UTC
README
Table of Content
Overview
This plugin allows you to use checkout.com to receive credit card payments on your e-commerce website.
Installation
Install the plugin with composer:
$ composer require sherlockode/sylius-checkout-plugin
If your project does not use autoload, you have to enable the bundle yourself:
// config/bundle.php return [ ... Sherlockode\SyliusCheckoutPlugin\SherlockodeSyliusCheckoutPlugin::class => ['all' => true], ];
Configuration
Update your sylius installation by importing bundle configuration:
# config/packages/_sylius.yaml imports: # ... - { resource: "@SherlockodeSyliusCheckoutPlugin/Resources/config/config.yaml" }
Then import routes:
# config/routes.yaml sherlockode_sylius_checkout_plugin: resource: "@SherlockodeSyliusCheckoutPlugin/Resources/config/routing.xml"
Update your webpack configuration to add an entry in shop config:
// Shop config Encore // ... .addEntry('sherlockode-checkout', './vendor/sherlockode/sylius-checkout-plugin/src/Resources/public/js/entry.js')
Usage
Payment method configuration
Now you only have to create a new payment method based on the Checkout.com type, then fill your credentials in the gateway configuration.
Demo Sylius Shop
We created a demo app with some useful use-cases of plugins! Visit sylius-demo.sherlockode.fr to take a look at it. The admin can be accessed under sylius-demo.sherlockode.fr/admin/login link. Plugins that we have used in the demo:
Additional resources for developers
To learn more about our contribution workflow and more, we encourage you to use the following resources:
License
This plugin's source code is completely free and released under the terms of the MIT license.
Contact
If you want to contact us, the best way is to fill the form on our website or send us an e-mail to contact@sherlockode.fr with your question(s). We guarantee that we answer as soon as we can!