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),
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.