Download the Credit Card Library from Lucas Carlson.
sudo gem install creditcard
# Checksum Digit, there is an algorithm that checksum must match
# A. Import the libraries
require 'rubygems'
require 'creditcard'
# B. Boolean test as to whether this number is a valid credit card
puts '5276 4400 6542 1319'.creditcard?
# C. Check the type of credit card it is
puts '5276 4400 6542 1319'.creditcard_type
Deploying Rails 5.x on AWS ElasticBeanstalk using AWS CodeCommit
How to deploy your Rails app on ElasticBeanstalk (including S3 buckets, security groups, load balancers, auto-scalling groups and more) using CodeCommit.
Subscribe to new posts
Processing your application
Please check your inbox and click the link to confirm your subscription
There was an error sending the email