Paypal has test environment for developers, on th link developer.paypal.com you can open an account and manage your application with paypal
you can create paypal test account to test your code and send transactions.
login to the paypal test account:
the link to paypal test environment is sandbox.paypal.com. this is exacly like the real account you have when you want to login to paypal.com