0

我想将信用卡类型添加到销售收据,但是,我在 SR 上看不到信用卡信息。这是我的代码:

//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;

付款方式

4

1 回答 1

2

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.

e.g. 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).

于 2013-01-12T22:05:48.697 回答