firstruby

Master ruby with us

Paypal Integration with rubyonrails application

Posted by firstruby on October 18, 2007

This is for testing purpose.

For Paypal integration,

Create an account at http://developer.paypal.com,
say xxx@gmail.com

Then create 2 Test acounts (one ‘personal’ and ‘business’) under this test account as,
1. ‘Personal’ (who will pay money after purchase)
Your ‘personal’ email will look like,
Email: xxx_1192175932_per@gmail.com

2. ‘Business’ (one who is getting/receiving the money.)
Your ‘business’ email will look like,
Email: xxx_1192175894_biz@gmail.com

Always remember to be logged in before proceeding with payment process through your Rails application.
Login to http://developer.paypal.com site with main login information of an account.
for me main account email: ‘xxx@gmail.com’

Now create a payment form in your application as (sample form),

Download Sample Payment form

You can design form as per your need.
once you click on ‘Buy Now’ button by entering values, it will connect to sandbox paypal site, then make login to sandbox site with ‘personal’ account ( xxx_1192175932_per@gmail.com ) information and proceed with payment.

Then you can see the money added in your ‘business’ account from your ‘personal’ account.

Advertisements

One Response to “Paypal Integration with rubyonrails application”

  1. Srinivasan said

    Thanks
    Its working properly……

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: