# Test your payment buttons (/archive/paypal-payments-standard/ht-test-pps-buttons)



> **Warning:** This product is [deprecated](/archive/product-lifecycle) and should not be used for new integrations. Use [Payment Links and Buttons](/payment-links-buttons/overview) instead. For information about migrating, visit the [Upgrade Hub](https://developer.paypal.com/upgrade/wps/guide/).

To ensure that your PayPal Payments Standard payment buttons work correctly, PayPal recommends that you test them using the PayPal Sandbox before you place them on your live website.

## Test procedure [#test-procedure]

|    |                                                                            |
| -- | -------------------------------------------------------------------------- |
| 1. | [Create sandbox accounts](#create-sandbox-accounts).                       |
| 2. | [Create test buttons in the sandbox](#create-test-buttons-in-the-sandbox). |
| 3. | [Test buttons on your website](#test-buttons-on-your-website).             |

## Create sandbox accounts [#create-sandbox-accounts]

To test your web and mobile apps with mock transactions, create a personal account to represent a buyer and a business account to represent a merchant.

1. **Log into Dashboard** and type your PayPal personal or business account email and password.

   > **Note:** **Note:** If you do not have an account, click **Sign Up**.

2. Under **Sandbox**, click **Accounts**, and then click **Create Account**.

3. Choose the type of account and country that you want to test, and click **Create**. PayPal generates an account for you with test values for bank account, credit card, and balance. To edit account features, after the account has been created click on the edit button for that account.

   > **Note:** **Note:** If you need more customization of the test values, click **Create Custom Account** in the **Create Sandbox Account** dialog.

## Create test buttons in the sandbox [#create-test-buttons-in-the-sandbox]

1. Use your test seller credentials to log in to the [PayPal Sandbox](https://www.sandbox.paypal.com).

2. To create your payment buttons in the sandbox:

   1. Click **Profile** > **Profile and Settings**. Then, click **My Selling Tools**.

   2. Click **Paypal Buttons**.

   3. Under **Related Items** on the right, click **Create new button**.

   4. Choose a button type and fill out the form to create your test button.

   5. Click **Create Button** to generate the HTML for your test button. For detailed instructions, see [Create a payment button](/archive/paypal-payments-standard/integration-guide/create-payment-button).

   This example shows the HTML for a simple **Buy Now** test button:

   ```html lineNumbers
   <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
     <input type="hidden" name="cmd" value="_s-xclick">
     <input type="hidden" name="hosted_button_id" value="6RNT8A4HBBJRE">
     <input type="image" src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_buynow_107x26.png" alt="Buy Now">
     <img alt="" src="https://paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
   </form>
   ```

3. Copy the button code to the appropriate location on your website. For detailed instructions, see [Copy and paste button code](/archive/paypal-payments-standard/integration-guide/copy-paste-code).

   This page shows how it might look on your web page:

   ```html lineNumbers
   <!DOCTYPE html>
   <html lang=en>

   <head>
     <meta charset=utf-8>
     <title>Testing a PayPal Payments Standard Button</title>
   </head>

   <body>
     <h2>Buy Strings!</h2>
     <table>
       <tr>
         <td>Bass Guitar Strings</td>
         <td>
           <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
             <input type="hidden" name="cmd" value="_s-xclick">
             <input type="hidden" name="hosted_button_id" value="6RNT8A4HBBJRE">
             <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
             <img alt="" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
           </form>
         </td>
       </tr>
     </table>
   </body>

   </html>
   ```

## Test buttons on your website [#test-buttons-on-your-website]

1. Open your web page in a browser and click on the PayPal payment button.

2. When prompted to log in on the PayPal payment page, log in with your test buyer account credentials for the sandbox.

3. Under **Sandbox** in the PayPal Developer Dashboard, click **Notifications**.

4. Verify that you have received email notifications for your transactions.

When your tests are complete, log in to your [PayPal](https://www.paypal.com) Business account and create the buttons for your website. For detailed instructions, see [Create a payment button](/archive/paypal-payments-standard/integration-guide/create-payment-button).

## Next [#next]

Learn how to [receive payment notifications](/archive/paypal-payments-standard/integration-guide/get-notifications) or [manage transactions](/archive/paypal-payments-standard/integration-guide/manage-activity).

## Additional information [#additional-information]

* [PayPal Sandbox testing guide](/sandbox-testing/overview)
