On this page
No Headings
Last updated: June 4, 2026
This product is deprecated and should not be used for new integrations. Use Payment Links and Buttons instead. For information about migrating, visit the Upgrade Hub.
Learn how to customize the checkout page for a basic payment button.
| 1. | Optional | Customize the checkout page. |
| 2. | Optional | Use advanced variables. |
Allow customers to change order quantities and enter special instructions at checkout. You can also collect shipping addresses and redirect customers to an order cancellation or successful transaction webpage.
On the Create a PayPal payment button page, click Step 3: Customize advanced features (optional).
Under Do you want to let your customers change order quantities?, click one of these options:
Note: This option is not applicable to Shopping Cart and Automatic Billing buttons.
Under Can your customer add special instructions in a message to you?, click one of these options:
Note: This option is not applicable to Automatic Billing buttons.
Under Do you need your customer's shipping addresses?, click one of these options:
Under Take customers to this URL when they cancel their checkout, enter the URL to redirect a customer to a cancellation page on your website if they cancel their checkout before completing the transaction.
Under Take customers to this URL when they finish checkout, enter the URL to the success on your website when the customer successfully completes their transaction.
Note: If you use this feature, consider implementing Payment Data Transfer so that you can display information about the completed transactions.
Create and customize a button using PayPal HTML payment button variables. Requires HTML programming experience.
Create and customize a button using
Click Add advanced variables to enable this feature.
Enter the HTML variables in the following name/value-pair format:
VariableName=AllowableValueFor example, if you want to handle purchases as orders rather than as final sales, use the HTML variable paymentaction with the value order. If you choose to include this variable within HTML code that you write manually, you use the following standard HTML format:
<input type="hidden" name="paymentaction" value="order">
However, in the text box, instead of the HTML format, use the following shortened name/value-pair format:
paymentaction=orderDo not enclose values in quotes, even if values contain spaces. PayPal surrounds the value from the equal sign (=) to the end of the line with quotes in the generated HTML code.
For more information, see HTML Form Basics for PayPal Payments Standard.
Click Create Button on the Create a PayPal payment button page, and then copy and paste your button code on your web page.