# Form Code: Login and Pay with Amazon

Step 1: Configure Amazon Payments for your website.

* Login to [**sellercentral.amazon.com**](http://sellercentral.amazon.com) and *select* *"Login with Amazon"* from the drop-down on the right side of the navigation bar.

<figure><img src="/files/5lRADUDwLXZW5OImUhI8" alt=""><figcaption></figcaption></figure>

* Next Create an **Amazon App** for your Website by clicking **"Register New Application"** On the right-side of the screen.

<figure><img src="/files/AK53B2clOEbR5N4KLbmg" alt=""><figcaption></figcaption></figure>

* You will need to setup some basic information about your site now. Amazon Requires the following fields:

<figure><img src="/files/jvC76gXS0JreW2m273MX" alt=""><figcaption></figcaption></figure>

* Inside the web settings section are some very important fields. You will need to make sure that you set both the **"Allowed JavaScript Origins" and "Allowed Return URLs"** fields to the full domain name of your site.

*(ex. Your site is* [*www.buybatmanpills.com/extremeworkout/*](http://www.buybatmanpills.com/extremeworkout/) *then, your would put* [*https://www.buybatmanpills.com*](https://www.buybatmanpills.com) *in both fields).*

{% hint style="warning" %}
***Note: It's important that you set this to https, instead of http as Konnektive forms will be using https.***
{% endhint %}

* Also ensure that you write down the **Client ID and Client Secret**. You will need these later for setup

<figure><img src="/files/sDzFBrsO1VPkOGB7GqgB" alt=""><figcaption></figcaption></figure>

### Step 2: Give Konnektive Access to Amazon MWS <a href="#form-code-loginandpaywithamazon-step2-givekonnektiveaccesstoamazonmws" id="form-code-loginandpaywithamazon-step2-givekonnektiveaccesstoamazonmws"></a>

* Go to [**https://developer.amazon.com**](https://developer.amazon.com) and on the right side of the screen click the yellow **"Sign up for MWS"** button.

<figure><img src="/files/jm6hWiwSuIoMtdffbZiK" alt=""><figcaption></figcaption></figure>

* If you are not logged in, you will need to log into Amazon.
* **You can visit** [**Registering to use Amazon MWS**](https://docs.developer.amazonservices.com/en_US/dev_guide/DG_Registering.html) **For Additional Support**

<figure><img src="/files/GV5AWrIVkaDK0ZjVC4Qj" alt=""><figcaption></figcaption></figure>

* Go to the [User Permission Page in Seller Central](https://sellercentral.amazon.com/gp/account-manager/home.html) and click the **Authorize a developer** button.
* Enter **"Konnektive CRM"** for the **Developer name** and enter **"8697-6685-8860"** for the **Developer ID**.
* Click the **Authorize developer** button. Write down your **Seller ID** and your **MWS Auth Token** for later. It is difficult to get this information again so make sure you store this somewhere safe.

### Step 3: Setup Amazon in Konnektive Merchant Accounts <a href="#form-code-loginandpaywithamazon-step3-setupamazoninkonnektivemerchantaccounts" id="form-code-loginandpaywithamazon-step3-setupamazoninkonnektivemerchantaccounts"></a>

Open the **Merchant** tab and create a new **MID**. *Select* **"Amazon"** in the gateway type drop-down.

* The system will require your clientId, clientSecret, MWSAuthToken and SellerId from steps 1 and 2. Enter those credentials and save the new mid.

### Step 4: Edit Landing Page to use Amazon Login <a href="#form-code-loginandpaywithamazon-step4-editlandingpagetouseamazonlogin" id="form-code-loginandpaywithamazon-step4-editlandingpagetouseamazonlogin"></a>

* Go to **CRM | Campaigns** | edit to view your Landing page configuration. Find your landing page and click **"Edit"** to edit the Lander.
* This will take you to your landing page editor, where you can edit each page in your funnel. Click the **"Checkout"** tab to edit your checkout page.
* You'll need to select your **Amazon MID** setup in Step 3 in the select box labeled: **"Amazon Account"**. Select your Account and then click **"Update"**.

### Step 5: Download and install Code Package <a href="#form-code-loginandpaywithamazon-step5-downloadandinstallcodepackage" id="form-code-loginandpaywithamazon-step5-downloadandinstallcodepackage"></a>

* Congratulations! Amazon is now enabled. If you have not installed your landing page code, do so now. If you code is already installed you will need to update your config.php file (using the auto-update feature) and add the following lines of code to your checkout.php page (You can also download these from the Landing Page editor):

<figure><img src="/files/VrYa8FZRKcwXXEJqEzcx" alt=""><figcaption></figcaption></figure>


---

# 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/amazon-pay-api-integration/form-code-login-and-pay-with-amazon.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.
