On this page
No Headings
Last updated: June 10, 2026
Follow these steps to generate the JavaScript for the Log in with PayPal button:
Modify the following fields to personalize the Log in with PayPal button. When you're finished, use the following dynamically generated Javascript.
Test the generated button. Once it works to your satisfaction, add the following generated HTML code into your site.
For recommendations on where to place this button on your site, see Button placement.
You can optionally modify the generated JavaScript button code with the following parameters:
| Parameter | Required | Description |
|---|---|---|
appid | The application ID (the client ID from PayPal app creation). Note: Note: The application ID and client ID terms are used interchangeably. | |
authend | Optional | The authorization server URL: Pass sandbox for the test environment. Otherwise, for live, omit this value. |
scope | The profile information requested (available scopes). | |
locale | Language and country specifier. | |
buttonSize | The button size specifier:
| |
theme | Optional | The button styling: PayPal blue or neutral. |
returnurl | The page to return to after successful login. | |
responseType | The response type specifier:
| |
fullpage | The full page specifier:
| |
nonce | Optional | The nonce specifier can be a random number, for example 11111111.
|
Next steps: