Hello, You cannot simply change the URL and use the button, as this is a hosted button and therefore the code for the button is hosted within the environment where you created the button. If you want a button to work in sandbox environment, login to a sandbox account and create the button from within that account, the same applies to a button for a live account, login to the live account and create the button from within that account. You cannot modify the code of a hosted button after it has been created. The alternative to this, so to not host the button at PayPal (step 2 of the process, save button to PayPal), but if you choose this option the button code will not be protected, meaning anyone could view the code for your site and see / modify the value for the amount for example. Hosted buttons should be your preferred option.
... Afficher plus