# PayPal Addon

The integration of this Addon will give your eCommerce portal with a payment option for the Customers to check out their shopping cart with  Pay Payment Gateway.

<mark style="color:blue;">**Setup an API (Step By Step)**</mark>

For setting up the API, you need to execute the following steps:

* Installing an extension&#x20;
* Run the application&#x20;
* Make the build

**Step 1 : Installing an extension**

&#x20;These are the steps that need to be executed for installation of the extension.

Usually spurcommerce comes packed in a zip, whose name ends in "<mark style="color:green;">**paypal-addOn.zip**</mark>".

Extract the zip file, open api folder and open addon folder within that and copy the content of addon folder into the specified path.

&#x20;                               **Path - \<PROJECT\_ROOT>/add-ons/Payment/**

**Step 2 : Run the application**&#x20;

After you have completed the installation of the above mentioned steps, you can run the application and also view the changes.

```
$ npm start serve 
```

Once you execute the above command, add-on file will get integrated into the backend API.

**Step 3 : Make the build**&#x20;

These are the steps that need to be followed for generating the build.

```
$ npm run build
```

Then latest built files can be deployed into the server.


---

# 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://docs.spurtcommerce.com/addons/catalogue-related-addons/paypal-addon.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.
