简体   繁体   English

添加付款到销售收据

[英]Add Payment To Sales Receipt

I would like to add the credit card type to a Sales Receipt, however, I see no credit card information on the SR. 我想将信用卡类型添加到销售收据中,但是,我看不到SR上的信用卡信息。 Here is my code: 这是我的代码:

//Set Payment Detail in Header 
        Intuit.Ipp.Data.Qbo.PaymentDetail qboSalesReceiptHeaderPaymentDetail = new Intuit.Ipp.Data.Qbo.PaymentDetail();
        CreditCardPayment cc = new CreditCardPayment();
        cc.CreditChargeInfo = new CreditChargeInfo();
        //to do another credit card type
        cc.CreditChargeInfo.Type = CreditCardTypeEnum.OtherCreditCard;
        cc.CreditChargeInfo.TypeSpecified = true;
        qboSalesReceiptHeaderPaymentDetail.Item = cc;
        //qboSalesReceiptHeaderPaymentDetail.Item = new CashPayment { Desc = "Cash Payment Ref #" };
        qboSalesReceiptHeader.Detail = qboSalesReceiptHeaderPaymentDetail;

        //Set Header 
        qboSalesReceipt.Header = qboSalesReceiptHeader;

付款方法

If you refer to the documentation you'll find that there's a field named: 如果您参考文档,您会发现有一个名为的字段:

PaymentMethodId

The PaymentMethodId should refer to an Id value from one of the Payment Methods in QuickBooks. PaymentMethodId应引用QuickBooks中的一种付款方式的Id值。

eg it's not a "credit card type" per se, it's a "payment method" that you're looking to specify (one of which might be a specific credit card type). 例如,它本身不是“信用卡类型”,它是您要指定的“付款方式”(其中一种可能是特定的信用卡类型)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 销售收据流程信用卡付款QBO V2 - Sales Receipt Process Credit Card Payment QBO V2 如何在快速手册中将库存添加到同一销售收据 - How to add inventory to the same sales receipt in quickbooks 如果它是销售收据的一部分,您如何从Quickbooks交易中找到付款行的TxnLineID? - How do you find the TxnLineID of a payment line from a Quickbooks transaction if it is part of a Sales Receipt? 如何使用Rest API v2 with .NET将销售收据添加到QuickBooks Online中 - How can I add a sales receipt using the Rest API v2 with .NET into QuickBooks Online 使用销售税QBO API创建销售收据 - Creating Sales Receipt with Sales Tax QBO API 如何添加发票或销售收据quickbooks rest api v3.0 - how to add invoice or sales receipt quickbooks rest api v3.0 通过API Explorer调试500响应以创建销售收据 - Debugging 500 Response for Create Sales Receipt Through API Explorer QBO v3 API(IPP)发票或销售收据的TxnTaxDetail与哪个帐户联系? - Which Account does a QBO v3 API (IPP) Invoice or Sales Receipt's TxnTaxDetail touch? 有没有办法以编程方式在销售收据中设置“GST哪个”和“所有金额”字段的内容? - Is there a way to set contents of “GST Which” and “All amounts are” fields in sales receipt programatically? 使用quickbooks API添加付款? - Add a payment using quickbooks API?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM