Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
86159ff
PPSYL-170 - Avoid critical when no payment id yet
Jibbarth Feb 16, 2026
f2d3212
PPSYL-170 - Avoid send details from mollie to payplug
Jibbarth Feb 16, 2026
22e0aa1
PPSYL-171 - Update readme instruction / fix links
Jibbarth Feb 16, 2026
36ce00d
Hotfix - Bump phpunit
Jibbarth Feb 16, 2026
a288638
Fix Phpstan
Jibbarth Feb 16, 2026
c4e9399
Remove install ca certificate, not used anymore
Jibbarth Feb 16, 2026
e51c1f9
PPSYL-174 - Add note for assets on 2.0.x
Jibbarth Mar 3, 2026
5450a94
Merge pull request #180 from synolia/feature/PPSYL-170-compat-sylius-…
Jibbarth Mar 3, 2026
aa96e59
PPSYL-173 - Update namespace for gatewayConfigInterface
Jibbarth Mar 3, 2026
8124c75
PPSYL-173 - Improve refundUnits command creator decorator
Jibbarth Mar 4, 2026
b2ea188
PPSYL-173 - Mark RefundPaymentGeneratedHandler as MessageHandler
Jibbarth Mar 4, 2026
358a325
PPSYL-173 - Remove useless controllers for refund
Jibbarth Mar 4, 2026
d4abd53
PPSYL-173 - Handle refund from notification
Jibbarth Mar 4, 2026
4e1a0a6
Mark payum classes as deprecated
Jibbarth Mar 4, 2026
3e432ea
PPSYL-177 - handle canceled by oney status
Jibbarth Mar 4, 2026
4303629
Merge pull request #182 from synolia/fix/PPSYL-177-oney-cancel
Jibbarth Mar 9, 2026
39a22f3
PPSYL-173 - Fix phpstan issues
Jibbarth Mar 9, 2026
cf7a532
[Checkout] Refact switch methods
Jibbarth Mar 18, 2026
1b41411
[Checkout] Update logos
Jibbarth Mar 18, 2026
9dfa0c6
[Checkout] Unminify integrated payment.css
Jibbarth Mar 18, 2026
6f967d7
[Checkout] Improve enable/disable next step
Jibbarth Mar 18, 2026
ce3e9a1
PPSYL-176 - Improve applepay stimulus controller and template
Jibbarth Mar 30, 2026
f481f38
PPSYL-176 - Fix retrieving ressource in OrderController and service i…
Jibbarth Mar 30, 2026
d043ad9
PPSYL-176 - Improve disabling payment method when not eligible
Jibbarth Mar 30, 2026
037bd75
PPSYL-176 - Latest ApplePay sdk version make it compatible with more …
Jibbarth Mar 30, 2026
b4fbb37
PPSYL-176 - Remove useless header
Jibbarth Mar 30, 2026
3a4a35c
PPSYL-176 - Fix switching method enable next button or not
Jibbarth Mar 30, 2026
49de004
Merge pull request #181 from synolia/feature/PPSYL-173-refunds
Jibbarth Mar 30, 2026
57f8fdb
Fix toggle next button when no integrated payment
Jibbarth Apr 1, 2026
4531fef
PPSYL-176 - Fix retrieving applepay token, add more log, unify next r…
Jibbarth Apr 2, 2026
4ce3b39
PPSYL-176 - Fix returning data when fail to handle next route
Jibbarth Apr 2, 2026
f2472ad
PPSYL-176 - Clean Provider, apple-pay-controller
Jibbarth Apr 9, 2026
96e82d3
PPSYL-176 - Improve retrieve order in notify
Jibbarth Apr 9, 2026
d13004d
PPSYL-176 - Use api client for payment method when abort, not default…
Jibbarth Apr 9, 2026
18d5458
PPSYL-176 - Phpstan
Jibbarth Apr 9, 2026
545bcf7
Merge pull request #183 from synolia/fix/PPSYL-176-fix-apple-pay
Jibbarth Apr 13, 2026
174f25d
Prevent 500 when payment method has never been unifiedauth
Jibbarth Apr 14, 2026
6680398
Hotfix - Clean cache client config after new oauth
Jibbarth Apr 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/sylius.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,6 @@ jobs:
-
name: 'Install Sylius-Standard and Plugin'
run: 'make install -e SYLIUS_VERSION=${{ matrix.sylius }} SYMFONY_VERSION=${{ matrix.symfony }}'
-
name: 'Install certificates'
run: 'symfony server:ca:install'
-
name: 'Run Chrome headless'
run: 'google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server=''direct://'' --proxy-bypass-list=''*'' https://127.0.0.1 > /dev/null 2>&1 &'
-
name: 'Run webserver'
run: 'symfony server:start --port=8080 --daemon'
id: end-of-setup-sylius
-
name: 'Doctrine Schema Validate - Run'
Expand All @@ -98,14 +89,6 @@ jobs:
name: 'Run PHPUnit'
run: 'make phpunit'
if: 'always() && steps.end-of-setup-sylius.outcome == ''success'''
# -
# name: 'Configure Behat'
# run: 'make behat-configure'
# if: 'always() && steps.end-of-setup-sylius.outcome == ''success'''
# -
# name: 'Run behat'
# run: 'vendor/bin/behat --strict --no-interaction -f progress || vendor/bin/behat --strict -vvv --no-interaction --rerun'
# if: 'always() && steps.end-of-setup-sylius.outcome == ''success'''
-
uses: actions/upload-artifact@v4
if: failure()
Expand Down
123 changes: 72 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
[![License](https://img.shields.io/packagist/l/payplug/payplug-sylius.svg)](https://github.com/payplug/SyliusPayPlugPlugin/blob/master/LICENSE)
![CI](https://github.com/payplug/SyliusPayPlugPlugin/workflows/CI/badge.svg?branch=master)
[![Version](https://img.shields.io/packagist/v/payplug/payplug-sylius.svg)](https://packagist.org/packages/payplug/payplug-sylius)
[![Total Downloads](https://poser.pugx.org/payplug/payplug-sylius/downloads)](https://packagist.org/packages/payplug/payplug-sylius)
[![License](https://img.shields.io/packagist/l/payplug/sylius-payplug-plugin.svg)](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://img.shields.io/packagist/v/payplug/sylius-payplug-plugin.svg)](https://packagist.org/packages/payplug/sylius-payplug-plugin)
[![Total Downloads](https://poser.pugx.org/payplug/sylius-payplug-plugin/downloads)](https://packagist.org/packages/payplug/sylius-payplug-plugin)

<p align="center">
<a href="https://sylius.com" target="_blank">
<img src="https://demo.sylius.com/assets/shop/img/logo.png" />
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://media.sylius.com/sylius-logo-800-dark.png">
<source media="(prefers-color-scheme: light)" srcset="https://media.sylius.com/sylius-logo-800.png">
<img alt="Sylius Logo." src="https://media.sylius.com/sylius-logo-800.png">
</picture>
</a>
</p>

Expand All @@ -26,10 +31,10 @@ In local environment, the plugin will not work properly because you will not be

## Compatibility

| | Version |
| :--- |:----------------------|
| PHP | 7.4, 8.0, 8.1 |
| Sylius | 1.9, 1.10, 1.11, 1.12 |
| | Version |
| :--- |:--------|
| PHP | ^8.2 |
| Sylius | ^2.0 |

## Installation

Expand All @@ -46,14 +51,7 @@ In local environment, the plugin will not work properly because you will not be
bin/console doctrine:migrations:migrate
```

3. Copy templates that are overridden by Sylius into `templates/bundles/SyliusAdminBundle`

```shell
mkdir -p templates/bundles/SyliusAdminBundle/
cp -R vendor/payplug/sylius-payplug-plugin/templates/SyliusAdminBundle/* templates/bundles/SyliusAdminBundle/
```

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

```yaml
parameters:
Expand All @@ -66,14 +64,7 @@ In local environment, the plugin will not work properly because you will not be
- payplug_american_express
```

5. Add Payplug routes in `config/routes.yaml`

```yaml
sylius_payplug:
resource: "@PayPlugSyliusPayPlugPlugin/config/routing.yaml"
```

8. Add Traits for Customer and PaymentMethod entities
4. Add Traits for Customer and PaymentMethod entities

* App\Entity\Customer\Customer

Expand Down Expand Up @@ -158,14 +149,14 @@ In local environment, the plugin will not work properly because you will not be
}
```

9. Process translations
5. Process translations

```bash
php bin/console translation:extract en PayPlugSyliusPayPlugPlugin --dump-messages
php bin/console translation:extract fr PayPlugSyliusPayPlugPlugin --dump-messages
```

10. Clear cache:
6. Clear cache:

```shell
php bin/console cache:clear
Expand All @@ -174,6 +165,60 @@ In local environment, the plugin will not work properly because you will not be
🎉 You are now ready to add Payplug Payment method.
In your back-office, go to `Configuration > Payment methods`, then click on `Create` and choose "**Payplug**".

### Assets installation (only for Sylius 2.0.x)

On sylius 2.0.x, there is no automatic load of assets.
You need to add the following lines in `assets/shop/controllers.json` to allow Sylius to use our assets:

```json
{
"controllers": {
"@payplug/sylius-payplug-plugin": {
"oney-popin": {
"enabled": true,
"fetch": "lazy",
"autoimport": {
"@payplug/sylius-payplug-plugin/shop/dist/oney_common/index.css": true,
"@payplug/sylius-payplug-plugin/shop/dist/oney_popin/index.css": true
}
},
"integrated-payment": {
"enabled": true,
"fetch": "lazy",
"autoimport": {
"@payplug/sylius-payplug-plugin/shop/dist/payment/integrated.css": true
}
},
"oney-payment": {
"enabled": true,
"fetch": "lazy"
},
"payment-logo": {
"enabled": true,
"fetch": "lazy"
},
"checkout-select-payment": {
"enabled": true,
"fetch": "lazy",
"autoimport": {
"@payplug/sylius-payplug-plugin/shop/dist/payment/index.css": true
}
},
"apple-pay": {
"enabled": true,
"fetch": "lazy"
}
}
},
"entrypoints": []
}
```

> [!NOTE]
> On Sylius Standard >= 2.1, assets are automatically loaded when you install the plugin with flex.
> If you are upgrading from a 2.0.x version, read the [upgrade guide](https://github.com/Sylius/Sylius/blob/2.1/UPGRADE-2.1.md#assets)


## Logs

If you want to follow the logs in the production environment, you need to add the configuration in `config/packages/prod/monolog.yaml`, logs should be in `var/log/prod.log` which can be searched after the phrase `[Payum]` or `[Payplug]`:
Expand All @@ -199,30 +244,6 @@ Run the below command to see what Symfony services are shared with this plugin:
$ bin/console debug:container payplug_sylius_payplug_plugin
```

### Template overriding

This plugin override some sylius templates.
If you plan override them also, you should retrieve them in your application.

Copy Sylius templates overridden in plugin to your templates directory (e.g templates/bundles/)

```shell
mkdir -p templates/bundles/SyliusAdminBundle/
mkdir -p templates/bundles/SyliusShopBundle/
mkdir -p templates/bundles/SyliusUiBundle/
cp -R vendor/payplug/sylius-payplug-plugin/templates/SyliusAdminBundle/* templates/bundles/SyliusAdminBundle/
cp -R vendor/payplug/sylius-payplug-plugin/templates/SyliusShopBundle/* templates/bundles/SyliusShopBundle/
cp -R vendor/payplug/sylius-payplug-plugin/templates/SyliusUiBundle/* templates/bundles/SyliusUiBundle/
```

You also need to edit your twig config to add your path to avoid our configuration to be prepended :
```yaml
twig:
paths:
'%kernel.project_dir%/templates/bundles/SyliusAdminBundle': SyliusAdmin
'%kernel.project_dir%/templates/bundles/SyliusShopBundle': SyliusShop
'%kernel.project_dir%/templates/bundles/SyliusUiBundle': SyliusUi
```
## Development

See [How to contribute](CONTRIBUTING.md).
Expand Down
Loading
Loading