thelia / stripe-payment-module
3.0.2
2024-09-06 14:05 UTC
Requires
- stripe/stripe-php: ^v7.100
- thelia/installer: ~1.1
README
用于Stripe的Thelia支付模块。
您需要Stripe支付解决方案的订阅才能使用此模块。
安装
无论是手动安装StripePayment还是通过composer安装,在尝试激活模块时都会检查Stripe API文件的存在。如果API文件不存在,您将无法使用Stripe。请注意,API文件被放置在核心的vendor文件夹中。
手动
- 将模块复制到
<thelia_root>/local/modules/
目录,并确保模块的名称为StripePayment。 - 安装Stripe PHP库
- 使用以下命令将"stripe/stripe-php"添加到您的composer.json文件中:
composer require stripe/stripe-php:"6.*"
- 或者从https://github.com/stripe/stripe-php/releases下载库,并将其安装到您的
core/vendor
目录中
- 使用以下命令将"stripe/stripe-php"添加到您的composer.json文件中:
- 在Thelia管理面板中激活它
Composer
将其添加到主thelia composer.json文件中
composer require thelia/stripe-payment-module ~2.0.0
配置
输入您的Stripe密钥(秘密和公共)可在您的Stripe仪表板上找到。
将您的Stripe账户置于实时模式。
然后在模块配置面板中激活Stripe。
在Stripe仪表板中激活webhooks,并在Thelia后台Stripe配置中指定URL,并添加在Thelia后台Stripe配置中列出的事件。
### 日志
Stripe错误日志存储在日志文件夹中的一个特定文件中。