Go through the following steps to generate a bitcoin payment button:
- First, sign up and log in to BitPay at https://bitpay.com/.
- Next, go to the Payment Tools | Payment Buttons page and create a payment button:

- New fields require a SERVER IPN for a secure server POST, and the amount gets paid when the user clicks on it. You will see the preview of the button at the bottom of the page:

- To add this button to the website, just copy the HTML code and paste it in the required web page.