PayPal Commerce Checkout (Legacy)
Last updated
Last updated
No Account?
Schedule Sales DemoThis PayPal implementation should be used if you expect a consumer to checkout without entering any identifiable information. If however you are capturing the consumer’s name prior to checkout (including on a lead page), then you may find it simpler to use this improved workflow to process PayPal transactions.
Authorization trials (such as Hold Trial Charge, Authorize and Void, etc.) are not supported through PayPal Seamless Checkout.
Using sandbox credentials without enabling the useTestServer checkbox will result in an error reading “Security error: Security header is not valid”
Please click here for instructions on integrating PayPal with a form code lander
If your account requires FraudNet, send the FraudNet data in the paypalClientMetadataId parameter when calling Import Order and Confirm PayPal API.
PayPal can process direct credit cards if your account is setup properly. Card processing on a PayPal Commerce gateway requires no special handling. Process the card using a normal checkout flow or using 3DS flow. This document assumes you are processing using PayPal checkout and NOT direct credit cards.
EXAMPLE PAYPAL CHECKOUT WORKFLOW
Step 1: Import Click - https://api.konnektive.com/landers/clicks/import/?
Customer lands on the ‘presellPage’ of the funnel and a click is imported using the Import Click endpoint.
Be sure to include pageType=presellPage and the requestUri (include affiliate tracking string for reporting)
The response from this call will contain a sessionId which should be sent on all subsequent API calls for this session.
SUCCESS
Use of a Lead Page is recommended but not required. Be sure to note the additional values that must be passed in Step 6 to complete checkout without it.
Step 2: Import Click - https://api.konnektive.com/landers/clicks/import/?
Customer proceeds to the next page in the funnel, the 'leadPage', and another click is imported using the Import Click endpoint.
Be sure to include pageType=leadPage and sessionId
If this is the first page of the funnel -
Send requestUri (include affiliate tracking string for reporting) instead of sessionId.
The response from this call will contain a sessionId which should be sent on all subsequent API calls for this session.
Step 3: Import Lead - https://api.konnektive.com/leads/import/?
Once the customer fills in and submits the lead form, a new lead is created with the Import Lead endpoint.
Be sure to include the sessionId that was returned from your first Import Click call.
The response from a properly formed import lead call will contain an orderId. Save this value for steps 5, 6, 8, & 10.
SUCCESS
Step 4: Import Click - https://api.konnektive.com/landers/clicks/import/?
After a successful submission of the Lead Page, the customer proceeds to the next page in the funnel, the 'checkoutPage', and another click is imported using the Import Click endpoint.
Be sure to include pageType=checkoutPage and sessionId
If this is the first page of the funnel -
Send requestUri (include affiliate tracking string for reporting) instead of sessionId.
The response from this call will contain a sessionId which should be sent on all subsequent API calls for this session.
Step 5: Import Order - https://api.konnektive.com/order/import/?
This is the part of your funnel that contains the PayPal checkout button. It is important to bind the Import Order call to the button. A successful Import Order response will include a paypalUrl parameter. Redirect the browser to that url.
Be sure to include the sessionId and orderId from the previous steps.
There are three PayPal required parameters that must be passed to Import Order:
paySource = 'PAYPAL'
2. paypalBillerId = the value assigned to your PayPal Commerce gateway, found on your gateway list.
3. salesUrl = the url of the page in your funnel that PayPal will redirect to on a successful transaction.
SUCCESS
Step 6: Confirm PayPal - https://api.konnektive.com/transactions/confirmPaypal/?
Upon successful Import Order response redirect the browser to paypalUrl. This is the PayPal login page (or to PayPal’s guest checkout page if the “guestCheckout” option is enabled on the gateway).
After the transaction in PayPal the customer is redirected by PayPal to your salesUrl (from step 5) with a query string appended containing three parameters: paypalAccept, token, and PayerID.
Call the Confirm PayPal endpoint to finalize the transaction. Include the token, PayerID, and baToken if returned by PayPal (all values may not be returned in all situations). Also pass the orderId value (if using Import Lead).
token = token
payerId = PayerID
baToken = ba_token
orderId = CRM order ID (if using Import Lead)
products
Also include the following values if they were passed in via Import Order and you are not using Import Lead call:
emailAddress
phoneNumber
couponCode
shipProfileId
salesTax
affId
sourceValues
SUCCESS
Step 7: Import Click - https://api.konnektive.com/landers/clicks/import/?
After a successful Confirm PayPal call, the customer proceeds to the next page in the funnel, 'upsellPage1', and another click is imported using the Import Click endpoint.
Be sure to include pageType=upsellPage1 and sessionId
Step 8: Import Upsale - https://api.konnektive.com/upsale/import/
To use PayPal with 1-click upsells you will need to ensure referenceTransactions is enabled on both the gateway inside CRM and also on the backend of PayPal.
One-click upsells are available if reference transactions is enabled. If the customer chooses to buy an upsell, submit this product using the Import Upsale endpoint.
Merchants without reference transactions enabled must process upsells using a 2-step process. Include the current page as the salesUrl in the Import Upsale call. paypalUrl is returned on successful response. Redirect the browser to PayPal using that url. Call the Confirm PayPal API after customer completes the checkout (same as step 6).
Repeat Step 7 (increment upsellPage#) and Step 8 for each upsell page in your funnel.
Follow step 9 or 10. It is not necessary to do both.
Step 9: Import Click - https://api.konnektive.com/landers/clicks/import/?
After all upsells the customer finally lands on the 'thankyouPage' and another click is imported using the Import Click endpoint.
Be sure to include pageType=thankyouPage and sessionId
Step 10: Confirm Order - https://api.konnektive.com/order/confirm/
Confirm Order is called to send the customer a confirmation email immediately.
Be sure to include the orderId
Tracking Numbers can optionally be sent to PayPal when received. Check the sendFulfillmentTrackingNumber box on the gateway.
Error
Fix
“Security error: Security header is not valid”
Please use Live PayPal credentials (not Sandbox) or enable useTestServer
Transaction refused because of an invalid argument. See additional error messages for details.: ReturnURL is invalid.
Please ensure salesUrl is included on the Import Order API request.