# PayPal Seamless Checkout (Form code)

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2Fpg8zTejnB09mSkdSsPqx%2Fimage.png?alt=media&#x26;token=d2431aea-d3e8-46de-9069-b2a2709306c6" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
**Disclaimers:**

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

Stand Alone Transaction cannot be used with this feature. Make sure Stand Alone Transaction is unchecked inside of the campaign product.
{% endhint %}

{% hint style="warning" %}
You must use live PayPal credentials. Using sandbox credentials will result in an error reading “Security error: Security header is not valid”
{% endhint %}

{% hint style="info" %}
Please click [here](https://help.konnektive.com/konnektive-crm/gateway-setup/gateways/paypal-seamless-checkout/paypal-commerce-checkout-direct-api) for instructions on how to integrate PayPal with Direct API landers.
{% endhint %}

**STEP 1**

Create a PayPal Commerce mid. Instructions are located [here](https://help.konnektive.com/konnektive-crm/gateway-setup/gateways/paypal-seamless-checkout).

**STEP 2**

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

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

**STEP 3**

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  <br>

**STEP 4**

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 5**

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
<?php $ksdk->echoPaypalSigninButton(); ?>
```

\
Insert this code inside of the form element:

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