thelia/stripe-payment-module

安装: 577

依赖: 0

建议: 0

安全性: 0

星星: 0

关注者: 6

分支: 8

开放问题: 6

类型:thelia-module

3.0.2 2024-09-06 14:05 UTC

This package is auto-updated.

Last update: 2024-09-06 14:06:23 UTC


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目录中
  • 在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错误日志存储在日志文件夹中的一个特定文件中。