PayPal Fastlane
Enter your payment details once. Then checkout with just a click wherever Fastlane is available.
Last updated
Enter your payment details once. Then checkout with just a click wherever Fastlane is available.
Last updated
Go to Gateways > Gateway List > choose the PayPal Commerce account. Enable referenceTransactions. Verify that vaultEnabled is enabled. These 2 options are required for Fastlane.
Reference transactions must also be enabled on your PayPal account. Please confirm with PayPal if this is unknown.
Most of the Fastlane integration is on your checkout page.
Create a Fastlane session
paypalFastlaneBillerId - the PayPal Commerce gateway id on which to transact
requestUri - the full url of the current page
This call will return standard session information along with a Fastlane session token
retrieve paypalFastlane.accessToken from the response
Implement Fastlane on the checkout page. Reference this link
Load the PayPal SDK:
Use JavaScript to dynamically load the PayPal SDK script.
Ensure the SDK script URL includes all necessary parameters, such as:
`components=fastlane`
Other required PayPal SDK parameters
`data-sdk-client-token` should be set using the accessToken from Step 1
Script Handling
Append the SDK script to the <head> element.
Once the script is loaded, call the `initFastlane` function.
Page Setup
Add the necessary classes and IDs to the page to render Fastlane components correctly
Design the checkout UI to support both guest and member checkout flows.
Checkout Flow
On "Checkout" button click
For guest checkout (not currently enrolled in Fastlane), gather billing and shipping details from input fields.
For member checkout (enrolled in Fastlane), retrieve billing and shipping details from Fastlane components
Save the billing and shipping details for Step 3
Create a payment token
For guest checkout (not currently enrolled in Fastlane), generate the token using the collected billing details.
For member checkout (enrolled in Fastlane), use the token returned by Fastlane.
Save the token for Step 3
Import the order when Fastlane is complete on the checkout page
paySource - PAYPAL
prepaidType - PAYPAL_FASTLANE
forceMerchantId - the PayPal Commerce gateway id on which to transact (same as Step 1)
formCardNonce - the token returned by Fastlane at the end of Step 2
Pass the billing and shipping details from Step 2
Upsells are processed using standard upsell handling. There is no additional code needed for upsell pages. Reference transactions is required for Fastlane checkout, making all upsells 1-click.
Call the Konnektive with standard parameters and:
Call the Konnektive with standard parameters and: