知识卡片
查询或撤销未知扣款
遇到[[扣款超时结果不明]],应按支付服务API能力查询实际扣款,再决定清理;也可使用专用清理接口,或撤销该笔扣款并把“不存在”视为无需撤销。关键是主动恢复一致业务状态,而非把网络异常视为远端业务回滚。具体方案取决于对方接口,无法凭客户端猜测完成。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 工作流引擎与集成挑战 · 查看原书依据
There are multiple possibilities to achieve this. Maybe it makes sense to check if a charge was made in order to determine whether a cleanup is needed. Or you might leverage a cleanup API the credit card service provides. Or you can cancel the charge and ignore any errors saying that this charge doesn’t exist. The exact implementation depends on the API of the credit card service, but it is important that this problem is handled.
参考来源
- 位置:《Practical Process Automation》第9章《工作流引擎与集成挑战》(来源项目:book-sources;源文件:extracted/Practical Process Automation (Bernd Ruecker)/_epub-src/OEBPS/ch09.xhtml)
- 结论依据:原文逐项给出查询扣款后决定清理、调用清理API、取消扣款并忽略不存在错误的恢复方案,同时明确方案受对方API约束,支持本卡的机制与边界。
- 原始内容:There are multiple possibilities to achieve this. Maybe it makes sense to check if a charge was made in order to determine whether a cleanup is needed. Or you might leverage a cleanup API the credit card service provides. Or you can cancel the charge and ignore any errors saying that this charge doesn’t exist. The exact implementation depends on the API of the credit card service, but it is important that this problem is handled.