Generate button
Last updated: Aug 15th, 6:15am
Follow these steps to generate the JavaScript for the Log in with PayPal button:
Configure button
Generate JavaScript
Test the generated button. Once it works to your satisfaction, add the following generated HTML code into your site.
Required fields are missing or malformed.
For recommendations on where to place this button on your site, see Button placement.
Modify JavaScript
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). |
|
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:
|
|
buttonShape |
The button shape 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: