Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

venkataraj's Profile

GitHub User: venkataraj

Comments by

Avatar

I am working on a maintenance project which is in Rails 3.2.3. Here for payments they are using Active Merchant gem for Paypal integration. As per the code review I did, mostly the code is written based on this railscast.

When I enter a credit card number, it is saved as a "xxxx-xxx-xxx-1234. It is fine in local but in production, it is storing in plain text sometimes. Does Active Merchant have any mechanism to encrypt this card number? or Is there any way to store this card number as "xxxx-xxx-xxx-1234"?