0.0
No commit activity in last 3 years
No release in over 3 years
ActiveMerchant::Billing::CreditCard, without ActiveMerchant
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.3.11
>= 0
 Project Readme

am_credit_card

ActiveMerchant::Billing::CreditCard, without ActiveMerchant.

https://secure.travis-ci.org/pda/am_credit_card.png

Why?

ActiveMerchant has nice credit card validations, but also lots of dependencies and other code. That's fine for those using the rest of ActiveMerchant, but if you're just after its credit card model/validations, this is for you.

Usage

# Gemfile
gem "am_credit_card"
# Instantiation
card = ActiveMerchant::Billing::CreditCard.new(
  :first_name         => "Bob",
  :last_name          => "Bobsen",
  :number             => "4242424242424242",
  :month              => "8",
  :year               => "2012",
  :verification_value => "123"
)

# Validation
card.valid?
card.errors

License

ActiveMerchant is Copyright © 2005-2010 Tobias Luetke. He has released it open-source under the MIT license