planetpay / planet-sylius-payment-plugin
PlanetPay payment plugin for Sylius.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
Type:sylius-plugin
pkg:composer/planetpay/planet-sylius-payment-plugin
Requires
- php: ^8.2
- sylius/sylius: ~2.1
Requires (Dev)
- behat/behat: ^3.16
- dmore/behat-chrome-extension: ^1.4
- dmore/chrome-mink-driver: ^2.9
- friends-of-behat/mink: ^1.11
- friends-of-behat/mink-browserkit-driver: ^1.6
- friends-of-behat/mink-debug-extension: ^2.1
- friends-of-behat/mink-extension: ^2.7
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.1
- friends-of-behat/symfony-extension: ^2.6
- friends-of-behat/variadic-extension: ^1.6
- nyholm/psr7: ^1.8
- phpspec/phpspec: ^7.5
- phpstan/phpstan: ^1.12
- phpstan/phpstan-doctrine: ^1.3
- phpstan/phpstan-webmozart-assert: ^1.2
- phpunit/phpunit: ^10.5
- robertfausk/behat-panther-extension: ^1.1
- sylius-labs/coding-standard: ^4.4
- sylius-labs/suite-tags-extension: ~0.2
- sylius/sylius-rector: ^2.0
- symfony/browser-kit: ^6.4 || ^7.1
- symfony/debug-bundle: ^6.4 || ^7.1
- symfony/dotenv: ^6.4 || ^7.1
- symfony/flex: ^2.4
- symfony/http-client: ^6.4 || ^7.1
- symfony/intl: ^6.4 || ^7.1
- symfony/web-profiler-bundle: ^6.4 || ^7.1
- symfony/webpack-encore-bundle: ^2.2
- dev-main
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-feature/281891_correcting_repository_v1
- dev-testing
- dev-feature/277657_refactoring_code
- dev-feature/277427_payment_method_fix
- dev-feature/276815_prod_sandbox
- dev-feature/276613_urls_admin
- dev-feature/276613_urls_in_configuration
- dev-feature/276567_refOrderID
- dev-feature/275812_successpage
- dev-feature/274201_contact_support
- dev-feature/273322_admin_order_update
This package is not auto-updated.
Last update: 2025-11-06 20:13:56 UTC
README
Installation
- Install the plugin ()
composer require planetpay/planet-sylius-payment-plugin Enable this plugin :
<?php # config/bundles.php return [ // ... PlanetPay\SyliusPaymentPlugin\PlanetPaySyliusPaymentPlugin::class => ['all' => true], // ... ];Import packages configuration
# config/packages/planetpay_sylius.yaml imports: - { resource: "@PlanetPaySyliusPaymentPlugin/config/config.yaml" }Import routes configuration
# config/routes/sylius_planetpay.yaml sylius_planetpay: resource: "@PlanetPaySyliusPaymentPlugin/config/routes.yaml"- Doctrine schema update
php bin/console doctrine:migrations:diff php bin/console doctrine:migrations:migrate - Copy assets
php vendor/planetpay/planet-sylius-payment-plugin/etc/build/copy_assets.php - Clear cache
php bin/console cache:clear
Configuration
- Go to the admin area.
- Log in.
- Click on the left menu item "CONFIGURATION > Payment methods".
- Create a new payment method type "Planet Pay":
- The next chapter will explain how to fill the payment method creation form.
Payment Method configuration
A form will be displayed, fill-in the required fields :
1. The "code" field (ex: "planet_pay").
💡 The code field defines the gateway name and is required for the plugin to function correctly. Each payment method must use one of the following codes exactly as listed below to ensure proper webhook handling and payment processing:
| Code | Method |
|---|---|
| planet_pay | All payments |
| planet_pay_apay | Apple Pay |
| planet_pay_blik | Blik |
| planet_pay_card | Payment Card |
| planet_pay_gpay | Google Pay |
| planet_pay_pbl | Transfer Online |
2. Choose which channels this payment method will be affected to.
3. The gateway configuration:
Fill in the following mandatory fields in the gateway configuration form:
your PlanetPay account MID
the secret API key
description visible to the customer
key used to sign notifications
4. Give to this payment method a display name (and optional a description) for each language you need.
Finally, click on the "Create" button to save your new payment method.
API keys
Get your mid and your secret on your Planet Pay dashboard :
Configuration address URL
| Type | URL |
|---|---|
| Notification URL | /planetpay/payments/notification |
| Return URL | /planetpay/payments/successpage |
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
Please see the License File for more information about licensing.