Question

I would like to add the credit card type to a Sales Receipt, however, I see no credit card information on the 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;

Payment Method

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top