Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Pleased to announce CreditCard
Lucas Carlson
1/16/2005 7:43:00 AM
I am pleased to announce a new RubyForge project I call CreditCard (
http://rubyforge.org/projects/c...
). This is a small hint of
what is to come, a full payment processing gateway for Ruby. To try it
out, type:
gem install creditcard
These subroutines tell you whether a credit card number is
self-consistent using known algorithms for credit card numbers. All
non-integer values are removed from the string before parsing so that
you don?t have to worry about the format of the string.
Here are some example uses.
"5276 4400 6542 1319".creditcard?
=> true
puts 5276440065421319.creditcard_type
=> "mastercard"
"5276440065421319".creditcard? "visa"
=> false
"5276-4400-6542-1319".creditcard? "mastercard"
=> true
-Lucas
http://www...
1 Answer
George Moschovitis
1/17/2005 9:56:00 AM
0
This is nice, thanks!
-g.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Pleased to announce CreditCard
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password