On this page
No Headings
Last updated: June 26, 2026
Fastlane is PayPal's quick guest checkout solution. It securely saves and retrieves payment and shipping information for Fastlane members. Fastlane members enter their email and receive prefilled checkout forms.
After a user signs up for Fastlane, they enter their email to get the member flow at any site with a Fastlane integration.
This integration requires a sandbox business account. The sandbox account should automatically be set up for Fastlane, but to confirm:
If you have an existing REST app and you don't see the option to enable Fastlane or Vault, contact your PayPal account representative.
For more information on creating and managing sandbox accounts, see Sandbox accounts.
After you test your Fastlane integration in the sandbox, you can Go live.
Add PayPal to your Content Security Policy and initialize the SDK from your server.
Modify your Content Security Policy Content Security Policy (CSP) is a web browser feature that helps prevent cross-site scripting and other attacks. CSP restricts the sources used to load resources on your page. This allows you to maintain better control over potentially malicious code.
Include the following directive in your policy:
connect-src: https://*.paypal.com https://*.paypalobjects.com https://*.braintreegateway.com https://*.braintree-api.com
font-src: https://*.paypalobjects.com
frame-src: https://*.paypalobjects.com
img-src: https://*.paypalobjects.com
script-src: https://*.paypal.com https://*.paypalobjects.com https://*.braintreegateway.com
style-src: unsafe-inlineSet up your server To initialize the PayPal JS SDK and Fastlane components, generate a client token through a server-side call and then pass the token into the SDK.
curl -s -X POST "https://api-m.sandbox.paypal.com/v1/oauth2/token" \
-u CLIENT_ID:CLIENT_SECRET \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "PayPal-Auth-Assertion: AUTH-ASSERTION-CODE" \
-d "grant_type=client_credentials" \
-d "response_type=client_token" \
-d "intent=sdk_init" \
-d "domains[]=example.com,example2.com"Modify the code Copy the sample code and modify as follows:
CLIENT_ID with your client ID.CLIENT_SECRET with your client secret.example.com,example2.com with your own domains. Provide the root domain name only.
sub.example.com.*.example.com.http or https.AUTH-ASSERTION-CODE to your PayPal-Auth-Assertion token.Sample response
{
"access_token" : "eyJraW...",
"app_id": "APP-80W2...",
"expires_in": 32400,
"nonce": "2024-01...",
"scope": "...",
"token_type": "Bearer"
}Integrate Fastlane. Be sure to upgrade any existing integration to our Orders v2 API.
Use our ready-made quickstart integration or customize form fields with our flexible integration.
Upgrade existing PayPal and card integrations to use Fastlane.