cancel
Showing results for 
Search instead for 
Did you mean: 

Authorize Gem returned bad data

We were refunding a transaction when the ruby gem's refund response returned false when asked if it was successful?  There was no error message from Authorize.

 

Any ideas why it would return false on a successful transaction?  I have the transaction ID avaliable, but I don't want to post it publically.

 

Sample code

 

authorize_auth = gateway.refund(amount, self.authorize_transaction_id, {:card_number => digits})

if authorize_auth.success?
    #do things
else
    Rails.logger.error("Text:" + authorize_auth.message.to_s )
end

kcol
Member
1 REPLY 1

Hello kcol

It doesn't look like anyone has responded yet, but someone still may have feedback on what you're looking for. I'd recommend subscribing to this topic so that you'll be alerted via email if anyone else from the community is able to respond with any comments. 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