调至内容部分
创建账户或登录
Stripe 文档徽标
/
询问人工智能
创建账户登录
开始
付款
销售收入
平台和交易市场
资金管理
开发人员资源
API 和 SDK帮助
概览
版本管理
更改日志
    概览
    Clover
    Basil
    Acacia
    先前版本
升级您的 API 版本
升级 SDK 版本
基础功能
SDK
API
测试
Stripe CLI
项目示例
工具
Stripe 管理平台
Workbench
开发人员管理平台
Stripe for Visual Studio Code
Terraform
功能
工作流程
事件接收端
Stripe 健康警报文件上传
AI 解决方案
代理工具包
模型上下文协议构建代理式 AI SaaS 计费工作流
安全与隐私
安全
Stripebot 网络爬虫
扩展 Stripe
构建 Stripe 应用程序
使用 Stripe 的应用程序
合作伙伴
合作伙伴生态
合作伙伴认证
美国
简体中文
首页开发人员资源ChangelogAcacia2024-09-30.acacia

Updates consent modeling for saving cards with Terminal突发修改

最新

Removes the customer_consent_collected parameter and replaces it with allow_redisplay.

Requires allow_redisplay when using setup_future_usage.

已移除
customer_consent_collectedboolean

Indicates whether customer consent has been collected to redisplay the payment method.

已添加
allow_redisplayenum

This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to unspecified.

Why is this a breaking change?

This is a breaking change because it requires allow_redisplay when saving card details with Terminal. For SetupIntents, customer_consent_collected has been removed and replaced with allow_redisplay. For PaymentIntents that specify setup_future_usage, then allow_redisplay must also be passed before collecting card details. With the new version, you must use allow_redisplay to control whether a payment can be shown to a customer again.

影响

Lets you save cards in more regions using Terminal, expanding your service coverage. Additionally, the improved alignment with industry requirements for customer consent collection ensures regulatory compliance.

You must add the new parameter to your integration before March 31, 2025 and ensure that it’s set to always or limited on all Setup Intents transactions and Payment Intents that specify setup_future_usage.

变化

参数更改资源或 端点
allow_redisplay已添加
Terminal.Reader#process_payment_intent.process_configTerminal.Reader#process_setup_intent
customer_consent_collected已移除
Terminal.Reader#process_setup_intent

Upgrade

  1. View your current API version in Workbench.
  2. If you use an SDK, upgrade to the corresponding SDK version for this API version.
    • If you don’t use an SDK, update your API requests to include Stripe-Version: 2024-09-30.acacia
  3. Upgrade the API version used for webhook endpoints.
  4. Test your integration against the new version.
  5. If you use Connect, test your Connect integration.
  6. In Workbench, perform the upgrade. You can roll back the version for 72 hours.

Learn more about Stripe API upgrades.

Related changes

  • Adds support for configuring the reboot time setting
  • Adds the Stripe S700 reader as a valid device type
  • Adds details about offline collection on card_present PaymentMethod objects
此页面的内容有帮助吗?
是否
  • 需要帮助?联系支持。
  • 查看我们的更改日志。
  • 有问题?联系销售。
  • LLM? Read llms.txt.
  • Powered by Markdoc