planetpay/planet-sylius-payment-plugin
最新稳定版本:1.2.2
Composer 安装命令:
composer require planetpay/planet-sylius-payment-plugin
包简介
PlanetPay payment plugin for Sylius.
关键字:
README 文档
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.
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2025-11-04