robuust/craft-commerce-stripe-checkout

Craft Commerce 的 Stripe Checkout 集成

1.0.0 2023-05-04 09:10 UTC

This package is auto-updated.

Last update: 2024-09-04 11:55:06 UTC


README

此插件为 Stripe Checkout 提供了 Craft Commerce 集成。

要求

此插件需要 Craft 4.0 和 Craft Commerce 4.0 或更高版本。

安装

您可以从插件商店或使用 Composer 安装此插件。

从插件商店

转到项目的控制面板中的插件商店,搜索“Stripe Checkout for Craft Commerce”,然后在模态窗口中点击“安装”按钮。

使用 Composer

打开您的终端并运行以下命令

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require robuust/craft-commerce-stripe-checkout

# tell Craft to install the plugin
./craft install/plugin commerce-stripe-checkout

设置

要添加 Stripe Checkout 支付网关,请转到“Commerce”→“设置”→“网关”,创建一个新的网关,并将网关类型设置为 Stripe Checkout。

提示:可发布密钥和密钥设置可以设置为环境变量。有关更多信息,请参阅 Craft 文档中的 环境配置