I have created the shopping cart button using Paypal Button JS plugin (http://paypal.github.io/JavaScriptButtons/).
The button code is like this
<script
data-env="sandbox"
data-callback="http://mysite.com"
data-tax="10"
data-shipping="10"
data-currency="USD"
data-amount="100"
data-name="TestProduct"
data-button="cart" src="[email protected]"
>
I downloaded the java script from the link given above. I have created the merchant and buyer account from paypal sandbox site.
But When I trying to test in my local/test environment it is going to live paypal site(do not accepting my sandbox buyer account). Please help me to test in the sand box environment.