# Magento 2

Integrating your Magento2 store with Casheer Pay services allows you to accept payments on your Magento2 store with simple installation. You can accept payments via Debit & Credit Card, & ATM Cards. The plugin offers seamless integration, allowing the customer to pay on your website with a high secure PCI compliance hosted environment and work across all browsers and ensures compatibility with the below versions of Magento2.

### **Compatibilities and Dependencies**

* Compatibility with Open Source Community Edition : 2.0.x, 2.1.x, 2.2.x, 2.3.x, 2.4.x.

{% hint style="warning" %}
**Note:** This module works on only 2x versions of Magento.
{% endhint %}

### Installation

{% hint style="danger" %}
**Caution:** Always keep backup of your website including databases, before installing a new module.
{% endhint %}

**Step 1:** Uploading files to the server

1. Extract the module zip archive.&#x20;
2. Login to web server via FTP client and go to your magento directory.&#x20;
3. Upload extracted file in `magento_root/app/code`

{% hint style="warning" %}
Note: If you have already a code folder in your magento directory you can skip the above point 3.
{% endhint %}

![](https://content.gitbook.com/content/dYzDscDaXXb0dNaNnrJb/blobs/agC4qMObfPoiWqvKG0uU/01.png)

**Step 2:** Enable extension

1. Login to the server via ssh client&#x20;
2. Go to magento root directory
3. Run the following commands:&#x20;

{% tabs %}
{% tab title="Commands" %}

```
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy (If it does not work please try "php bin/magento setup:static-content:deploy -f")  
php bin/magento cache:flush
```

{% endtab %}

{% tab title="Description" %}

```
To install the extension
To compile the code
To deploy static view files
To flush cache
```

{% endtab %}
{% endtabs %}

**Step 3:** Go to Stores >> Configuration >> Sales >> Payment Methods and enabled Casheer Pay

![](https://content.gitbook.com/content/dYzDscDaXXb0dNaNnrJb/blobs/lCanz4w8ByOLp0LMCZjt/02.png)

**Step 4:** Configure Your Keys & Credentials and add payment methods.

{% hint style="warning" %}
Please note: In some cases require to flush cache at the store backend by Navigate to the **Admin Panel**> **System**> **Cache Management**:
{% endhint %}

### Support <a href="#support" id="support"></a>

If you have any questions that are beyond the scope of this help doc, please feel free email us at <pay.support@oneglobal.com>


---

# 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://kwpaydocs.casheer.com/modules-setup-guides/magento-2.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.
