知识卡片

支付系统案例卡 · 4918.b.3.a.1.a

订阅授权的分步切换

理解等级:高级

在本例API语义下,先创建未激活的新授权,成功后取消旧授权,再激活新授权;后两步失败可异步退避重试,配合状态监控与用户通知。创建失败可立即报给客户,避免为后台重试保留敏感输入。它降低[[订阅双授权导致重扣]]的风险,却可能有零有效授权窗口,不能保证持续收费或自动成功;幂等、响应不明与重试边界须另验。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Architectural Decision Records · 查看原书依据

      (NEW OPTION) Create, then cancel, then activate mandates. Async retries if “cancel” or “activate” fails. “Create” call is the only one that contains PCI data, and if this fails, we can tell the customer immediately. Failures in “cancel” and “activate” calls can be retried async without any PCI data, ensuring there is always an active

    参考来源

    - 位置:《Facilitating Software Architecture》第06章《Architectural Decision Records》(来源项目 /Users/wangyi/claudecodeProject/bookBase/book-sources;源文件:extracted/Facilitating Software Architecture/_epub-src/OEBPS/ch06.html) - 结论依据:原文咨询后新增此顺序及异步退避,同时承认no active mandate风险未完全消除;因此不沿用“始终有效”和不丢钱的绝对说法。 - 原始内容:(NEW OPTION) Create, then cancel, then activate mandates. Async retries if “cancel” or “activate” fails. “Create” call is the only one that contains PCI data, and if this fails, we can tell the customer immediately. Failures in “cancel” and “activate” calls can be retried async without any PCI data, ensuring there is always an active