cancel
Showing results for 
Search instead for 
Did you mean: 

CIM Profile Update Not Accepting Masked CC Exp. Date (RUBY)

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

 

petrocket
Member
3 REPLIES 3

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

RichardH
Administrator Administrator
Administrator

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:

https://github.com/petrocket/authorize-net

Hello,

 

This issue is now resolved and an updated SDK is available from GitHub: https://github.com/AuthorizeNet/sdk-ruby/

 

Richard