Generate button

Simplify your integration by using our interactive JavaScript button generator

docscurrentLast updated: April 5th 2023, @ 2:30:03 pm


Follow these steps to generate the JavaScript for the Log in with PayPal button:

Configure button

Modify the following fields to personalize the Log in with PayPal button. When you're finished, use the following dynamically generated Javascript.

(must match the environment of the application client id being used)
(if the application specifies a return URL, this field must match)

Generate JavaScript

Test the generated button. Once it works to your satisfaction, add the following generated HTML code into your site.

<span id="lippButton"></span>
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:

ParameterRequiredDescription
appid

The application ID (the client ID from PayPal app creation).

Note: The application ID and client ID terms are used interchangeably.
authendOptionalThe authorization server URL: Pass sandbox for the test environment. Otherwise, for live, omit this value.
scopeThe profile information requested (available scopes).
localeLanguage and country specifier.
buttonSize

The button size specifier:

  1. sm. Small.
  2. md. Medium.
  3. lg. Large.
buttonShape

The button shape specifier:

  1. pill. The default.
  2. rectangle
themeOptional

The button styling: PayPal blue or neutral.

returnurl

The page to return to after successful login.

responseType

The response type specifier:

  1. code
  2. id_token
  3. code & id_token
fullpage

The full page specifier:

  1. true
  2. false. Default is mini browser.
nonceOptionalThe nonce specifier can be a random number, for example 11111111.
  • If you don't provide this parameter, the return url redirection behavior is mini browser.
  • If you provide the paramenter with a random number, it will redirect to parent browser.

Next steps: