When you create your hosted button on PayPal from the "Merchant Services" menu, you will be able to specify some advanced variables in "Step 3". Add the following in the "Advanced Variables" field: rm=2 return=http://www.yoursite.com/thank-you-page Now, save and you will be able to copy the button code and paste it in your payment page. The hosted button code will look similar to the following: