PHPackages                             payplug/payplug-sylius - 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. payplug/payplug-sylius

Abandoned → [payplug/sylius-payplug-plugin](/?search=payplug%2Fsylius-payplug-plugin)Sylius-plugin[Payment Processing](/categories/payments)

payplug/payplug-sylius
======================

PayPlug payment plugin for Sylius applications.

2.0.0(1w ago)843519[6 issues](https://github.com/payplug/SyliusPayPlugPlugin/issues)[2 PRs](https://github.com/payplug/SyliusPayPlugPlugin/pulls)MITPHPPHP ^8.2CI passing

Since May 15Pushed yesterday8 watchersCompare

[ Source](https://github.com/payplug/SyliusPayPlugPlugin)[ Packagist](https://packagist.org/packages/payplug/payplug-sylius)[ RSS](/packages/payplug-payplug-sylius/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (82)Versions (77)Used By (0)

[![License](https://camo.githubusercontent.com/19bdd7e183dea25b69ce570f16cd22a1f786571845b62ad8a507d6848f2c8a6d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706179706c75672f73796c6975732d706179706c75672d706c7567696e2e737667)](https://github.com/payplug/SyliusPayPlugPlugin/blob/master/LICENSE)[![CI - Analysis](https://github.com/payplug/SyliusPayPlugPlugin/actions/workflows/analysis.yaml/badge.svg?branch=master)](https://github.com/payplug/SyliusPayPlugPlugin/actions/workflows/analysis.yaml)[![CI - Sylius](https://github.com/payplug/SyliusPayPlugPlugin/actions/workflows/sylius.yaml/badge.svg?branch=master)](https://github.com/payplug/SyliusPayPlugPlugin/actions/workflows/sylius.yaml)[![Version](https://camo.githubusercontent.com/1344b091f76a784397c523fcf4935e9762c95948e987440edb5791cce2fda3ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706179706c75672f73796c6975732d706179706c75672d706c7567696e2e737667)](https://packagist.org/packages/payplug/sylius-payplug-plugin)[![Total Downloads](https://camo.githubusercontent.com/6cfa0e9c23964e20e48f9f465facd8cf68d94dcd4dc8d5c25e2350f33bb5f0c3/68747470733a2f2f706f7365722e707567782e6f72672f706179706c75672f73796c6975732d706179706c75672d706c7567696e2f646f776e6c6f616473)](https://packagist.org/packages/payplug/sylius-payplug-plugin)

 [    ![Sylius Logo.](https://camo.githubusercontent.com/ea9dddc934264aa7ec01cf3202c500f3d8b04448bce2571bdc74230efddda88f/68747470733a2f2f6d656469612e73796c6975732e636f6d2f73796c6975732d6c6f676f2d3830302e706e67)  ](https://sylius.com)

Payplug payment plugin for Sylius
=================================

[](#payplug-payment-plugin-for-sylius)

This plugin allows you to integrate Payplug payment with Sylius platform app including payment features and refunding orders.

Requirements
------------

[](#requirements)

In the channel settings, the base currency must be set to **EUR** because the payment gateway only works in this currency.

In local environment, the plugin will not work properly because you will not be notified of the status of payments from the payment gateway.

> #### ⚠️ Refunds requirements
>
> [](#️-refunds-requirements)
>
> You need to make some adjustments in order to make our plugin worked normally due to a dependency to [refund-plugin](https://github.com/Sylius/RefundPlugin). Please follow those requirements:
>
> To generate "Credit memos" when refunding, your server need to have the [**WKHTMLTOPDF**](https://wkhtmltopdf.org/) binary as explain in [refund-pluging documentation # Pre-requirements](https://github.com/Sylius/RefundPlugin/tree/master#pre---requirements)

Compatibility
-------------

[](#compatibility)

VersionPHP^8.2Sylius^2.0### With Symfony Flex

[](#with-symfony-flex)

#### 1. Allow contrib recipes and require the plugin

[](#1-allow-contrib-recipes-and-require-the-plugin)

```
composer config extra.symfony.allow-contrib true
composer require payplug/sylius-payplug-plugin
```

#### 2. Install the Flex recipe

[](#2-install-the-flex-recipe)

```
composer recipes:install payplug/sylius-payplug-plugin --force
```

This automatically registers the bundle, copies configuration files, and sets up assets (on Sylius 2.1+).

#### 3. Apply migrations to your database

[](#3-apply-migrations-to-your-database)

```
bin/console doctrine:migrations:migrate
```

#### 4. Add Payplug to refundable payment methods for Sylius Refund Plugin in `config/services.yaml`

[](#4-add-payplug-to-refundable-payment-methods-for-sylius-refund-plugin-in-configservicesyaml)

```
parameters:
    locale: fr_FR
    sylius_refund.supported_gateways:
        - payplug
        - payplug_oney
        - payplug_bancontact
        - payplug_apple_pay
        - payplug_american_express
```

#### 5. Add Traits for Customer and PaymentMethod entities

[](#5-add-traits-for-customer-and-paymentmethod-entities)

- App\\Entity\\Customer\\Customer

```
