横向/silverstripe-checkout-stripe

Silverstripe 模块,为结账模块添加 Stripe 支付集成

安装: 69

依赖者: 0

建议者: 0

安全: 0

星星: 0

关注者: 3

分支: 2

类型:silverstripe-module

0.1 2016-03-21 18:09 UTC

This package is auto-updated.

Last update: 2024-09-20 23:28:54 UTC


README

为结账模块添加 Stripe 支付选项。

依赖关系

安装

通过 composer 安装

i-lateral/silverstripe-checkout-stripe: *

或者下载并安装到项目根目录下的 "checkout-stripe" 目录。

设置

安装完成后,您需要添加您的 API 密钥(在 Stripe 的 "账户设置" 中找到)。

通过 Silverstripe 配置添加所有这些

YML

StripePayment:
  test_secret_key: test_xyz
  test_publish_key: test_xyz
  live_secret_key: live_xyz
  live_publish_key: live_xyz

PHP

StripePayment::config()->test_secret_key = "test_xyz";
StripePayment::config()->test_publish_key = "test_xyz";
StripePayment::config()->live_secret_key = "live_xyz";
StripePayment::config()->live_publish_key = "live_xyz";

现在通过登录 CMS 并访问全局网站设置来启用 Stripe 支付。

现在点击“结账”选项卡,然后在支付方式下点击“添加”。

现在从下拉菜单中选择“Stripe”。