Reply
Highlighted
Member
Posts: 2
Registered: ‎12-05-2013

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

 

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

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

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

Highlighted
Member
Posts: 2
Registered: ‎12-05-2013

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

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

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

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

Hello,

 

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

 

Richard