I am working with the QBFC .Net wrapper for QBXML. I am trying to add a customer to Quickbooks from my .Net Winforms application, but I keep getting errors saying my "credit card expiration year" has an "invalid date".
I am using version 13 of the SDK:
SpecVersion Current version of qbXML in use: 13.0
Here's the error from the qbsdklog.txt
CustomerStorage::DoAdd Failed to set customer credit card expiration year: 2015 >QuickBooks error message: Invalid date. HRESULT=0x80040506
I've tried various integers (15, 2015, 2020, 2021, etc), but it simply won't accept anything, throws the same error every time.
Here's the code that I am using in my CusotmerAdd:
//Set field value for ExpirationMonth CustomerAdd.CreditCardInfo.ExpirationMonth.SetValue(10); //Set field value for ExpirationYear CustomerAdd.CreditCardInfo.ExpirationYear.SetValue(2015);
I've done basics like rebooting QB, my IDE, and my PC to no avail. Also note, the same issue occurs if I work with my company file, as well as with the provided sample files.
If I remove the code that adds the credit card, the customer gets added properly. It seems specific to this credit card expiration year.
Has anyone else ever run into this? Seems so simple, I feel like I'm missing something basic, yet nothing I've tried is showing any results.
Thanks!