I'm testing the Ruby AuthorizeNet gem for CIM transactions and found what I think is a bug.
When you try to submit a masked expiration date (XXXX) to the AuthorizeNet::CIM::Transaction::update_payment_profile() method you get an 'Invalid date' argument error because the Nokogiri::XML::Builder in xml_transaction.rb tries to convert the XXXX value into a date instead of accepting it as a string.
It tries to convert it to a date because the convert_field function in xml_transaction.rb expects the :exp_date field to be a date and doesn't have a valid path for the masked version of :exp_date
12-05-2013 08:33 AM
Hello Petrocket,
I've reported your issue to the product team for analysis.
I'd recommend subscribing to this topic so that you'll be alerted via email if there are updates. To subscribe, click Topic Options at the top of this thread and then select Subscribe. You'll then receive an email once anyone replies to your post.
Thanks,
Richard
01-06-2014 03:21 PM
I'd be happy to submit a pull request for the fix to this bug. I've already created a custom fix and committed to my fork here:
01-13-2014 06:34 AM
Hello,
This issue is now resolved and an updated SDK is available from GitHub: https://github.com/AuthorizeNet/sdk-ruby/
Richard
04-02-2014 06:54 AM