Skip to content

Stripe ​

在 Stripe 准备 ​

  1. Stripe Dashboard → Developers → API keys:记下 Secret key 和 Publishable key;
  2. Developers → Webhooks → 添加端点:https://你的域名/api/v1/payments/webhook/stripe?channel_id=渠道ID, 选择支付成功相关事件,记下 Signing secret(whsec_ 开头)。

渠道配置 ​

通用字段:提供方选 官方,渠道类型选 stripe,交互方式选 跳转。

字段说明
api_base_url一般保持默认 https://api.stripe.com
secret_keysk_live_…(测试用 sk_test_…)
publishable_keypk_live_…
webhook_secretwhsec_…
payment_method_types允许的支付方式,例如 card、alipay、wechat_pay
success_url / cancel_url一般都填 https://你的域名/pay
exchange_rate / target_currency例如 USD 和汇率

Stripe 渠道配置Stripe 渠道配置

斑马小铺 Zebra Store:dujiao-next 的 Rust + Vue 3 复刻版