# PayPal Seamless Checkout (Form code)

<figure><img src="/files/BUU8B2zEh5U0vTjLVQY4" 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](/konnektive-crm/gateway-setup/gateways/paypal-seamless-checkout/paypal-commerce-checkout-direct-api.md) for instructions on how to integrate PayPal with Direct API landers.
{% endhint %}

**STEP 1**

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

**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(); ?>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.konnektive.com/konnektive-crm/gateway-setup/gateways/paypal-seamless-checkout/paypal-seamless-checkout-form-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
