furbo/craft-commerce-wallee
Composer 安装命令:
composer require furbo/craft-commerce-wallee
包简介
Craft Commerce Payment Gateway for Wallee
README 文档
README
Wallee & Postfinance
This plugin provides a Wallee or Postfinance Flex integration for Craft Commerce.
Add Wallee/Postfinance as a payment gateway in your craft commerce installation. The plugin allows configuration of many payment methods such as:
- Credit Cards
- Postfinance
- Twint
- Apple Pay
- Google Pay
- PayPal
- Klarna
- Boncard
- Luncheck
- ...
Configurable modes:
Choose between lightbox, iframe and fullpage integration mode.
Packages availabel for Craft 3, 4 and 5.
Wallee status changes can be mapped dynamically to craft commerce order status.
Requirements
- Craft CMS 4.0 or later
- Craft Commerce 4.0 or later
Installation
You can install this plugin from the Plugin Store or using Composer.
From the Plugin Store
Go to the Plugin Store in your project’s control panel, search for “Wallee for Craft Commerce”, and choose Install in the plugin’s modal window.
With Composer
Open your terminal and run the following commands:
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require furbo/craft-commerce-wallee # tell Craft to install the plugin php craft install/plugin craft-commerce-wallee
Wallee Setup
- Create a new account at Wallee or Postfinance
- Go to Space from the left menu and create a new Space and copy the Space ID.
- In Account details, create a new Application User and Copy the API Key and API Secret in some safe place.
- Go to the new Application User and add the Role "Account Admin" in the Roles section.
- Go to your Space > Configuration > Processors and Configure Processor to add the payment methods you want to use (Paypal, Twint, etc).
- Go to Webhooks > URL Tab and create webhook URL. Add the URL of your website (you can copy from the Craft when you have created the gateway).
- Go to Webhooks > Listener Tab and create webhook Listener. In Entity select "Transaction" and in Entity State select all states. In URL select the webhook URL you have created in the previous step.
- Go to the plugin setting in the craf backend and map the Wallee/Postfinance status to the order status.
Craft Setup
- Go to Commerce > System Settings > Gateways and create a new gateway.
- Select Wallee as the gateway type.
- Enter the Space ID, API Key and API Secret you have copied in the Wallee Setup.
- Select the integration mode you want to use (Lightbox, iFrame or Page) More details.
- When you have created the gateway you can see the Webhook URL that you have to use in the Wallee Setup.
<form method="post" accept-charset="UTF-8"> {{ csrfInput() }} {{ actionInput('commerce/payments/pay') }} {{ hiddenInput('gatewayId', cart.gatewayId) }} {% set params = { successUrl: '/checkout/success?number=' ~ cart.number, cancelUrl: '/checkout/cancel?number=' ~ cart.number, paymentButtonSelector: '#wallee-lightbox', } %} {# Commerce 3 #} {{ cart.gateway.getPaymentFormHtml(params)|raw }} {# Commerce 4 and 5 #} {% namespace cart.gateway.handle|commercePaymentFormNamespace %} {{ cart.gateway.getPaymentFormHtml(params)|raw }} {% endnamespace %} </form>
The parameter paymentButtonSelector: '#wallee-lightbox', is optional and only neeeded if you want to open the lightbox when you click on a button. If you don't use this parameter the lightbox will open automatically when the page is loaded. It's not required for the iframe and page integration.
How can I show the Wallee transactions id in the orders list in the craft backend?
- Go to Commerce > Orders > Click on the cog icon > Customize Sources.
- In the "Default Table Columns" add the column "Transactions" and save.
Support
If you have any issues with this plugin, please create an issue on GitHub or contact us at Furbo.
furbo/craft-commerce-wallee 适用场景与选型建议
furbo/craft-commerce-wallee 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 94 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 02 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「Craft」 「craftcms」 「craft-plugin」 「commerce wallee」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 furbo/craft-commerce-wallee 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 furbo/craft-commerce-wallee 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 furbo/craft-commerce-wallee 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Expand, collapse, change the status of, or delete multiple blocks in a Matrix field simultaneously.
GraphQL authentication for your headless Craft CMS applications.
Set Links with a specific language parameter
Supercharged text field validation.
Integrate with Snipcart.
Restrict user registration by domain in Craft CMS, allows you to limit who can register for your site based on their email address.
统计信息
- 总下载量: 94
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2023-02-02
