· Create PayPal sandbox account (https://developer.paypal.com)
· Chose Test accounts
- To test a merchant transaction, you must use a test Business Account.
- To test a buyer transaction, you must use a test Personal Account.
· To simulate a transaction on PayPal.com, choose a test account.
· Create one merchant account and buyer account.
· Then login merchant account (https://www.sandbox.paypal.com/cgi-bin/webscr?)
· Next choose My accountà profile
· Next choose selling preference -> website payment preferences
· We have change some payment preferences
· First one is auto return for web payments
· Auto Return shortens the checkout flow and immediately brings your buyers back to your website upon payment completion. To set up Auto Return, you need to turn it on and enter the return URL that will be used to redirect your buyers back to your site
· Do we want auto return?
· Change the radio button option auto return is on
· And give auto return url into the textbox for example(http://e-pstech.com/TBHLearn/PayPal/OrderCompleted.aspx)
· Next choose My accountà profile
· Account Informationà Api Accessà Request API credentials
· Select Request API signature By clicking Agree and Submit
For preconfigured shopping carts: Copy and paste the API username, password and signature into your shopping cart configuration or administration screen.