Credit card validation


#1

hey,

is there any lib or module in ruby on rails to validate credit cards???

thanks in advance ;):wink:


#2

hey,

i found a creditcard lib
http://rubyforge.org/projects/creditcard/

i also need encryption, i was planning on using ‘digest/sha1’ but i was
think, u
can only encrypt, but not decrypt, right??

i also need decryption, does anyone has anyother ideas for encryption??

Thx
Nick


#3

sha1 is not for encryption but for creating message digests.

the most flexibility should come from ruby stdlib ‘OpenSSL’


#4

Have a look at the Sentry library for your crypto needs:
http://sentry.rubyforge.org/

It integrates beautifully with AcitveRecord, too.

Cheers!

-DF


#5

You can try this also:

http://rubyforge.org/projects/payment