增强 / craft-commerce-square
此包已被 放弃 并不再维护。未建议替代包。
Craft Commerce 的 Square 支付网关插件
1.0.0-beta.3
2021-03-18 17:46 UTC
Requires
- craftcms/cms: ^3.1.5
- craftcms/commerce: ^3.0
- square/square: 6.0.0.20200625
Requires (Dev)
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2023-11-22 18:06:48 UTC
README
重要
此插件不再维护。
Square for Craft Commerce
此插件为 Square 提供与 Craft Commerce 的集成。
安装
您可以从插件商店或使用 Composer 安装此插件。
从插件商店
前往您的项目控制面板中的插件商店,搜索“Square for Craft Commerce”,然后在其模态窗口中点击“安装”按钮。
使用 Composer
打开您的终端并运行以下命令
# Go to the project directory cd /path/to/craft-project # Tell Composer to load the plugin composer require craftplugins/square # Tell Craft to install the plugin ./craft install/plugin square
设置
要添加 Square 支付网关,请转到 Commerce → 系统设置 → 网关,创建一个新的网关,并将网关类型设置为“Square”。
Webhooks
插件目前仅支持 refund.updated 事件类型。
设置 webhooks 支持需要在 Square 开发者仪表板 中进行配置。
- 前往 Square 应用程序仪表板
- 前往您的应用程序,或创建一个新的
- 前往 Webhooks
- 使用您配置的 Square 网关中的 URL 添加一个 webhooks