wearechilli / commerce-payfast
Craft Commerce 的 Payfast 支付网关
1.1
2024-07-11 11:46 UTC
Requires
- craftcms/cms: ^3.7
- craftcms/commerce: ^3.4
README
此插件为 Payfast 提供了 Craft Commerce 的集成。
需求
此插件需要 Craft 3.6 和 Craft Commerce 3.3 或更高版本。
安装
您可以从插件商店或使用 Composer 安装此插件。
从插件商店
转到项目的控制面板中的插件商店,搜索“Craft Commerce 的 Payfast”,然后在其模态窗口中点击“安装”按钮。
使用 Composer
打开您的终端并运行以下命令
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require wearechilli/commerce-payfast # tell Craft to install the plugin ./craft install/plugin commerce-payfast
设置
要添加 Payfast 支付网关,请转到 Commerce → 设置 → 网关,创建一个新的网关,并将网关类型设置为“Payfast”。
提示:API 密钥设置可以设置为环境变量。有关详细信息,请参阅 Craft 文档中的 环境配置。