[英]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.