You need to enable JavaScript to run this app. DocuSign Rest API创建支付标签要求及点击Finish无支付提示问题
优惠活动
大模型
产品
解决方案
定价
更多

DocuSign Rest API创建支付标签要求及点击Finish无支付提示问题

DocuSign 固定金额支付触发失败修复方案

核心修改逻辑

要触发支付流程,必须满足两个配置要求:

  • 每个支付行条目需要对应一个独立的FormulaTab,PaymentLineItem的AmountReference属性值与对应FormulaTab的TabLabel完全一致
  • 总支付金额的FormulaTab需携带支付网关配置,且通过公式引用所有行条目对应的Tab值计算总金额

调整后完整代码示例

// 支付行条目对应的金额Tab,可设置为隐藏不在PDF上展示
FormulaTab applicationFeeTab = new FormulaTab
{
    TabLabel = "ApplicationFee",
    Value = "35",
    Formula = "35",
    RecipientId = "1",
    Required = "true",
    Hidden = "true"
};

PaymentLineItem paymentLineIteml1 = new PaymentLineItem
{
    Name = "Application Fee",
    Description = "Application Fee",
    // 关联上面支付行条目Tab的TabLabel
    AmountReference = "ApplicationFee"
};

PaymentDetails paymentDetails = new PaymentDetails
{
    GatewayAccountId = "OUR_GATEWAY_ACCOUNT_ID",
    CurrencyCode = "USD",
    GatewayName = "OUR_GATEWAY_NAME",
    GatewayDisplayName = "OUR_GATEWAY_DISPLAY_NAME",
    LineItems = new List<PaymentLineItem> { paymentLineIteml1 }
};

// 总支付金额Tab,携带支付配置
FormulaTab totalPaymentTab = new FormulaTab
{
    PaymentDetails = paymentDetails,
    AnchorString = "Signature:",
    AnchorYOffset = "30",
    AnchorUnits = "pixels",
    AnchorXOffset = "180",
    TabLabel = "TotalPayment",
    Required = "true",
    RecipientId = "1",
    // 引用行条目Tab的值作为总金额
    Formula = "[ApplicationFee]"
};

Tabs signer1Tabs = new Tabs
{
    // 两个FormulaTab都要加入Tabs列表
    FormulaTabs = new List<FormulaTab> { applicationFeeTab, totalPaymentTab }
};

注意事项

  • TabLabel不要包含特殊字符和空格,避免引用识别失败
  • 支付网关的账户ID、名称参数需要和DocuSign后台配置的信息完全匹配
  • 多笔支付行条目场景下,每个行条目都要对应一个独立的金额Tab,总金额公式直接累加所有行条目Tab的值即可

内容的提问来源于stack exchange,提问作者aardvark

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.21 10:06:04