forumpay/drupal-9-payment-gateway-plugin
Composer 安装命令:
composer require forumpay/drupal-9-payment-gateway-plugin
包简介
ForumPay Crypto Payments for Drupal
README 文档
README
Installation guide
Requirements
Make sure you have at least Drupal Commerce 3 or higher. Both Drupal version 10 and Drupal version 11 are supported. Install using the composer
Installation using composer
composer require forumpay/drupal-payment-gateway-plugin
Upgrade from previous version
composer update forumpay/drupal-payment-gateway-plugin
When updating to new version, Drupal does not run any updates until we explicitly run them using:
drush updatedb
OR by visiting /update.php in browser.
Configuration
Once the plugin has been activated, go to the configuration page. Navigate to Manage > Commerce > Configuration > Payment gateways. Find button + Add payment gateway
Enter the Payment gateway name: ForumPay. From the Plugin section, select ForumPay Payment and fill in the rest of the parameters as follows.
Configuration details:
- Display name The label of the payment method that is displayed when user is prompted to choose one. You can leave default or set it to something like Pay with crypto.
- Environment Dropdown lets you switch between 'Production' and 'Sandbox' modes. Use 'Production' for processing real transactions in a live environment and 'Sandbox' for safe testing without financial implications.
- API User This is our identifier that we need to access the payment system. It can be found in your Profile. Go to profile >
- API Secret Important: never share it to anyone! Think of it as a password. API Secret consists of two parts. When generated in ForumPay dashboard, the first one will be displayed in your profile, while the second part will be sent to your e-mail. You need to enter both parts here (one after the other).
- POS ID
This is how payments coming to your wallets are going to be identified.
Special characters are not allowed. Allowed characters are:
[A-Za-z0-9._-](e.g.my-shop,my_shop). - Success Order Status Which status the order gets once user successfully completes the payment.
- Custom environment URL Optional: URL to the API server. This value will override the default setting. Only used for debugging.
- Accept Instant (Zero) Confirmations Allows immediate transaction approval without waiting for network confirmations, enhancing speed but with increased risk.
Don't forget to click Save button after the settings are filled in.
Webhook setup
Webhook allows us to check order status independently of the customer's actions.
For example, if the customer closes tab after the payment is started, the webshop cannot determine what the status of the order is.
If you do not set the webhook notifications, orders may stay in the Pending status forever.
Webhook setup:
Webhook configuration is in your Profile. You can find the webhook URL by scrolling down.
Insert URL in the webhook URL field:
YOUR_WEBSHOP/forumpay-api?act=webhook
YOUR_WEBSHOP is the URL of your webshop. An example of the complete webhook URL would be:
https://my.webshop.com/forumpay-api?act=webhook
Functionality
When the customer clicks on the Place order button they are being redirected to the payment page, where cryptocurrency can be selected.
When the currency is selected, details for the cryptocurrency payment will be displayed: Amount, Rate, Fee, Total, Expected time.
After the customer clicks the START PAYMENT button, they have 5 minutes to pay for the order by scanning the QR Code or manually using the blockchain address shown under the QR Code.
Troubleshooting
Can not select cryptocurrency, there is no dropdown: This issue probably happens because web shop's backend cannot access ForumPay. Please check if your API keys in the configuration are correct.
The plugin has been installed and activated successfully, but it does not appear in the Drupal payments settings Please ensure that you have installed the latest release of the ForumPay Payment Gateway.
forumpay/drupal-9-payment-gateway-plugin 适用场景与选型建议
forumpay/drupal-9-payment-gateway-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 12 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「payment」 「gateway」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 forumpay/drupal-9-payment-gateway-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 forumpay/drupal-9-payment-gateway-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 forumpay/drupal-9-payment-gateway-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Payyo Gateway for the Omnipay payment processing library
Client library to send SMS using Comilio SMS Gateway API (https://www.comilio.it)
GovPayNet driver for the Omnipay payment processing library
BlueSnap driver for the Omnipay payment processing library
TrinkPOS Sanal POS (Virtual POS) API client for PHP
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2023-12-28