用例图

image

领域模型

核心模型

image

image

image

image

整体领域模型

image

image

平台分层架构

image

系统架构

image

image

系统流程图

image

image

状态机

checkout/payTerm

image

payPlan/payInstruction

image

image

refundOrder/refundTerm/refundInstruction

image

核心时序图

前置渲染/异步渲染

image

绑卡

image

支付提交/结果轮训

image

image

退款

@startuml

autonumber

participant "交易" as 交易
participant "结算" as 结算
participant "支付" as 支付
participant "ipay" as ipay


交易 -> 结算: 发起退款
结算 -> 结算: 费用项计算
结算 -> 结算: 退款金额计算
结算 -> 支付: 发起退款
支付 -> 支付: 退款受理,初始化退款单和退款指令表
支付 -> ipay: 发起退款
ipay -> 支付: 退款结果返回
支付 -> 支付: 更新单据状态
支付 --> 交易: 发送退款消息


@enduml

外部核心交互

交易收单

image

关闭收单

image

支付结果渲染

image

结算

image