Klairvoyant infosolution's Blog

Paypal with rails-Using Active merchant

john

) gem install activemerchant

2) create two paypal test accounts 1)Business 2) personal

copy the following information which will be created while creating business account

API Username,API Password and Signature

location:- https://developer.paypal.com/

3) code the following in a ruby file ex “purchase.rb”

require “rubygems”
require “active_merchant”

ActiveMerchant::Billing::Base.mode=:test

gateway=ActiveMerchant::Billing::PaypalGateway.new(
:login=> “API username”,
:password=>”API Password”,
:signature=>”signature”
)
# here the credit card information of the personal test account

credit_card=ActiveMerchant::Billing::CreditCard.new(
:type=>”visa”,
:number=>”4582849457729927″,
:verification_value=>”000″,
:month=>01,
:year=>2013,
:first_name=>”John”,
:last_name=>”M V”
)
if credit_card.valid?
...

Read more

Open Source Ruby On Rails Applications

john
Read more

IDE for rails

john
Read more

mentioning version and database for rails new project

john

rails _3.0.8_ new myproject -d mysql

where  -d for mentioning what database we use

Read more

How to get data from heroku to your system

john

1) Install the latest heroku gem
2) Install taps gem

3) execute the command heroku db:pull

for more
1) http://devcenter.heroku.com/articles/taps
2)http://blog.heroku.com/archives/2009/3/18/push_and_pull_databases_to_and_from_heroku/

 

Read more