Hi,
I'm trying to update the payment profile.
If the user doesn't enter a new date I want to submit XXXX as expiration date... This is a masked date which means that the original date shouldn't be changed on authorize.net side.
I tried to set the masked date in 2 different ways in the net.authorize.data.creditcard.CreditCard class:
1. setExpirationMonth("XX") and Year("XXXX")
2. setExpirationDate("XXXX")
In both cases I get the error "E00027 (TESTMODE) The credit card has expired" back from authorize.net...
So, how should we set the masked date using Java SDK?
Solved! Go to Solution.
04-09-2012 01:13 PM
Look like you found a bug on the SDKs. The expirationDate is saving as a Date field and not a string field. And it saving it as 01/1970.
Don't set the expirationDate at all and use the following code fix.
04-10-2012 04:30 AM - edited 04-10-2012 04:36 AM
It the credit card that you try to update expired? Also, a lot of thing doesn't work with CIM in test mode. Get a test account and do it in live mode.
04-09-2012 01:59 PM
I'm using the a test account in live mode.
The date that I'm trying to suply is XXXX - it can't expire because I'm not changing a date. According to the CIM XML guide, when XXXX is passed as date then the original date remains unchanged.
btw, I'm able to change all fields without problem. I can also set the date, the problem rises only when I want to keep the date unchanged by suppliying XXXX as date...
04-09-2012 06:44 PM
Look like you found a bug on the SDKs. The expirationDate is saving as a Date field and not a string field. And it saving it as 01/1970.
Don't set the expirationDate at all and use the following code fix.
04-10-2012 04:30 AM - edited 04-10-2012 04:36 AM
Thanks for the link!
Too bad that the patch is still not included in the SDK...
04-10-2012 06:19 AM