PayPal Seamless Checkout (Form code)

Authorization trials (such as Hold Trial Charge, Authorize and Void, etc.) are not supported through PayPal Seamless Checkout

You must use live PayPal credentials. Using sandbox credentials will result in an error reading “Security error: Security header is not valid”

Please click here for instructions on how to integrate PayPal with Direct API landers.

STEP 1

To create a PayPal Seamless Checkout MID, go to Merchants | Gateway Integrations and select the PayPal button, then click on +Activate.

Notes:

  • Stand Alone Transaction cannot be used with this feature. Make sure Stand Alone Transaction is unchecked inside of the campaign product.

  • First, contact PayPal and have the Reference Transaction enabled on your account if you are planning to enable rebilling or upsells with PayPal.

Make sure you check the referenceTransactions box on your PayPal MID setup to enable rebilling and upsells for seamless checkout.

After enabling the referenceTransactions option on your PayPal MID, log into your PayPal merchant account and confirm that your account is configured correctly to support Reference Transactions. 

Rebills and one-click upsells WILL NOT WORK if this option is not set on your PayPal MID and if your PayPal account is not configured correctly to support this

You can also send the fulfillment tracking numbers back to PayPal by enabling the sendFulfillmentTrackingNumber option



Add this code inside the form element on the upsell page:

<?php $ksdk->echoUpsaleCheckoutButton(); ?>

STEP 2

Go to CRM | Campaigns and edit the campaign that you would like to use.  Scroll down to the Landing Page section and click the Edit button  

STEP 3 

Open the Lander Editor and choose the PayPal MID you created in Step 1 from the PayPal Account drop-down list, then click the Update button to save your changes:

 

STEP 4

Download the Lander package and re-deploy the lander as described in this article and edit your checkout page to insert the following code snippet:

<?php $ksdk->echoPaypalSigninButton(); ?>


Insert this code inside of the form element:

<?php $ksdk->echoPaypalCheckoutButton(); ?>