DocuSign Payments REST API创建选项卡 [英] DocuSign Payments REST API create Tab

查看:133
本文介绍了DocuSign Payments REST API创建选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在DocuSign信封创建中创建一个示例公式标签,以请求付款(REST API).我已经为我们的许多产品成功创建了signHere选项卡,但是现在我被要求创建一个选项卡,收件人可以在该选项卡上先签名然后付款.设置了支付网关(并通过普通的DocuSign帐户GUI进行了测试),所以我认为问题不存在于此.

I am trying to create a sample formula tab in my DocuSign envelope creation for requesting a payment (REST API). I have successfully created the signHere tabs for many of our products but I am now asked to create a tab where the recipient can sign first and then make a payment. The payment gateways are set up (and tested through the normal DocuSign Account GUI) so I do not think the issue lies there.

我收到错误-请输入有效的付款金额".一旦我尝试完成...但是没有提示您输入付款金额...或输入任何金额的方式.

I am getting an "Error - Please enter a valid payment amount." once I attempt to finish... but there is no prompt for a payment amount...or way to enter any amount.

正在寻找与该格式接近的内容:

Looking for something that would be close to this format:

    "<formulaTabs>" +
      "<formulaTab>" +
       "<isPaymentAmount>true</isPaymentAmount><value>125.00</value>" +
       "<tabLabel>CDSetupFee</tabLabel><documentId>1</documentId> 
        <pageNumber>4</pageNumber>" +
       "<xPosition>200</xPosition><yPosition>630</yPosition>" +
      "</formulaTab>" +
    "</formulaTabs>" +

有什么想法吗?

推荐答案

Amit K Bist通过json解决方案为我提供了更好的指导.经过一番尝试和错误之后,我能够使用此帮助并提出了以下对我们有用的XML. XML的语法需要完善,没有示例就很难正确.希望这个例子也能帮助其他人.

Amit K Bist gave me better direction with the json solution. After some trial and error I was able to use this help and come up with the following XML that looks to work for us. The syntax of XML needs to be perfect and is difficult to get right without example. Hope this example helps others too.

       "<numberTabs>" +
            "<number>" +
            //"<isPaymentAmount>true</isPaymentAmount>" +
            "<xPosition>200</xPosition><yPosition>630</yPosition>" +
            "<documentId>1</documentId>" +
            "<recipientId>1</recipientId>" +
            "<pageNumber>4</pageNumber>" +
            "<value>" + AdditionalDeposit + "</value>" +
            "<maxLength>4000</maxLength>" +
            "<width>80</width>" +
            "<height>16</height>" +
            "<tabLabel>PaymentLabel</tabLabel>" +
            "</number>" +
        "</numberTabs>" +

         "<formulaTabs>" +
            "<formulaTab>" +
            "<paymentDetails>" +
            "<allowedPaymentMethods><string>CreditCard,BankAccount</string>
             </allowedPaymentMethods>" +
            "<total><amountInBaseUnit>" + AdditionalDeposit + "
             </amountInBaseUnit><displayAmount>" + AdditionalDeposit + "
             </displayAmount></total>" +
            "<currencyCode>USD</currencyCode><gatewayAccountId>xxxx-xxxx-xxxx-xxxx-xxxx</gatewayAccountId><gatewayName>Stripe_8530</gatewayName>" +
            "<lineItems>" +
            "<paymentLineItem>" +
                 "<amountReference>PaymentLabel</amountReference>" +
                 "<description>CD Additional Deposit</description>" +
                 "<itemCode>PF54321</itemCode>" +
                 "<name>CD Additional Deposit</name>" +
            "</paymentLineItem>" +
            "</lineItems>" +
            "</paymentDetails>" +
            "<formula>([PaymentLabel]) * 100</formula>" +
            "<recipientId>1</recipientId>" +
            "<documentId>1</documentId>" +
            "<tabLabel>CDSetupFee</tabLabel>" +
            "<pageNumber>4</pageNumber><xPosition>0</xPosition>
             <yPosition>0</yPosition>" +
            "<required>true</required>" +
            "<locked>true</locked>" +
            "<hidden>true</hidden>" +
        "</formulaTab>" +
    "</formulaTabs>" +

这篇关于DocuSign Payments REST API创建选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆