# INTRODUCTION

Foloosi Payment Gateway Provides a Payment solution for accepting Business payments via credit card, debit card, apple pay and samsung pay.

### Table Of Contents

* [`Features`](https://docs.foloosi.com/features)
* [`Create Api Credentials`](https://docs.foloosi.com/get-started/create-api-credentials)
* [`SDK Integrations`](https://docs.foloosi.com/mobile-sdk-integrations/android-sdk)
* [`Client Side Integrations`](https://docs.foloosi.com/client-side-integrations/javascript-integration)
* [`Ecommerce Direct Integrations`](https://docs.foloosi.com/ecommerce-integrations/woocommerce)
* [`Subscriptions`](https://docs.foloosi.com/subscriptions/foloosi-subscription-for-woocommerce)
* [`WebHooks`](https://docs.foloosi.com/webhooks)
* [`Test Cards`](https://docs.foloosi.com/card-details/test-cards)

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.


# FEATURES

Features that Foloosi Offers to help you build a WorldClass Payment experience !

### [Website Payment Integration](https://docs.foloosi.com/client-side-integrations/javascript-integration)

Our Client Side Direct Integration of your website with Foloosi's Payment API lets you receive payments instantly against purchase of your products.

### [Mobile SDK Integration](https://docs.foloosi.com/mobile-sdk-integrations/android-sdk)

You can integrate Foloosi's sdk and receive payments for your products on your mobile applications.

### [Saved Cards](https://docs.foloosi.com/payment-methods/saved-card-payment-method) <a href="#saved-cards" id="saved-cards"></a>

You can save customer card details in the form of one-time tokens with Foloosi. On a repeat visit, the customers will be able to pay directly just by entering the CVV of the card.

### [Subscriptions](https://docs.foloosi.com/subscriptions/api-subscription) <a href="#subscriptions" id="subscriptions"></a>

Use our Subscription API's that allows you to manage recurring payments for products and grants you periodically scheduled income.

### [<mark style="color:blue;">Checkout Logo and Color Customization</mark>](https://docs.foloosi.com/get-started/checkout-page-customization) <a href="#checkout-logo-and-colour-customisation" id="checkout-logo-and-colour-customisation"></a>

Customize the Checkout Page to suit your Style. It allows you to add your company's logo and modify the look of your Payment Checkout Page.

### <mark style="color:blue;">International Payments</mark>

Foloosi's Payment Gateway fecilates Payment Collection in more than 170 foreign currencies. This support is provided on all our channels like Api, Payment Links, Product Links and Invoices.

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.


# Create Api Credentials

Follow these steps to create a merchant key and a secret key

### Step 1 - Login to [`Foloosi Panel`](https://foloosi.com/)

<div align="center"><figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2F7P4FmRDO4bH1rnAccltn%2Flogin%20image.png?alt=media&amp;token=c43c363d-10e5-4992-80ca-1f7ec3e79ec2" alt=""><figcaption></figcaption></figure></div>

### Step 2 - Generate Api keys - [click here](https://foloosi.com/merchant/api-settings)

1. Select Api mode.
2. Enter the Application Name.
3. Enter the Application Domain Name.
4. Enter the Application Callback Url.
5. Click on submit to update settings.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FlM4esYaqz5WVppf2xw69%2FapiSetting.png?alt=media&amp;token=dc115e12-4b0c-4090-94a0-ed6cafcb6394" alt=""><figcaption></figcaption></figure>

**NOTE**

* For Testing-flow shift Api mode to *test* and click on *submit,* then use the *test keys.*
* For Production-flow shift Api mode to *live* and click on *submit,* then use the *live keys.*
* Live transaction supports only when your api mode is set to *live* and your api keys are set to *live keys.*

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.


# Checkout Page Customization

Personalize your payment Gateway's Checkout Page the way you like it !

The section is to guide you in using our Customization Features !<br>

#### Step 1&#x20;

Login to [Foloosi panel](https://foloosi.com/merchant/login).

#### Step 2

[Click](https://foloosi.com/merchant/payment-settings) to open the *paypage settings* in Foloosi panel under developer settings.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2Fpk1QUy9B1yAJsUpozIDd%2Fapisetting.png?alt=media&amp;token=7e25b33b-bec5-4e41-b983-ea646cc4ecd1" alt=""><figcaption></figcaption></figure>

#### Step 3

Manually enter the color code in the input fields and Click on *Choose File* to upload Logo.

#### Step 4

The Right Side of the Panel gives you the Preview of your Payment Page as you edit !  When done, Click on *Submit* to Apply these Changes on your CheckOut Page !

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.


# Popup Payment Method

The payment page appears as a Pop-Up here that is embedded on the checkout page itself(\<iframe>). Once the Payment is completed an acknowledgement is sent on "foloosi handler".

**Note -** This supports only Credit/Debit Card payments.

### Sample Payment Page

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FGtkbBE6IgBS2yIuBv5wV%2Fpopup%20screen.png?alt=media&amp;token=83e6cd65-60e0-4bf9-9d7f-de97dff1948a" alt=""><figcaption></figcaption></figure>

**NOTE**

Supports 170 World Currencies

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Hosting Payment Method

Here the Payment Page is redirected to foloosi's Payment Page. Once a payment is completed a success/failure response is posted on "site\_return\_url".

Note - This supports Card payment, Apple Pay and Samsung Pay.

### Sample Payment Page

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FTLH8PkbJ7jx3beRxoQCT%2Fapple%20payscreen.png?alt=media&amp;token=47a270e6-d8a4-4fb7-882c-d0ff2b72991e" alt=""><figcaption></figcaption></figure>

**NOTE**

Supports 170 World Currencies

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Saved Card Payment Method

We work with card networks and automatically attempt to update saved card details whenever a customer gets a new card !

This Feature is available for all types of integration methods. But before integration kindly resolve your queries with foloosi's support team.

Sample Payment Page

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FY9IMlwIEqWWiNUq2y4bG%2Fsaved-card.png?alt=media&amp;token=13106cb0-afae-4b5e-8d53-6acfd2abc28d" alt=""><figcaption></figcaption></figure>

### Sample Integration Code

<pre><code>&#x3C;script type="text/javascript" src="https://www.foloosi.com/js/foloosipay.v2.js">&#x3C;/script>
&#x3C;script>
        // post data for create order id
        data = {
          transaction_amount : YOUR_TRANSACTION_AMOUNT,
          currency : YOUR_CURRENCY_CODE,
          customer_unique_identifier : 'Unique value',/** MANDATORY FIELD -Customer Unique Reference value should be email/mobile no/uniqueCustomer id from your DB*/
          customer_name : OPTIONAL ,/*note : auto render in payment popup*/
          customer_email : OPTIONAL, /*note : auto render in payment popup*/
          customer_mobile : OPTIONAL ,/*note : auto render in payment popup*/
          customer_address : OPTIONAL ,/*note : minimize form fields in card detail page*/
          customer_city : OPTIONAL /*note : minimize form fields in card detail page*/
<strong>        }
</strong>	let fetchRes = fetch(
            "https://api.foloosi.com/aggregatorapi/web/initialize-setup",{
            method: 'POST',
            headers: {
              'Content-Type': 'application/json',
              'merchant_key': 'YOUR_MERCHANT_KEY' /** get the merchant key from foloosi panel*/
            },
            body: JSON.stringify(data)
         });

	fetchRes.then(res =>
	  res.json()).then(d => {
  	    console.log(d.data);
            var options = {
                "reference_token" : d.data.reference_token, //which is get from step2
                "merchant_key" : "YOUR_MERCHANT_KEY",/** get the merchant key from foloosi panel*/
            }
            var fp1 = new Foloosipay(options);
            fp1.open();
        })
        foloosiHandler(response, function (e) {
          if(e.data.status == 'success'){
            //responde success code
            //console.log(e.data.status);
            //console.log(e.data.data.transaction_no);
          }
          if(e.data.status == 'error'){
            //responde success code
            //console.log(e.data.status);
            //console.log(e.data.data.payment_status);
          }
          if(e.data.status == 'closed'){
            //Payment Popup Closed
            //console.log(e.data);
          }
        });
&#x3C;/script>
</code></pre>

#### Note

*customer\_unique\_identifier* must be Mandatorily Passed and Customer Unique Reference value must be email or mobile number or uniqueCustomer id.

**NOTE**

Supports 170 World Currencies

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Javascript Integration

These Integrations are necessary to accept payments via Debit/Credit Cards, Apple Pay and Samsung Pay.

### Basic Requirements

* Foloosi Merchant Account - [click here to sign up ](https://foloosi.com/business-signup).
* Create Api Credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

### Note

Supports 170 World Currencies

Apple pay will be available only when API mode is in live.

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

####


# Create Payment Token

Let's see how to create a payment reference token

### Initialize Api

## Get Reference Token

<mark style="color:green;">`POST`</mark> `https://api.foloosi.com/aggregatorapi/web/initialize-setup`

#### Headers

| Name                                          | Type   | Description                              |
| --------------------------------------------- | ------ | ---------------------------------------- |
| secret\_key<mark style="color:red;">\*</mark> | String | Your Merchant Key get from Foloosi Panel |

#### Request Body

| Name                                                  | Type   | Description                    |
| ----------------------------------------------------- | ------ | ------------------------------ |
| currency<mark style="color:red;">\*</mark>            | String |                                |
| transaction\_amount<mark style="color:red;">\*</mark> | Double |                                |
| customer\_name                                        | String |                                |
| site\_return\_url                                     | String |                                |
| customer\_unique\_identifier                          | String |                                |
| billing\_country                                      | String |                                |
| billing\_postal\_code                                 | String |                                |
| billing\_state                                        | String |                                |
| customer\_city                                        | String |                                |
| customer\_address                                     | String |                                |
| customer\_mobile                                      | String |                                |
| customer\_email                                       | String |                                |
| description                                           | String | Product or order information   |
| optional1                                             | String | You can pass additional fields |
| optional2                                             | String | You can pass additional fields |
| optional3                                             | String | You can pass additional fields |
| partner\_unique\_reference                            | String | Partner Unique Id              |

{% tabs %}
{% tab title="200: OK Success Response" %}

```javascript
{
 "message": "Application setup successfully",
 "data": {
   "reference_token":
   "U0sjdGVzdF8kMnkkMTAkM21LRi0xZGliVDhldTV4NHlZSm9tZXZobnZxWTNEVnZmay1MdHNndTNFenNBTDU0clhWYkccVE4jRkxTQVBJNWM3Njk2ZDkwOWIzNxxSVCMkMnkkMTAkQXZ4ay9wdjlpTFlYLzRSZ2FjSkxpZWhHb2o0U0wvTFpZNXAyVjRGOVFycWNQZ2lHQ3VEZ08="
  }
 }
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Header response" %}

```javascript
{
    "message": "Invalid secret key"
}
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Api mode" %}

```javascript
{
    "message": "Invalid Integration settings! Kindly check both foloosi merchant application settings and your integration keys"
}
```

{% endtab %}

{% tab title="404: Not Found Invalid request type" %}

```javascript
{
    "message": "No routes found"
}
```

{% endtab %}
{% endtabs %}

### Api Specification

* Request call must be on **POST.**
* This Api will be used to confirm the feature you are about to Use.
* For **Hosting Payment** Method, You need to pass your callback URL in **site\_return*****\_*****url**.
* For **Saved Card Payment** Method, You need to pass your customer unique details like email,etc. to **customer\_unique\_identifier**.<br>

#### Post Request Body

<table><thead><tr><th width="179">Request Body</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>site_return_url</td><td><ol><li>If you are using hosting payment, this is Mandatory.</li><li>Otherwise, this is an optional field.</li><li>It must be a string.</li><li>Get's the payment response after payment completion.</li><li><a href="https://docs.foloosi.com/payment-methods/hosting-payment-method">click here</a> to learn about <em>Hosting Payment Page.</em></li></ol></td><td></td></tr><tr><td>customer_unique_identifier</td><td><ol><li>This is mandatory when you are using saved card payment.</li><li>This data must be Unique like email id,customer id, etc.,</li></ol></td><td></td></tr><tr><td>partner_unique_reference</td><td><ol><li>This is mandatory when the transaction is based on partner flow.</li></ol></td><td></td></tr></tbody></table>

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Payment Widget Initialization

Payment is always handled on foloosi's payment screen !

### Intialize the Script&#x20;

```
Load the script inside the html tag
<script type="text/javascript" src="https://www.foloosi.com/js/foloosipay.v2.js"></script>
```

#### Load the Payment Module

```javascript
var options = {
    "reference_token" : "REFERENCE_TOKEN", //which is get from payment initialize
    "merchant_key" : "YOUR_MERCHANT_KEY", // get the merchant key from foloosi panel
    "redirect" : false //for accept payment from hosting site, make it as true
}
var fp1 = new Foloosipay(options);

```

#### Open up Payment Screen

```javascript
// Just call the below function
fp1.open();
```

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Payment Response Handling

Let's see how to handle payment response !

Foloosi payments has two types of responses,

* *Foloosi handler* for Popup Payment method.
* *Request post object* for Hosting Payment method.

#### a. Foloosi handler

```
/* Foloosi handler for payment response handling
 * Add the below code inside the script tag to handle payment response
*/
    foloosiHandler(response, function (e) {
      if(e.data.status == 'success'){
        //responde success code
        //console.log(e.data.status);
        //console.log(e.data.data.transaction_no);
      }
      if(e.data.status == 'error'){
        //responde success code
        //console.log(e.data.status);
        //console.log(e.data.data.payment_status);
      }
      if(e.data.status == 'closed'){
        //Payment Popup Closed
        //console.log(e.data);
      }
    };

```

#### b. Redirects to site\_return\_url with post data&#x20;

```
//sample post response
{
    "status": "success",
    "data": {
        "amount": 12.00,
        "currency": "AED",
        "transaction_no": "FLSXXXXXXXXXXABC",
        "optional1": "additional_field",
        "optional2": "additional_field",
        "optional3": "additional_field",
    }
}
```

### &#x20;Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Additional Setup

This section Get's transaction detail and transaction list.

**List of additional field setup:**

* [**Get Transaction Details**](#to-get-the-transaction-details)
* [**Get Transaction List**](#to-get-the-transaction-list)
* [**Skip  Customer Signup**](#skip-customer-signup)

#### **To get the Transaction Details**

For Transaction Details, use the below *Get request* to get the transaction details.&#x20;

```javascript
GET API LINK: https://api.foloosi.com/v1/api/transaction-detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE ON API v1:
{
    "message": "Transaction detail are",
    "data": {
        "transaction_no": "FLSXXXXXXXXXXXXXX",
        "payment_transaction_id": "1234567-819201112",
        "receipt": null,
        "request_currency": "AED",
        "request_amount": 18,
        "customer_currency": "AED",
        "customer_amount": 18,
        "merchant_currency": null,
        "merchant_amount": null,
        "status": "pending",
        "created": "2022-11-01T10:21:04+00:00",
        "optional1": "order-id-123",\\optional fields passed on initialize api
        "optional2": "order-reference",\\optional fields passed on initialize api
        "optional3": "",\\optional fields passed on initialize api
        "subscription_no": ""
    }
}
```

#### Note

If you want to fetch customer details and customer card details along with transaction details Ap&#x69;**,** change the above API from v1 to v2.&#x20;

```javascript
GET API LINK: https://api.foloosi.com/v2/api/transaction-detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE ON API v2
{
    "message": "Transaction detail are",
    "data": {
        "transaction_no": "FLSXXXXXXXXXXXXXX",
        "receipt": null,
        "request_currency": "AED",
        "request_amount": 18,
        "customer_currency": "AED",
        "customer_amount": 18,
        "merchant_currency": "AED",
        "merchant_amount": 18,
        "status": "pending",
        "payment_failed_reason": null,
        "created": "2022-11-01T10:21:04+00:00",
        "optional1": "1757",\\optional fields passed on initialize api
        "optional2": "https://woo.foloosi.in",\\optional fields passed on initialize api
        "optional3": "",\\optional fields passed on initialize api
        "subscription_no": "",
        "customer": {
            "name": "FOLOOSI",
            "email": "tech@foloosi.com",
            "phone_number": "+971531234234"
        },
        "card": {
            "pan": "54321******1234",
            "card_type": "CREDIT",
            "bin_card": "MASTERCARD",
            "issuer_name": "MASTERCARD",
            "issuer_country": "UNITED STATES",
            "card_expiry": "2212",
            "holder_name": "FOLOOSI",
            "card_reference": "",
            "card_id": 123456,
            "card_bin": "12345",
            "bin_bank": "MASTERCARD - MEMBER TEST FACILITY",
            "bin_type": "CREDIT",
            "bin_level": "MIXED BIN",
            "bin_country_code": "US",
            "bin_website": "https://www.mastercard.us",
            "bin_phone": "1-800-307-7309",
            "bin_valid": true,
            "card_issuer": "MASTERCARD"
        }
    }
}
```

#### **To get the Transaction List**

For Transaction List details, use the below Get request to get the transaction specific to merchant key.&#x20;

{% code lineNumbers="true" %}

```javascript
  GET API LINK:
  https://api.foloosi.com/v1/api/transaction-list

  HEADERS:
  secret_key : YOUR_SECRET_KEY
  
  SAMPLE RESPONSE:
  {
    "message": "Merchant sales report are",
    "data": {
        "transactions": [
            {
                "transaction_no": "FLSXXXXXXXXXXXXXXX1",
                "send_amount": 1.35,
                "sender_currency": "AED",
                "tip_amount": 0,
                "receive_currency": "AED",
                "special_offer_applied": "No",
                "sender_amount": 1.35,
                "receive_amount": 1.35,
                "offer_amount": 0,
                "vat_amount": 0.05,
                "foloosi_fee": 0.04,
                "transaction_fixed_fee": 1,
                "customer_foloosi_fee": 0,
                "status": "success",
                "created": "2022-10-18T07:52:38+00:00",
                "sender": {
                    "name": "Foloosi",
                    "email": "dev@foloosi.com",
                    "business_name": null,
                    "phone_number": "9870162534"
                }
            },
            {
                "transaction_no": "FLSXXXXXXXXXXXXXXXX2",
                "send_amount": 385.66,
                "sender_currency": "AED",
                "tip_amount": 0,
                "receive_currency": "AED",
                "special_offer_applied": "No",
                "sender_amount": 385.66,
                "receive_amount": 385.66,
                "offer_amount": 0,
                "vat_amount": 0.69,
                "foloosi_fee": 12.73,
                "transaction_fixed_fee": 1,
                "customer_foloosi_fee": 0,
                "status": "success",
                "created": "2022-10-18T07:35:41+00:00",
                "sender": {
                    "name": "foloosi tech",
                    "email": "dev@foloosi.com",
                    "business_name": null,
                    "phone_number": "987654321"
                }
            }
    ]}
}
```

{% endcode %}

#### Skip Customer signup

This section shows you how to skip signup page on payment scree&#x6E;**.**

**Steps to be followed :**

* Add post customer details in *initialize Api* to skip the page below.
* If you pass amount and currency data alone, You will be navigated to the signup page for getting customer details as shown below.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FxVWqSqhmCyVbRh8nOfbp%2FsignupPage.png?alt=media&amp;token=2fff4683-407e-4b71-a664-5cc8071264d8" alt=""><figcaption><p>guest signup</p></figcaption></figure>

* If you pass customer details in *initialize Api*, it will skip the page above and navigate to *Payment Screen* directly as shown below.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FduRXsytXRlPtfQoFCzCs%2Fapple%20payscreen.png?alt=media&amp;token=fc81bf5e-6115-4e8c-9ba7-aa4147df50f1" alt=""><figcaption><p>payment screen</p></figcaption></figure>

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Sample Integrations

## Sample Integrations

### [Popup payment](https://docs.foloosi.com/payment-methods/popup-payment-method) method sample code

Just paste the code below inside the body tag and enter your valid data to start using Popup Payment Method

<pre class="language-javascript" data-line-numbers><code class="lang-javascript">&#x3C;script type="text/javascript" src="https://www.foloosi.com/js/foloosipay.v2.js">&#x3C;/script>
&#x3C;script>
        // post data for create order id
        data = {
          transaction_amount : YOUR_TRANSACTION_AMOUNT,
          currency : YOUR_CURRENCY_CODE,
          customer_name : OPTIONAL ,/*note : auto render in payment popup*/
          customer_email : OPTIONAL, /*note : auto render in payment popup*/
          customer_mobile : OPTIONAL ,/*note : auto render in payment popup*/
          customer_address : OPTIONAL ,/*note : minimize form fields in card detail page*/
          customer_city : OPTIONAL /*note : minimize form fields in card detail page*/
          description: OPTIONAL ,/*note : product or order information*/
          optional1: ADDITIONAL FIELD/*note : you can pass additional fields in it. (product or order information)*/
          optional2: ADDITIONAL FIELD/*note : you can pass additional fields in it. (product or order information)*/
          optional3: ADDITIONAL FIELD/*note : you can pass additional fields in it. (product or order information)*/
<strong>        }
</strong>	let fetchRes = fetch(
            "https://api.foloosi.com/aggregatorapi/web/initialize-setup",{
            method: 'POST',
            headers: {
              'Content-Type': 'application/json',
              'merchant_key': 'YOUR_MERCHANT_KEY' /** get the merchant key from foloosi panel*/
            },
            body: JSON.stringify(data)
         });

	fetchRes.then(res =>
	  res.json()).then(d => {
  	    console.log(d.data);
            var options = {
                "reference_token" : d.data.reference_token, //which is get from step2
                "merchant_key" : "YOUR_MERCHANT_KEY",/** get the merchant key from foloosi panel*/
            }
            var fp1 = new Foloosipay(options);
            fp1.open();
        })
        foloosiHandler(response, function (e) {
          if(e.data.status == 'success'){
            //responde success code
            //console.log(e.data.status);
            //console.log(e.data.data.transaction_no);
          }
          if(e.data.status == 'error'){
            //responde success code
            //console.log(e.data.status);
            //console.log(e.data.data.payment_status);
          }
          if(e.data.status == 'closed'){
            //Payment Popup Closed
            //console.log(e.data);
          }
        });
&#x3C;/script>
</code></pre>

### [Hosting payment](https://docs.foloosi.com/payment-methods/hosting-payment-method) method sample code

Just paste the code below inside the body tag and enter your valid data to start using Redirect Payment Method

{% code lineNumbers="true" %}

```javascript
<script type="text/javascript" src="https://www.foloosi.com/js/foloosipay.v2.js"></script>
<script>
    //post data for create order id
    data = {
      transaction_amount : YOUR_TRANSACTION_AMOUNT,
      currency : YOUR_CURRENCY_CODE,
      customer_name : OPTIONAL ,/*note : auto render in payment popup*/
      customer_email : OPTIONAL ,/*note : auto render in payment popup*/
      customer_mobile : OPTIONAL ,/*note : auto render in payment popup*/
      customer_address : OPTIONAL ,/*note : minimize form fields in card detail page*/
      customer_city : OPTIONAL ,/*note : minimize form fields in card detail page*/
      description: OPTIONAL ,/*note : product or order information*/
      site_return_url: YOUR_REDIRECTION_URL /*note : you need to pass your redirect url */
      optional1: ADDITIONAL FIELD/*note : you can pass additional fields in it. (product or order information)*/
      optional2: ADDITIONAL FIELD/*note : you can pass additional fields in it. (product or order information)*/
      optional3: ADDITIONAL FIELD/*note : you can pass additional fields in it. (product or order information)*/
    }
    let fetchRes = fetch(
        "https://api.foloosi.com/aggregatorapi/web/initialize-setup",{
        method: 'POST',
        headers: {
          'Content-Type': 'application/json',
          'merchant_key': 'YOUR_MERCHANT_KEY' /** get the merchant key from foloosi panel*/
        },
        body: JSON.stringify(data)
      });
		
      fetchRes.then(res =>
            res.json()).then(d => {
		console.log(d.data);
                  var options = {
                      "reference_token" : d.data.reference_token, //which is get from step2
                      "merchant_key" : "YOUR_MERCHANT_KEY",/** get the merchant key from foloosi panel*/
                      "redirect" : true
                  }
          var fp1 = new Foloosipay(options);
          fp1.open();
        })
</script>
```

{% endcode %}

**Note,**

**Apple Pay and Samsung pay options are available only for Hosting Payment Method.**&#x20;

&#x20;  **Site must be https with proper SSL certificate.**

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# PHP Integration

These Integrations are necessary to accept payments via Debit/Credit Cards, Apple Pay and Samsung Pay.

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

### Note

Supports 170 World Currencies.

Apple pay will be available only when API mode is in live.


# Create Payment Token

Let's see how to create a payment reference token

### Initialize Api

## Get Reference Token

<mark style="color:green;">`POST`</mark> `https://api.foloosi.com/aggregatorapi/web/initialize-setup`

#### Headers

| Name                                          | Type   | Description                              |
| --------------------------------------------- | ------ | ---------------------------------------- |
| secret\_key<mark style="color:red;">\*</mark> | String | Your Merchant Key get from Foloosi Panel |

#### Request Body

| Name                                                  | Type   | Description                    |
| ----------------------------------------------------- | ------ | ------------------------------ |
| currency<mark style="color:red;">\*</mark>            | String |                                |
| transaction\_amount<mark style="color:red;">\*</mark> | Double |                                |
| customer\_name                                        | String |                                |
| site\_return\_url                                     | String |                                |
| customer\_unique\_identifier                          | String |                                |
| billing\_country                                      | String |                                |
| billing\_postal\_code                                 | String |                                |
| billing\_state                                        | String |                                |
| customer\_city                                        | String |                                |
| customer\_address                                     | String |                                |
| customer\_mobile                                      | String |                                |
| customer\_email                                       | String |                                |
| description                                           | String | Product or order information   |
| optional1                                             | String | You can pass additional fields |
| optional2                                             | String | You can pass additional fields |
| optional3                                             | String | You can pass additional fields |
| partner\_unique\_reference                            | String | partner unique ID              |

{% tabs %}
{% tab title="200: OK Success Response" %}

```javascript
{
 "message": "Application setup successfully",
 "data": {
   "reference_token":
   "U0sjdGVzdF8kMnkkMTAkM21LRi0xZGliVDhldTV4NHlZSm9tZXZobnZxWTNEVnZmay1MdHNndTNFenNBTDU0clhWYkccVE4jRkxTQVBJNWM3Njk2ZDkwOWIzNxxSVCMkMnkkMTAkQXZ4ay9wdjlpTFlYLzRSZ2FjSkxpZWhHb2o0U0wvTFpZNXAyVjRGOVFycWNQZ2lHQ3VEZ08="
  }
 }
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Header response" %}

```javascript
{
    "message": "Invalid secret key"
}
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Api mode" %}

```javascript
{
    "message": "Invalid Integration settings! Kindly check both foloosi merchant application settings and your integration keys"
}
```

{% endtab %}

{% tab title="404: Not Found Invalid request type" %}

```javascript
{
    "message": "No routes found"
}
```

{% endtab %}
{% endtabs %}

### Api Specification

* Request call must be on  **POST.**
* This Api will be used to confirm the feature you are about to Use.
* For **Hosting Payment** Method, You need to pass your callback URL in **site\_return*****\_*****url**.
* For **Saved Card Payment** Method, You need to pass your customer unique details like email,etc. to **customer\_unique\_identifier**.

#### Post Request Body

<table><thead><tr><th width="179">Request Body</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>site_return_url</td><td><ol><li>If you are using hosting payment, this is mandatory.</li><li>Otherwise It is optional field.</li><li>It must be a string.</li><li>Get the payment response after payment complete.</li><li><a href="https://docs.foloosi.com/payment-methods/hosting-payment-method">click here</a> to learn about Hosting Payment Page.</li></ol></td><td></td></tr><tr><td>customer_unique_identifier</td><td><ol><li>This is mandatory when you are using saved card payment.</li><li>This data must be Unique like email id,customer id, etc.,</li></ol></td><td></td></tr><tr><td>partner_unique_reference</td><td><ol><li>This is mandatory when transaction is based on partner flow.</li></ol></td><td></td></tr></tbody></table>

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Payment Widget Initialization

Payment is always handled on foloosi's payment screen !

### Intialize the Script&#x20;

```
Load the script inside the html tag
<script type="text/javascript" src="https://www.foloosi.com/js/foloosipay.v2.js"></script>
```

#### Load the Payment Module

```javascript
var options = {
    "reference_token" : "REFERENCE_TOKEN", //which is get from payment initialize
    "merchant_key" : "YOUR_MERCHANT_KEY", // get the merchant key from foloosi panel
    "redirect" : false //for accept payment from hosting site, make it as true
}
var fp1 = new Foloosipay(options);

```

#### Open up Payment Screen

```javascript
// Just call the below function
fp1.open();
```

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Payment Response Handling

Let's see how to handle payment response !

Foloosi payments has two types of responses,

* *Foloosi handler* for Popup Payment method.
* *Request post object* for Hosting Payment method.

#### a. Foloosi handler

```
/* Foloosi handler for payment response handling
 * Add the below code inside the script tag to handle payment response
*/
    foloosiHandler(response, function (e) {
      if(e.data.status == 'success'){
        //responde success code
        //console.log(e.data.status);
        //console.log(e.data.data.transaction_no);
      }
      if(e.data.status == 'error'){
        //responde success code
        //console.log(e.data.status);
        //console.log(e.data.data.payment_status);
      }
      if(e.data.status == 'closed'){
        //Payment Popup Closed
        //console.log(e.data);
      }
    };

```

#### b. Redirects to site\_return\_url with post data&#x20;

```
//sample post response
{
    "status": "success",
    "data": {
        "amount": 12.00,
        "currency": "AED",
        "transaction_no": "FLSXXXXXXXXXXABC",
        "optional1": "additional_field",
        "optional2": "additional_field",
        "optional3": "additional_field",
    }
}
```

### &#x20;Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Additional Setup

This section Get's transaction detail and transaction list.

**List of additional fields setup:**

* [**Get Transaction Details**](#to-get-the-transaction-details)
* [**Get Transaction List**](#to-get-the-transaction-list)
* [**Skip  Customer signup**](#skip-customer-signup)

#### **To get the Transaction Details**

For Transaction Details, use the below *Get request* to get the transaction details.&#x20;

```javascript
GET API LINK: https://api.foloosi.com/v1/api/transaction-detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE ON API v1:
{
    "message": "Transaction detail are",
    "data": {
        "transaction_no": "FLSXXXXXXXXXXXXXX",
        "payment_transaction_id": "1234567-819201112",
        "receipt": null,
        "request_currency": "AED",
        "request_amount": 18,
        "customer_currency": "AED",
        "customer_amount": 18,
        "merchant_currency": null,
        "merchant_amount": null,
        "status": "pending",
        "created": "2022-11-01T10:21:04+00:00",
        "optional1": "order-id-123",\\optional fields passed on initialize api
        "optional2": "order-reference",\\optional fields passed on initialize api
        "optional3": "",\\optional fields passed on initialize api
        "subscription_no": ""
    }
}
```

#### Note

If you want to fetch customer detail and customer card details along with transaction details ap&#x69;**,** change the above API from v1 to v2.&#x20;

```javascript
GET API LINK: https://api.foloosi.com/v2/api/transaction-detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE ON API v2
{
    "message": "Transaction detail are",
    "data": {
        "transaction_no": "FLSXXXXXXXXXXXXXX",
        "receipt": null,
        "request_currency": "AED",
        "request_amount": 18,
        "customer_currency": "AED",
        "customer_amount": 18,
        "merchant_currency": "AED",
        "merchant_amount": 18,
        "status": "pending",
        "payment_failed_reason": null,
        "created": "2022-11-01T10:21:04+00:00",
        "optional1": "1757",\\optional fields passed on initialize api
        "optional2": "https://woo.foloosi.in",\\optional fields passed on initialize api
        "optional3": "",\\optional fields passed on initialize api
        "subscription_no": "",
        "customer": {
            "name": "FOLOOSI",
            "email": "tech@foloosi.com",
            "phone_number": "+971531234234"
        },
        "card": {
            "pan": "54321******1234",
            "card_type": "CREDIT",
            "bin_card": "MASTERCARD",
            "issuer_name": "MASTERCARD",
            "issuer_country": "UNITED STATES",
            "card_expiry": "2212",
            "holder_name": "FOLOOSI",
            "card_reference": "",
            "card_id": 123456,
            "card_bin": "12345",
            "bin_bank": "MASTERCARD - MEMBER TEST FACILITY",
            "bin_type": "CREDIT",
            "bin_level": "MIXED BIN",
            "bin_country_code": "US",
            "bin_website": "https://www.mastercard.us",
            "bin_phone": "1-800-307-7309",
            "bin_valid": true,
            "card_issuer": "MASTERCARD"
        }
    }
}
```

#### **To get the Transaction List**

For Transaction List details, use the below Get request to get the transaction specific to merchant key.&#x20;

{% code lineNumbers="true" %}

```javascript
  GET API LINK:
  https://api.foloosi.com/v1/api/transaction-list

  HEADERS:
  secret_key : YOUR_SECRET_KEY
  
  SAMPLE RESPONSE:
  {
    "message": "Merchant sales report are",
    "data": {
        "transactions": [
            {
                "transaction_no": "FLSXXXXXXXXXXXXXXX1",
                "send_amount": 1.35,
                "sender_currency": "AED",
                "tip_amount": 0,
                "receive_currency": "AED",
                "special_offer_applied": "No",
                "sender_amount": 1.35,
                "receive_amount": 1.35,
                "offer_amount": 0,
                "vat_amount": 0.05,
                "foloosi_fee": 0.04,
                "transaction_fixed_fee": 1,
                "customer_foloosi_fee": 0,
                "status": "success",
                "created": "2022-10-18T07:52:38+00:00",
                "sender": {
                    "name": "Foloosi",
                    "email": "dev@foloosi.com",
                    "business_name": null,
                    "phone_number": "9870162534"
                }
            },
            {
                "transaction_no": "FLSXXXXXXXXXXXXXXXX2",
                "send_amount": 385.66,
                "sender_currency": "AED",
                "tip_amount": 0,
                "receive_currency": "AED",
                "special_offer_applied": "No",
                "sender_amount": 385.66,
                "receive_amount": 385.66,
                "offer_amount": 0,
                "vat_amount": 0.69,
                "foloosi_fee": 12.73,
                "transaction_fixed_fee": 1,
                "customer_foloosi_fee": 0,
                "status": "success",
                "created": "2022-10-18T07:35:41+00:00",
                "sender": {
                    "name": "foloosi tech",
                    "email": "dev@foloosi.com",
                    "business_name": null,
                    "phone_number": "987654321"
                }
            }
    ]}
}
```

{% endcode %}

#### Skip Customer signup

This section shows you how to skip signup page on payment scree&#x6E;**.**

**Steps to be followed :**

* &#x20;Add post customer details in *initialize api* to skip this page below.
* If you pass amount and currency alone.You will be navigated to signup page for getting cusomter details like shown below.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FxVWqSqhmCyVbRh8nOfbp%2FsignupPage.png?alt=media&amp;token=2fff4683-407e-4b71-a664-5cc8071264d8" alt=""><figcaption><p>guest signup</p></figcaption></figure>

* If you pass customer details in initialize Api, it will skip the page above and navigate to Payment Screen directly as shown below.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FduRXsytXRlPtfQoFCzCs%2Fapple%20payscreen.png?alt=media&amp;token=fc81bf5e-6115-4e8c-9ba7-aa4147df50f1" alt=""><figcaption><p>payment screen</p></figcaption></figure>

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Sample integrations

## Sample Integrations

### [Popup payment](https://docs.foloosi.com/payment-methods/popup-payment-method) method sample code

Just paste the code below inside the body tag and enter your valid data to start using Popup Payment Method

{% code lineNumbers="true" %}

```php
<!DOCTYPE html>
<html>
    <head>
    <title>Payment</title>
        <meta charset="utf-8"/>
    </head>
    <body>
        <?php
            $curl = curl_init();
            curl_setopt_array($curl, array(
                CURLOPT_URL => "https://api.foloosi.com/aggregatorapi/web/initialize-setup",
                CURLOPT_RETURNTRANSFER => true,
                CURLOPT_ENCODING => "",
                CURLOPT_MAXREDIRS => 10,
                CURLOPT_TIMEOUT => 30,
                CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                CURLOPT_CUSTOMREQUEST => "POST",
                CURLOPT_POSTFIELDS => "transaction_amount=1&currency=AED&customer_address=Address&customer_city=Dubai&billing_country=ARE&billing_state=Dubai&billing_postal_code=000000&customer_name=Test&customer_email=test%40email.com&customer_mobile=9876543210&optional1=#ord_no1&optional2=#ord_ref1&optional3=#ord_ref1",
                CURLOPT_HTTPHEADER => array(
                    'content-type: application/x-www-form-urlencoded',
                    'merchant_key: YOUR_MERCHANT_KEY'
                ),
            ));
            $response = curl_exec($curl);
            $err = curl_error($curl);
            curl_close($curl);
            if ($err) {
                echo "cURL Error #:" . $err;
            } else {
                $responseData = json_decode($response,true);
                $reference_token = $responseData['data']['reference_token'];
            }
        ?>
        <script type="text/javascript" src="https://www.foloosi.com/js/foloosipay.v2.js"></script> 
        <script type="text/javascript">
            var reference_token = "<?= $reference_token; ?>";
            var options = {
                "reference_token" : reference_token, 
                "merchant_key" : "YOUR_MERCHANT_KEY"
            }
            var fp1 = new Foloosipay(options);
            fp1.open();
            foloosiHandler(response, function (e) {
                if(e.data.status == 'success'){
                    console.log(e.data)
                }
                if(e.data.status == 'error'){
                    console.log(e.data)
                }
                if(e.data.status == 'closed'){
                    console.log(e.data)
                }
            }); 
        </script>
    </body>
</html>
```

{% endcode %}

### [Hosting payment](https://docs.foloosi.com/payment-methods/hosting-payment-method) method sample code

Just paste the code below inside the body tag and enter your valid data to start using Redirect Payment Method

{% code lineNumbers="true" %}

```php
<!DOCTYPE html>
<html>
    <head>
    <title>Payment</title>
        <meta charset="utf-8"/>
    </head>
    <body>
        <?php
            $site_return_url = urlencode("YOUR_REDIRECTION_SITE_URL")
            $curl = curl_init();
            curl_setopt_array($curl, array(
                CURLOPT_URL => "https://api.foloosi.com/aggregatorapi/web/initialize-setup",
                CURLOPT_RETURNTRANSFER => true,
                CURLOPT_ENCODING => "",
                CURLOPT_MAXREDIRS => 10,
                CURLOPT_TIMEOUT => 30,
                CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                CURLOPT_CUSTOMREQUEST => "POST",
                CURLOPT_POSTFIELDS => "transaction_amount=1&currency=AED&customer_address=Address&customer_city=Dubai&billing_country=ARE&billing_state=Dubai&billing_postal_code=000000&customer_name=Test&customer_email=test%40email.com&customer_mobile=9876543210&site_return_url=".$site_return_url,
                CURLOPT_HTTPHEADER => array(
                    'content-type: application/x-www-form-urlencoded',
                    'merchant_key: YOUR_MERCHANT_KEY'
                ),
            ));
            $response = curl_exec($curl);
            $err = curl_error($curl);
            curl_close($curl);
            if ($err) {
                echo "cURL Error #:" . $err;
            } else {
                $responseData = json_decode($response,true);
                $reference_token = $responseData['data']['reference_token'];
            }
        ?>
        <script type="text/javascript" src="https://www.foloosi.com/js/foloosipay.v2.js"></script> 
        <script type="text/javascript">
            var reference_token = "<?= $reference_token; ?>";
            var options = {
                "reference_token" : reference_token, 
                "merchant_key" : "YOUR_MERCHANT_KEY",
                "redirect" : true
            }
            var fp1 = new Foloosipay(options);
            fp1.open();
            
        </script>
    </body>
</html>
```

{% endcode %}

**Note :**&#x20;

&#x20;    **Apple Pay and Samsung pay options are available only for Hosting Payment Method.**&#x20;

&#x20;    **Site must be https with proper SSL certificate.**

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# React JS Integration

These Integrations are necessary to accept payments via Debit/Credit Cards, Apple Pay and Samsung Pay.

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

### Note

Supports 170 World Currencies

Apple pay will be available only when API mode is in live.


# Create payment Token

Let's see how to create a payment reference token

### Initialize api

## Get Reference Token

<mark style="color:green;">`POST`</mark> `https://api.foloosi.com/aggregatorapi/web/initialize-setup`

#### Headers

| Name                                          | Type   | Description                              |
| --------------------------------------------- | ------ | ---------------------------------------- |
| secret\_key<mark style="color:red;">\*</mark> | String | Your Merchant Key get from Foloosi Panel |

#### Request Body

| Name                                                  | Type   | Description                    |
| ----------------------------------------------------- | ------ | ------------------------------ |
| currency<mark style="color:red;">\*</mark>            | String |                                |
| transaction\_amount<mark style="color:red;">\*</mark> | Double |                                |
| customer\_name                                        | String |                                |
| site\_return\_url                                     | String |                                |
| customer\_unique\_identifier                          | String |                                |
| billing\_country                                      | String |                                |
| billing\_postal\_code                                 | String |                                |
| billing\_state                                        | String |                                |
| customer\_city                                        | String |                                |
| customer\_address                                     | String |                                |
| customer\_mobile                                      | String |                                |
| customer\_email                                       | String |                                |
| description                                           | String | Product or order information   |
| optional1                                             | String | You can pass additional fields |
| optional2                                             | String | You can pass additional fields |
| optional3                                             | String | You can pass additional fields |
| partner\_unique\_reference                            | String | partner unique ID              |

{% tabs %}
{% tab title="200: OK Success Response" %}

```javascript
{
 "message": "Application setup successfully",
 "data": {
   "reference_token":
   "U0sjdGVzdF8kMnkkMTAkM21LRi0xZGliVDhldTV4NHlZSm9tZXZobnZxWTNEVnZmay1MdHNndTNFenNBTDU0clhWYkccVE4jRkxTQVBJNWM3Njk2ZDkwOWIzNxxSVCMkMnkkMTAkQXZ4ay9wdjlpTFlYLzRSZ2FjSkxpZWhHb2o0U0wvTFpZNXAyVjRGOVFycWNQZ2lHQ3VEZ08="
  }
 }
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Header response" %}

```javascript
{
    "message": "Invalid secret key"
}
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Api mode" %}

```javascript
{
    "message": "Invalid Integration settings! Kindly check both foloosi merchant application settings and your integration keys"
}
```

{% endtab %}

{% tab title="404: Not Found Invalid request type" %}

```javascript
{
    "message": "No routes found"
}
```

{% endtab %}
{% endtabs %}

### Api Specification

* Request call must be on **POST.**
* This Api will be used to confirm the feature you are about to Use.
* For **Hosting Payment** Method, You need to pass your callback URL in **site\_return*****\_*****url**.
* For **Saved Card Payment** Method, You need to pass your customer unique details like email,etc. to **customer\_unique\_identifier**.

#### Post Request Body

<table><thead><tr><th width="179">Request Body</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>site_return_url</td><td><ol><li>If you are using hosting payment, this is mandatory.</li><li>Otherwise, this is an optional field.</li><li>It must be a String.</li><li>Get's the payment response after payment complete.</li><li><a href="https://docs.foloosi.com/payment-methods/hosting-payment-method">click here</a> to learn about Hosting Payment Page.</li></ol></td><td></td></tr><tr><td>customer_unique_identifier</td><td><ol><li>This is mandatory when you are using saved card payment.</li><li>This data must be Unique like email id,customer id, etc.,</li></ol></td><td></td></tr><tr><td>partner_unique_reference</td><td><ol><li>This is mandatory when the transaction is based on partner flow.</li></ol></td><td></td></tr></tbody></table>

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Payment Widget Initialization

Payment is always handled on foloosi's payment screen !

## react-foloosi-widget

Foloosi Payment Gateway for your Online Business.

### Install

```bash
npm install --save react-foloosi-widget
```

### Initialize Payment  Widget

Initialize Foloosi Payment as shown below.

```jsx
import {Foloosi} from 'react-foloosi-widget';

class App extends Component {
  state = {
    foloosiOpen: false,
    reference_token:'YOUR_REFERENCE_TOKEN',
    merchant_key:'YOUR_MERCHANT_KEY'
    redirect: false | true // If you need to enable hosting payment set value as true, 
  };
  foloosiHandler(e){
    if(e.data.status == 'success'){
        console.log(e.data);
        console.log(e.data.data.transaction_no);
    }
    if(e.data.status == 'error'){
        console.log(e.data);
        console.log(e.data.data.payment_status);
    }
  }
  componentDidUpdate(){
    window.addEventListener('message', this.foloosiHandler);
  }
  foloosiOpen(){
    this.setState({foloosiOpen: true});
  }
  render() {
    return (
      <div>
        <span onClick={e => this.foloosiOpen(e)}>Foloosi</span>
        <Foloosi foloosiOpen={this.state.foloosiOpen} foloosiClose={true} reference_token={this.state.reference_token} merchant_key={this.state.merchant_key} redirect={this.state.redirect}
          />
      </div> 
    );
  }
}
```

#### Props

These are the default props that work dynamically to open a payment widget and allows the user to make a payment using Credit/Debit Cards.

* `foloosiOpen` - Boolean - Toggles the popup open state (see above example)
* `foloosiClose` - Boolean - Enables the popup close option state (see above example)
* `reference_token` - String - Sets the Reference Token to *reference\_token* state (This is got from *initialize Api*)
* `merchant_key` - String - Sets your Merchant Key to *merchant\_key* state (This is got from *Foloosi Panel*)

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Payment Response Handling

Let's see how to handle payment response !

Foloosi payments has two types of responses,

* *Foloosi handler* for Popup Payment method.
* *Request post object* for Hosting Payment method.

#### a. Foloosi handler

React gives you the handlers for Payment status and details.

After the Payment is done, the line below sends Payment Details and Payment Status to foloosiHandler function.

```jsx
window.addEventListener('message', this.foloosiHandler);
```

```jsx
/* Foloosi handler for payment response handling
 * Add the below code inside the script tag to handle payment response
*/
    foloosiHandler(e){
      if(e.data.status == 'success'){
        //responde success code
        //console.log(e.data.status);
        //console.log(e.data.data.transaction_no);
      }
      if(e.data.status == 'error'){
        //responde success code
        //console.log(e.data.status);
        //console.log(e.data.data.payment_status);
      }
      if(e.data.status == 'closed'){
        //Payment Popup Closed
        //console.log(e.data);
      }
    };

```

#### b. Redirects to site\_return\_url with post data&#x20;

```json
//sample post response
{
    "status": "success",
    "data": {
        "amount": 12.00,
        "currency": "AED",
        "transaction_no": "FLSXXXXXXXXXXABC",
        "optional1": "additional_field",
        "optional2": "additional_field",
        "optional3": "additional_field",
    }
}
```

**NOTE**

Supports 170 World Currencies

### &#x20;Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Additional Setup

This section Get's transaction detail and transaction list.

**List of additional fields setup:**

* [**Get Transaction Details**](#to-get-the-transaction-details)
* [**Get Transaction List**](#to-get-the-transaction-list)
* [**Skip  Customer signup**](#skip-customer-signup)

#### **To get the Transaction Details**

For Transaction Details, use the below *Get request* to get the transaction details.

```javascript
GET API LINK: https://api.foloosi.com/v1/api/transaction-detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE ON API v1:
{
    "message": "Transaction detail are",
    "data": {
        "transaction_no": "FLSXXXXXXXXXXXXXX",
        "payment_transaction_id": "1234567-819201112",
        "receipt": null,
        "request_currency": "AED",
        "request_amount": 18,
        "customer_currency": "AED",
        "customer_amount": 18,
        "merchant_currency": null,
        "merchant_amount": null,
        "status": "pending",
        "created": "2022-11-01T10:21:04+00:00",
        "optional1": "order-id-123",\\optional fields passed on initialize api
        "optional2": "order-reference",\\optional fields passed on initialize api
        "optional3": "",\\optional fields passed on initialize api
        "subscription_no": ""
    }
}
```

#### Note

If you want to fetch customer detail and customer card details along with transaction details Ap&#x69;**,** change the above API  from v1 to v2.&#x20;

```javascript
GET API LINK: https://api.foloosi.com/v2/api/transaction-detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE ON API v2
{
    "message": "Transaction detail are",
    "data": {
        "transaction_no": "FLSXXXXXXXXXXXXXX",
        "receipt": null,
        "request_currency": "AED",
        "request_amount": 18,
        "customer_currency": "AED",
        "customer_amount": 18,
        "merchant_currency": "AED",
        "merchant_amount": 18,
        "status": "pending",
        "payment_failed_reason": null,
        "created": "2022-11-01T10:21:04+00:00",
        "optional1": "1757",\\optional fields passed on initialize api
        "optional2": "https://woo.foloosi.in",\\optional fields passed on initialize api
        "optional3": "",\\optional fields passed on initialize api
        "subscription_no": "",
        "customer": {
            "name": "FOLOOSI",
            "email": "tech@foloosi.com",
            "phone_number": "+971531234234"
        },
        "card": {
            "pan": "54321******1234",
            "card_type": "CREDIT",
            "bin_card": "MASTERCARD",
            "issuer_name": "MASTERCARD",
            "issuer_country": "UNITED STATES",
            "card_expiry": "2212",
            "holder_name": "FOLOOSI",
            "card_reference": "",
            "card_id": 123456,
            "card_bin": "12345",
            "bin_bank": "MASTERCARD - MEMBER TEST FACILITY",
            "bin_type": "CREDIT",
            "bin_level": "MIXED BIN",
            "bin_country_code": "US",
            "bin_website": "https://www.mastercard.us",
            "bin_phone": "1-800-307-7309",
            "bin_valid": true,
            "card_issuer": "MASTERCARD"
        }
    }
}
```

#### **To get the Transaction List**

For Transaction List details, use the below Get request to get the transaction specific to merchant key.&#x20;

{% code lineNumbers="true" %}

```javascript
  GET API LINK:
  https://api.foloosi.com/v1/api/transaction-list

  HEADERS:
  secret_key : YOUR_SECRET_KEY
  
  SAMPLE RESPONSE:
  {
    "message": "Merchant sales report are",
    "data": {
        "transactions": [
            {
                "transaction_no": "FLSXXXXXXXXXXXXXXX1",
                "send_amount": 1.35,
                "sender_currency": "AED",
                "tip_amount": 0,
                "receive_currency": "AED",
                "special_offer_applied": "No",
                "sender_amount": 1.35,
                "receive_amount": 1.35,
                "offer_amount": 0,
                "vat_amount": 0.05,
                "foloosi_fee": 0.04,
                "transaction_fixed_fee": 1,
                "customer_foloosi_fee": 0,
                "status": "success",
                "created": "2022-10-18T07:52:38+00:00",
                "sender": {
                    "name": "Foloosi",
                    "email": "dev@foloosi.com",
                    "business_name": null,
                    "phone_number": "9870162534"
                }
            },
            {
                "transaction_no": "FLSXXXXXXXXXXXXXXXX2",
                "send_amount": 385.66,
                "sender_currency": "AED",
                "tip_amount": 0,
                "receive_currency": "AED",
                "special_offer_applied": "No",
                "sender_amount": 385.66,
                "receive_amount": 385.66,
                "offer_amount": 0,
                "vat_amount": 0.69,
                "foloosi_fee": 12.73,
                "transaction_fixed_fee": 1,
                "customer_foloosi_fee": 0,
                "status": "success",
                "created": "2022-10-18T07:35:41+00:00",
                "sender": {
                    "name": "foloosi tech",
                    "email": "dev@foloosi.com",
                    "business_name": null,
                    "phone_number": "987654321"
                }
            }
    ]}
}
```

{% endcode %}

#### Skip Customer signup

This section shows you how to skip signup page on payment scree&#x6E;**.**

**Steps to be followed :**

* &#x20;Add post customer details in *initialize api* to skip this following page.
* If you pass amount and currency data alone, You will be navigated to the signup page for getting customer details as shown below.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FxVWqSqhmCyVbRh8nOfbp%2FsignupPage.png?alt=media&amp;token=2fff4683-407e-4b71-a664-5cc8071264d8" alt=""><figcaption><p>guest signup</p></figcaption></figure>

* If you pass customer details in initialize Api, it will skip the page above and navigate to Payment Screen directly as shown below.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FduRXsytXRlPtfQoFCzCs%2Fapple%20payscreen.png?alt=media&amp;token=fc81bf5e-6115-4e8c-9ba7-aa4147df50f1" alt=""><figcaption><p>payment screen</p></figcaption></figure>

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Angular JS Integration

These Integrations are necessary to accept payments via Debit/Credit Cards, Apple Pay and Samsung Pay.

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

### Note

Supports 170 World Currencies&#x20;

Apple pay will be available only when API mode is in live.

####


# Create payment Token

Let's see how to create a payment reference token

### Initialize Api

## Get Reference Token

<mark style="color:green;">`POST`</mark> `https://api.foloosi.com/aggregatorapi/web/initialize-setup`

#### Headers

| Name                                          | Type   | Description                              |
| --------------------------------------------- | ------ | ---------------------------------------- |
| secret\_key<mark style="color:red;">\*</mark> | String | Your Merchant Key get from Foloosi Panel |

#### Request Body

| Name                                                  | Type   | Description                    |
| ----------------------------------------------------- | ------ | ------------------------------ |
| currency<mark style="color:red;">\*</mark>            | String |                                |
| transaction\_amount<mark style="color:red;">\*</mark> | Double |                                |
| customer\_name                                        | String |                                |
| site\_return\_url                                     | String |                                |
| customer\_unique\_identifier                          | String |                                |
| billing\_country                                      | String |                                |
| billing\_postal\_code                                 | String |                                |
| billing\_state                                        | String |                                |
| customer\_city                                        | String |                                |
| customer\_address                                     | String |                                |
| customer\_mobile                                      | String |                                |
| customer\_email                                       | String |                                |
| description                                           | String | Product or order information   |
| optional1                                             | String | You can pass additional fields |
| optional2                                             | String | You can pass additional fields |
| optional3                                             | String | You can pass additional fields |
| partner\_unique\_reference                            | String | partner unique ID              |

{% tabs %}
{% tab title="200: OK Success Response" %}

```javascript
{
 "message": "Application setup successfully",
 "data": {
   "reference_token":
   "U0sjdGVzdF8kMnkkMTAkM21LRi0xZGliVDhldTV4NHlZSm9tZXZobnZxWTNEVnZmay1MdHNndTNFenNBTDU0clhWYkccVE4jRkxTQVBJNWM3Njk2ZDkwOWIzNxxSVCMkMnkkMTAkQXZ4ay9wdjlpTFlYLzRSZ2FjSkxpZWhHb2o0U0wvTFpZNXAyVjRGOVFycWNQZ2lHQ3VEZ08="
  }
 }
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Header response" %}

```javascript
{
    "message": "Invalid secret key"
}
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Api mode" %}

```javascript
{
    "message": "Invalid Integration settings! Kindly check both foloosi merchant application settings and your integration keys"
}
```

{% endtab %}

{% tab title="404: Not Found Invalid request type" %}

```javascript
{
    "message": "No routes found"
}
```

{% endtab %}
{% endtabs %}

### Api Specification

* Request call must be on **POST.**
* This Api will be used to confirm the feature you are about to Use.
* For **Hosting Payment** Method, You need to pass your callback URL in **site\_return*****\_*****url**.
* For **Saved Card Payment** Method, You need to pass your customer unique details like email,etc. to **customer\_unique\_identifier**.

#### Post Request Body

<table><thead><tr><th width="179">Request Body</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>site_return_url</td><td><ol><li>If you are using hosting payment, this is mandatory.</li><li>Otherwise, this is an optional field.</li><li>It must be a String.</li><li>Get's the payment response after payment complete.</li><li><a href="https://docs.foloosi.com/payment-methods/hosting-payment-method">click here</a> to learn about Hosting Payment Page.</li></ol></td><td></td></tr><tr><td>customer_unique_identifier</td><td><ol><li>This is mandatory when you are using saved card payment.</li><li>This data must be Unique like email id,customer id, etc.,</li></ol></td><td></td></tr><tr><td>partner_unique_reference</td><td><ol><li>This is mandatory when the tarnsaction is based on partner flow.</li></ol></td><td></td></tr></tbody></table>

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Payment Widget Initialization

Payment is always handled on foloosi's payment screen !

## foloosi-angular

### Install

```bash
npm install --save foloosi-angular
```

### Initialize Payment  Widget

#### Step 1

Add the script below in angular-cli.json.

```jsx
  "scripts": [
    "./node_modules/foloosi-angular/index.js"
  ]
```

#### Step 2

Follow these instructions in your Typescript file to initialize *Foloosi Payment.*

{% code lineNumbers="true" %}

```jsx
//To Declare the Foloosi Payment

declare var Foloosipay: any;

// For Success and Error Handlers. You can get the Payment status in the below function, it may be success or error. 

const foloosiHandler = ( function (e) {
  if (e.data.status == 'success') {
    console.log(e.data.status);
    console.log(e.data);
  }
  if (e.data.status == 'error') {
    console.log(e.data.status);
    console.log(e.data);
  }
});

window.addEventListener('message', foloosiHandler);

//To Initialize the Foloosi Payment

constructor(){
    Foloosipay.init();
}
```

{% endcode %}

### For Popup Payment

If you want to enable payment in \<iframe> which only supports Credit/Debit cards, you need not pass the REDIRECT parameter.

<pre class="language-jsx"><code class="lang-jsx"><strong>Foloosipay.open('REFERENCE_TOKEN','MERCHANT_KEY');
</strong></code></pre>

### For Hosting Method

If you want to enable hosting payment which supports ApplePay and SamsungPay, you need to pass REDIRECT as *true.*

```jsx
Foloosipay.open('REFERENCE_TOKEN','MERCHANT_KEY','REDIRECT');
```

To Close the Foloosi Payment Popup Use,

```jsx
Foloosipay.close();
```

#### Steps to activate Hosting Payment Method (optional) - [click here for details](https://docs.foloosi.com/payment-methods/hosting-payment-method)

Note - It is mandatory to set REDIRECT to *true*

* Add the additional field shown below in the post data of *initialize Api*
* <pre class="language-jsx"><code class="lang-jsx"><strong>// additional Post Data
  </strong>site_return_url : "", //your site return url for get the payment response object
  </code></pre>

#### Steps to Activate saved card payment (optional) - [click here for details](https://docs.foloosi.com/payment-methods/saved-card-payment-method)

* Add the additional field shown below in the post data of *initialize Api*

```jsx
// additional Post Data
customer_unique_identifier : "Unique value",/** MANDATORY FIELD -Customer Unique Reference value should be email/mobile no/uniqueCustomer id from your DB*/
```

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Payment Response Handling

Let's see how to handle payment response !

Foloosi payments has two types of responses,

* *Foloosi handler* for Popup Payment method.
* *Request post object* for Hosting Payment method.

#### a. Foloosi handler

&#x20;Foloosi gives you the handlers for Payment status and details.

After the Payment is done, the line below sends Payment Details and Payment Status to foloosiHandler function.

```jsx
window.addEventListener('message', this.foloosiHandler);
```

```jsx
/* Foloosi handler for payment response handling
 * Add the below code inside the script tag to handle payment response
*/
const foloosiHandler = ( function (e) {
      if(e.data.status == 'success'){
        //responde success code
        //console.log(e.data.status);
        //console.log(e.data.data.transaction_no);
      }
      if(e.data.status == 'error'){
        //responde success code
        //console.log(e.data.status);
        //console.log(e.data.data.payment_status);
      }
      if(e.data.status == 'closed'){
        //Payment Popup Closed
        //console.log(e.data);
      }
    };

```

#### b. Redirects to site\_return\_url with post data&#x20;

```json
//sample post response
{
    "status": "success",
    "data": {
        "amount": 12.00,
        "currency": "AED",
        "transaction_no": "FLSXXXXXXXXXXABC",
        "optional1": "additional_field",
        "optional2": "additional_field",
        "optional3": "additional_field",
    }
}
```

**NOTE**

Supports 170 World Currencies

### &#x20;Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Additional Setup

This section Get's transaction detail and transaction list.

**List of additional fields setup:**

* [**Get Transaction Details**](#to-get-the-transaction-details)
* [**Get Transaction List**](#to-get-the-transaction-list)
* [**Skip  Customer signup**](#skip-customer-signup)

#### **To get the Transaction Details**

For Transaction Details, use the below *Get request* to get the transaction details. &#x20;

```javascript
GET API LINK: https://api.foloosi.com/v1/api/transaction-detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE ON API v1:
{
    "message": "Transaction detail are",
    "data": {
        "transaction_no": "FLSXXXXXXXXXXXXXX",
        "payment_transaction_id": "1234567-819201112",
        "receipt": null,
        "request_currency": "AED",
        "request_amount": 18,
        "customer_currency": "AED",
        "customer_amount": 18,
        "merchant_currency": null,
        "merchant_amount": null,
        "status": "pending",
        "created": "2022-11-01T10:21:04+00:00",
        "optional1": "order-id-123",\\optional fields passed on initialize api
        "optional2": "order-reference",\\optional fields passed on initialize api
        "optional3": "",\\optional fields passed on initialize api
        "subscription_no": ""
    }
}
```

#### Note

If you want to fetch customer detail and customer card details along with transaction details ap&#x69;**,** change the above API v1 to v2.&#x20;

```javascript
GET API LINK: https://api.foloosi.com/v2/api/transaction-detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE ON API v2
{
    "message": "Transaction detail are",
    "data": {
        "transaction_no": "FLSXXXXXXXXXXXXXX",
        "receipt": null,
        "request_currency": "AED",
        "request_amount": 18,
        "customer_currency": "AED",
        "customer_amount": 18,
        "merchant_currency": "AED",
        "merchant_amount": 18,
        "status": "pending",
        "payment_failed_reason": null,
        "created": "2022-11-01T10:21:04+00:00",
        "optional1": "1757",\\optional fields passed on initialize api
        "optional2": "https://woo.foloosi.in",\\optional fields passed on initialize api
        "optional3": "",\\optional fields passed on initialize api
        "subscription_no": "",
        "customer": {
            "name": "FOLOOSI",
            "email": "tech@foloosi.com",
            "phone_number": "+971531234234"
        },
        "card": {
            "pan": "54321******1234",
            "card_type": "CREDIT",
            "bin_card": "MASTERCARD",
            "issuer_name": "MASTERCARD",
            "issuer_country": "UNITED STATES",
            "card_expiry": "2212",
            "holder_name": "FOLOOSI",
            "card_reference": "",
            "card_id": 123456,
            "card_bin": "12345",
            "bin_bank": "MASTERCARD - MEMBER TEST FACILITY",
            "bin_type": "CREDIT",
            "bin_level": "MIXED BIN",
            "bin_country_code": "US",
            "bin_website": "https://www.mastercard.us",
            "bin_phone": "1-800-307-7309",
            "bin_valid": true,
            "card_issuer": "MASTERCARD"
        }
    }
}
```

#### **To get the Transaction List**

For Transaction List details, you can use the below Get request to get the transaction based on your merchant key.&#x20;

{% code lineNumbers="true" %}

```javascript
  GET API LINK:
  https://api.foloosi.com/v1/api/transaction-list

  HEADERS:
  secret_key : YOUR_SECRET_KEY
  
  SAMPLE RESPONSE:
  {
    "message": "Merchant sales report are",
    "data": {
        "transactions": [
            {
                "transaction_no": "FLSXXXXXXXXXXXXXXX1",
                "send_amount": 1.35,
                "sender_currency": "AED",
                "tip_amount": 0,
                "receive_currency": "AED",
                "special_offer_applied": "No",
                "sender_amount": 1.35,
                "receive_amount": 1.35,
                "offer_amount": 0,
                "vat_amount": 0.05,
                "foloosi_fee": 0.04,
                "transaction_fixed_fee": 1,
                "customer_foloosi_fee": 0,
                "status": "success",
                "created": "2022-10-18T07:52:38+00:00",
                "sender": {
                    "name": "Foloosi",
                    "email": "dev@foloosi.com",
                    "business_name": null,
                    "phone_number": "9870162534"
                }
            },
            {
                "transaction_no": "FLSXXXXXXXXXXXXXXXX2",
                "send_amount": 385.66,
                "sender_currency": "AED",
                "tip_amount": 0,
                "receive_currency": "AED",
                "special_offer_applied": "No",
                "sender_amount": 385.66,
                "receive_amount": 385.66,
                "offer_amount": 0,
                "vat_amount": 0.69,
                "foloosi_fee": 12.73,
                "transaction_fixed_fee": 1,
                "customer_foloosi_fee": 0,
                "status": "success",
                "created": "2022-10-18T07:35:41+00:00",
                "sender": {
                    "name": "foloosi tech",
                    "email": "dev@foloosi.com",
                    "business_name": null,
                    "phone_number": "987654321"
                }
            }
    ]}
}
```

{% endcode %}

#### Skip Customer signup

This section shows you how to skip signup page on payment scree&#x6E;**.**

**Steps to be followed :**

* Add post customer details in *initialize Api* to skip the page below.
* If you pass amount and currency data alone, You will be navigated to the signup page for getting customer details as shown below.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FxVWqSqhmCyVbRh8nOfbp%2FsignupPage.png?alt=media&amp;token=2fff4683-407e-4b71-a664-5cc8071264d8" alt=""><figcaption><p>guest signup</p></figcaption></figure>

* If you pass customer details in *initialize Api*, it will skip the page above and navigate to *Payment Screen* directly as shown below.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FduRXsytXRlPtfQoFCzCs%2Fapple%20payscreen.png?alt=media&amp;token=fc81bf5e-6115-4e8c-9ba7-aa4147df50f1" alt=""><figcaption><p>payment screen</p></figcaption></figure>

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# WooCommerce

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

## Installation

Demo Site: [Click to view demo site](https://woo.foloosi.in/)

Follow these Steps In the WordPress administration panel,

#### STEP 1

[Download ](https://wordpress.org/plugins/foloosi-for-woocommerce/)the plugin or install it from here (<https://wordpress.org/plugins/foloosi-for-woocommerce/>)

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2F0kH2rTXK0ZrRW0R2RuTn%2Fwoocommerce-install.png?alt=media&amp;token=3953490d-0dd8-4293-9e42-e489977d1bf7" alt=""><figcaption></figcaption></figure>

#### STEP 2

Go to WooCommerce -> Settings Section -> Payments-->Enable foloosi plugin

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FsND8KD9mNVtkGlShMj4E%2Fwoocommerce-setting.png?alt=media&amp;token=09ce3698-16d5-42b9-988c-9ea3a72ee204" alt=""><figcaption></figcaption></figure>

#### STEP 3

You can now view enabled Foloosi Plugin. Click on *Manage* button and set the credentials.

Add *Merchant and Secret key* and then Click on *Save* (You can get Merchant and Secret key from Foloosi's merchant panel under *API Settings*)

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FEufOxzj9U6Cwfa4VtRfy%2Fwoocommerce-update.png?alt=media&amp;token=58075719-cb66-499c-a77a-0fc9a0f3fae4" alt=""><figcaption></figcaption></figure>

### Available Payment Methods

#### Popup Method

To enable popup, just uncheck the **Redirection** check box under **Settings***.*

In this method, the payment page appears as a Pop-Up, embedded onto the checkout page itself().&#x20;

Once the Payment is completed an acknowledgement is sent to your store.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FHakzphwUioPQqmhJuViU%2Fwoocommerce-popup.png?alt=media&amp;token=ffc3f203-8f9c-47c5-94eb-6bf45f8b0873" alt=""><figcaption><p>popup screen</p></figcaption></figure>

#### Hosting Payment Method

To enable this method, enable the **Redirection** checkbox under **Settings***.*

Here the Payment Page is redirected to foloosi's Payment Page. Once a payment is completed it will redirected to your success/failure page

It supports Card payment, Apple Pay and Samsung Pay.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FduRXsytXRlPtfQoFCzCs%2Fapple%20payscreen.png?alt=media&amp;token=fc81bf5e-6115-4e8c-9ba7-aa4147df50f1" alt=""><figcaption><p>Redirection Payment Screen</p></figcaption></figure>

### Saved Card Payment Method

To Avail this feature enable the **Savedcard** check box under **Settings***.*

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FY9IMlwIEqWWiNUq2y4bG%2Fsaved-card.png?alt=media&amp;token=13106cb0-afae-4b5e-8d53-6acfd2abc28d" alt=""><figcaption><p>Saved Card Screen</p></figcaption></figure>

### Sample Success Screen

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FWZ577c2yiAnGnTtVAHLH%2Fwoocommerce-success.png?alt=media&amp;token=4bcd3ae9-d188-49a6-bf04-83a9925d6615" alt=""><figcaption></figcaption></figure>

**NOTE**

Supports 170 World Currencies

Apple pay will be available only when API mode is in live.

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# CS Cart

Payment Gateway plugin allows merchants to Accept Credit/Debit Card, Apple Pay and Samsung Pay on CS-Cart store.

### Foloosi Payment Extension for CS Cart

### Description

​Payment Gateway plugin allows merchants to Accept Credit/Debit Card, Apple Pay and Samsung Pay on CS-Cart store.

Allows customers to pay on the website itself, without getting redirected from CS Cart Page.

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

### Installation

1. Ensure you have the latest version of CS Cart installed. [Click here to download extension file](https://marketplace.cs-cart.com/foloosi-payment-gateway.html) for free.
2. Download the zip of this repository.
3. Execute the file named 'install\_foloosi.sql'. This has to be executed against your cscart database. You can use phpmyadmin to import the file into your cscart database or Copy-Paste the content to run directly on your mysql shell.
4. Sample import image below,

   <figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FDla6XBSyVSS8W3KBnwBR%2Fcscart%20import%20table.png?alt=media&amp;token=e3e2938b-3ad3-4d3a-934f-8efd06069e35" alt=""><figcaption></figcaption></figure>
5. Upload rest of the contents of the plugin to your CS Cart Installation directory.&#x20;
6. Contents of downloaded **app** folder goes into **app** folder of the directory and contents of downloaded **design** folder goes into **design** folder of the directory.<br>
7. sample configuration image

   <figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FZCONbZQw06FS5QEMlEAK%2Fcscart%20admin.png?alt=media&amp;token=c1a0a967-628f-469d-aed6-cae7ac75d2c3" alt=""><figcaption></figcaption></figure>
8.

```
<figure><img src="/files/JKay7pVRen8xFQYTuRJl" alt=""><figcaption></figcaption></figure>
```

### Configuration

1. Log into CS-Cart as administrator&#x20;
2. Navigate to Administration / Payment Methods.
3. Click on"+" to add a new payment method.
4. Choose Foloosi from the list and then click on Save. For templates, choose "cc\_outside.tpl"
5. Click on 'Configure' tab.
6. Enter Merchant Key and Secret Key which you can get from Foloosi's Dashboard.
7. Click 'Save'.

### Available Payment Methods <a href="#available-payment-methods" id="available-payment-methods"></a>

#### Popup Method

To enable popup, just uncheck the **Redirection** check box under **Settings***.*

In this method, the payment page appears as a Pop-Up, embedded onto the checkout page itself().&#x20;

Once the Payment is completed an acknowledgement is sent on your Cs-Cart store.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2F6UwweLL3APGQIwWsNGsQ%2Fcscart-pop.png?alt=media&amp;token=85a4f9e1-d051-44ff-b792-2c1ee485bbe1" alt=""><figcaption><p>popup screen</p></figcaption></figure>

#### Hosting Payment Method

To enable this method, enable the **Redirection** checkbox under **Settings***.*

Here the Payment Page is redirected to foloosi's Payment Page. Once a payment is completed it will redirected to your success/failure page

It supports Card payment, Apple Pay and Samsung Pay.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FduRXsytXRlPtfQoFCzCs%2Fapple%20payscreen.png?alt=media&amp;token=fc81bf5e-6115-4e8c-9ba7-aa4147df50f1" alt=""><figcaption><p>redirection payment screen</p></figcaption></figure>

### Saved Card Payment Method <a href="#saved-card-payment-method" id="saved-card-payment-method"></a>

To Avail this feature enable the **Savedcard** check box under **Settings***.*

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FY9IMlwIEqWWiNUq2y4bG%2Fsaved-card.png?alt=media&amp;token=13106cb0-afae-4b5e-8d53-6acfd2abc28d" alt=""><figcaption><p>saved card payment screen</p></figcaption></figure>

### Sample Success Screen <a href="#undefined" id="undefined"></a>

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FgTO8EXCGPsIzMEEoROx1%2Fcscart-success.png?alt=media&amp;token=dedb7e94-d0ca-4cde-ae75-4ec8954e2e15" alt=""><figcaption></figcaption></figure>

**NOTE**

Supports 170 World Currencies

Apple pay will be available only when API mode is in live.

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Ecwid

Foloosi is the best software platform to manage the financial ecosystem of your Businesses. We handle business transactions for pioneering companies in the UAE.

&#x20;Demo store: <https://foloosi.company.site/>

&#x20;Foloosi enables businesses to accept card payments online

* &#x20;Get paid with all major cards, apple pay and samsung pay
* &#x20;Easy access to transactions and settlement reports

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

**Step 1**

Install the Payment Plugin in your ecwid store using the following link. ([Click Here to install](https://my.ecwid.com/cp/#apps:view=app\&name=foloosi))

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2F7i1PKISO49e2paY3vUuz%2Fecwid.png?alt=media&amp;token=1b6db9d9-a4b8-42e4-abbc-8c9b85729e1e" alt=""><figcaption></figcaption></figure>

**Step 2**&#x20;

Enter the Secret key and Save (You can get the Secret key from Foloosi's merchant panel under API Settings)

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FBww0qPOmvALeV0sSx4ZB%2Fecwid%20admin.png?alt=media&amp;token=1f3083d5-b74d-4dc4-9b17-1c40d739499d" alt=""><figcaption></figcaption></figure>

**Step 3**

When you click on the **PlaceOrder** button our popup will be loaded and you can use the test card credentials from the *test cards* section to complete the payment.

Note: Test card is valid only for test mode.

**NOTE**

Supports 170 World Currencies

Apple pay will be available only when API mode is in live.

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Opencart

This extension utilizes Foloosi's Payment API and provides a seamless integration with Opencart allowing payments for merchants using Credit/Debit Cards, Apple Pay & Samsung Pay.

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

### Step 1 : Install the Plugin

1. Download the latest Source code zip file of the required version of plugin. [Click here to download the plugin.](https://www.opencart.com/index.php?route=marketplace/extension/info\&extension_id=37783)
2. Copy all files/folders to OpenCart installation directory.

### Step 2 : Configuration

1. Login to Opencart Admin account
2. Go to the **Admin Panel** and then to **Extensions** and **Payments** to install Foloosi Payment Gateway extension.
3. Sample Image,

   <figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2Fr6IrKbzwnycO5Im2Slgb%2Fopencart-config.png?alt=media&amp;token=649d0955-8195-46fd-958e-954db9526403" alt=""><figcaption></figcaption></figure>
4. Click **Edit** and follow the steps below,
   1. Enter Merchant key and Secret key. You can get them from the api settings on Foloosi's dashboard.
   2. Change extension status to **Enabled**.
   3. Click **Save** to save the extension settings.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FnhJ3DzNAVCEzMglY4kyt%2Fopencart-admin.png?alt=media&amp;token=50d2931c-7e13-4430-b5ac-a55c79ce02c2" alt=""><figcaption></figcaption></figure>

### Available Payment Methods <a href="#available-payment-methods" id="available-payment-methods"></a>

#### Popup Method

To enable popup, just uncheck the **Redirection** check box under **Settings***.*

In this method, the payment page appears as a Pop-Up, embedded onto the checkout page itself().&#x20;

Once the Payment is completed an acknowledgement is sent to your store.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FZhFX0KJI5ebfsOTCWAhf%2Fopencart-popup.png?alt=media&amp;token=ab9a9bbb-ffcd-4e1d-ac7c-651dbccfae9b" alt=""><figcaption><p>popup payment screen</p></figcaption></figure>

#### Redirection Method

To enable this method, enable the **Redirection** checkbox under **Settings***.*

Here the Payment Page is redirected to foloosi's Payment Page. Once a payment is completed it will redirected to your success/failure page

It supports Card payment, Apple Pay and Samsung Pay.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FduRXsytXRlPtfQoFCzCs%2Fapple%20payscreen.png?alt=media&amp;token=fc81bf5e-6115-4e8c-9ba7-aa4147df50f1" alt=""><figcaption><p>redirection payment screen</p></figcaption></figure>

### Saved Card Payment Method <a href="#saved-card-payment-method" id="saved-card-payment-method"></a>

To Avail this feature enable the **Savedcard** check box under **Settings***.*

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FY9IMlwIEqWWiNUq2y4bG%2Fsaved-card.png?alt=media&amp;token=13106cb0-afae-4b5e-8d53-6acfd2abc28d" alt=""><figcaption><p>saved card payment screen</p></figcaption></figure>

### Sample Success Screen <a href="#undefined" id="undefined"></a>

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2F57O4o0Alkx8fMOUh7ZVs%2Fopencart-success.png?alt=media&amp;token=82eb32c9-88e3-45f0-a87e-5e9904c2eb44" alt=""><figcaption></figcaption></figure>

**NOTE**

Supports 170 World Currencies

Apple pay will be available only when API mode is in live.

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Magento

You can integrate our Payment Gateway with Magento Store to accept payments.

Foloosi's Payments plugin allows you to accept credit/debit on your Magento site easily. This plugin adds Foloosi Payment option on Magento checkout page.&#x20;

When the user chooses Foloosi as Payment Method, they will be redirected to Foloosi website. Post completion of payment, the user is sent back to Magento website returning transactions details.

A remember me feature allows customers to make a quick payment.&#x20;

The design is responsive and is compatible across devices and browsers.

### Requirements

* Magento 2.\*
* PHP >= 5.6.0
* Magento version as specified in composer.json of this project
* Foloosi account ([Business Signup](https://www.foloosi.com/))
* Create api credentials ([click here to create](https://docs.foloosi.com/get-started/create-api-credentials))

### Installation Using Composer

#### [Download ](https://marketplace.magento.com/foloosi-paymentgateway.html)the plugin or purchase it from here (<https://marketplace.magento.com/foloosi-paymentgateway.html>)

#### Add magento access keys in project base file

copy/paste the access keys in your auth.json file inside your project

#### Install the plugin in Magento 2

Use "composer require \<module\_name>:\<version>"

#### Sample installation&#x20;

For Installing the latest version,

"composer require foloosi/paymentgateway:100.0.8"

#### Enable this extension in Magento 2

`bin/magento module:enable Foloosi_PaymentGateway --clear-static-content`

#### Setup extension and refresh cache

`bin/magento setup:upgrade`

`bin/magento cache:flush`

`bin/magento setup:di:compile`

`bin/magento setup:static-content:deploy`

### Configuration

Once installed, this module can be configured as usual by logging into the Magento admin area and navigate to,

Stores > Configuration > Sales > Payment Methods > Foloosi PaymentGateway

**NOTE**

Supports 170 World Currencies

Apple pay will be available only when API mode is in live.

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Prestashop

You can integrate our Payment Gateway with Prestashop to accept payments.

Currently, we support these PrestaShop versions,

* PrestaShop 1.7.x
* PrestaShop 1.6.x

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

### Installation and Configuration

1. Download the Source code zip file of the required version of the plugin from the *Releases* section in GitHub. [Click here to download.](https://github.com/FoloosiTech/prestashop-foloosi/archive/refs/heads/master.zip)
2. Log into PrestaShop Backend account.
3. Navigate to the **Modules** tab and click **Add a New Module**.
4. Click **Browse** to open the dialogue box enabling you to search your computer. Select the zip file that you have downloaded and click **OK**.
5. Click **Upload this Module**.
6. Click **Install** to install the module.
7. Click **Configure** to configure the module.

### Configuration

Configure the api keys in pretashop backend account.

Backend->Payment method-> Foloosi-> Click to edit

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FZWNkgIZDX4M28Dex4Xmu%2Fprestoshop-config.png?alt=media&amp;token=3390dbd9-fbc7-4095-b2dd-248eaa7e0775" alt=""><figcaption></figcaption></figure>

### Available Payment Methods <a href="#available-payment-methods" id="available-payment-methods"></a>

#### Popup Method

To enable popup, just uncheck the **Redirection** check box under **Settings***.*

In this method, the payment page appears as a Pop-Up, embedded onto the checkout page itself().&#x20;

Once the Payment is completed an acknowledgement is sent to your store.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FWQ56Ex7GwxAhWjMUXAhv%2Fprestoshop-pop.png?alt=media&amp;token=a28af44f-83c7-490a-a4d5-63cd5cf4d5c7" alt=""><figcaption></figcaption></figure>

#### Redirection Method

To enable this method, enable the **Redirection** checkbox under **Settings***.*

Here the Payment Page is redirected to foloosi's Payment Page. Once a payment is completed it will redirected to your success/failure page

It supports Card payment, Apple Pay and Samsung Pay.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FduRXsytXRlPtfQoFCzCs%2Fapple%20payscreen.png?alt=media&amp;token=fc81bf5e-6115-4e8c-9ba7-aa4147df50f1" alt=""><figcaption></figcaption></figure>

### &#x20;<a href="#saved-card-payment-method" id="saved-card-payment-method"></a>

### Sample Success Screen <a href="#undefined" id="undefined"></a>

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FlVeuuPM3866Yk28qS4N5%2Fprestoshop-suuccess.png?alt=media&amp;token=35767aee-8a76-4327-9988-4f9fa4eaaef8" alt=""><figcaption></figcaption></figure>

**NOTE**

Supports 170 World Currencies

Apple pay will be available only when API mode is in live.

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Android SDK

Integrate Our Android SDK For Seamless Payments !

## Foloosi Android SDK Integration

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

### Android Requirement

{% code lineNumbers="true" %}

```java
android {
    defaultConfig {
        minSdkVersion 21
    }
}
```

{% endcode %}

### Proguard Rules (Mandatory for release build)

{% code lineNumbers="true" %}

```java
-keepclassmembers class * {
    @android.webkit.JavascriptInterface <methods>;
}

-keepattributes JavascriptInterface
-keepattributes *Annotation*

-dontwarn com.foloosi.**
-keep class com.foloosi.* {*;}

-optimizations !method/inlining/*
```

{% endcode %}

###

**NOTE**

Supports 170 World Currencies.

Apple pay will be available only when API mode is in live.

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Initiate Payment

This Section briefs about how to initiate a payment !

Foloosi's Android SDK provides easy payment collections.

You can use it on the front-end to open payment page or use the actual flow to create Payment Token

#### Step - 1 - Add Dependency

We distribute our SDK from the Maven Central Repository. To begin with this SDK opens your build.gradle file of Module:app and adds the following dependency.

```
implementation 'com.foloosi:FoloosiSDK:2.0.28'
```

#### Step - 2 - Initialize SDK

To initialize the SDK add the codes below with the merchant key (Taken from foloosi merchant panel). If you do not have a merchant key create a new one and customize the checkout page to your liking.

{% code lineNumbers="true" %}

```java
 InitData initData = new InitData();
 initData.setMerchantKey(merchantKey); //YOUR MERCHANT KEY
 initData.setCustomColor(customColor); // SDK CUSTOM COLOR

 FoloosiPay.init(this, initData);
```

{% endcode %}

#### Step - **3** - Implement Payment Listener

Set and Implement our payment listener to receive payment results for every payment.

{% code lineNumbers="true" %}

```java
//Setting payment listener (paste this line after init() method)
FoloosiPay.setPaymentListener(this);
```

{% endcode %}

**Important Note** - You can Follow any one of the methods below to initiate payment widget.

### a. Make Payments via order object

#### &#x20;Create Order Data Object with Necessary Inputs

You can create the OrderData or payment input with our OrderData Model class. Here you need to provide order id, title, description, currency code, order amount and customer details like name, email and mobile number.

{% code lineNumbers="true" %}

```java
OrderData orderData = new OrderData(); // Foloosi Order Data Model Class Instance
orderData.setOrderAmount(Double.parseDouble(amount)); // in double format ##,###.##
Random rand = new Random();
int orderId = rand.nextInt(100000);
orderData.setOrderId(String.valueOf(orderId)); // unique order id. 
orderData.setOrderDescription("Mobile Phone");  // any description.
orderData.setCurrencyCode(currencyCode);
orderData.setCustomerUniqueReference(""); //Customer Unique Reference value should be email/mobile no/uniqueCustomer id from your DB
Customer customer = new Customer();
customer.setName("name");
customer.setEmail("email@gmail.com");
customer.setMobile("1234567890");
orderData.setCustomer(customer);
```

{% endcode %}

#### \*Important Note\*

orderData.setCustomerUniqueReference("") value **MUST** be customer id/email/mobile number for saved card feature.

Now make payments with order data you created above.

```
 FoloosiPay.makePayment(orderData);
```

### &#x20;b.Make Payments with reference token

#### Initialize api <a href="#initialize-api" id="initialize-api"></a>

## Get Reference Token

<mark style="color:green;">`POST`</mark> `https://api.foloosi.com/aggregatorapi/web/initialize-setup`

#### Headers

| Name                                          | Type   | Description                              |
| --------------------------------------------- | ------ | ---------------------------------------- |
| secret\_key<mark style="color:red;">\*</mark> | String | Your Merchant Key get from Foloosi Panel |

#### Request Body

| Name                                                  | Type   | Description                    |
| ----------------------------------------------------- | ------ | ------------------------------ |
| transaction\_amount<mark style="color:red;">\*</mark> | Double |                                |
| currency<mark style="color:red;">\*</mark>            | String |                                |
| customer\_unique\_identifier                          | String |                                |
| customer\_mobile                                      | String |                                |
| customer\_email                                       | String |                                |
| customer\_name                                        | String |                                |
| customer\_city                                        | String |                                |
| customer\_address                                     | String |                                |
| billing\_state                                        | String |                                |
| billing\_country                                      | String |                                |
| billing\_postal\_code                                 | String |                                |
| description                                           | String | Product or order information   |
| optional1                                             | String | You can pass additional fields |
| optional2                                             | String | You can pass additional fields |
| optional3                                             | String | You can pass additional fields |

{% tabs %}
{% tab title="200: OK success response" %}

```javascript
{
 "message": "Application setup successfully",
 "data": {
   "reference_token":
   "U0sjdGVzdF8kMnkkMTAkM21LRi0xZGliVDhldTV4NHlZSm9tZXZobnZxWTNEVnZmay1MdHNndTNFenNBTDU0clhWYkccVE4jRkxTQVBJNWM3Njk2ZDkwOWIzNxxSVCMkMnkkMTAkQXZ4ay9wdjlpTFlYLzRSZ2FjSkxpZWhHb2o0U0wvTFpZNXAyVjRGOVFycWNQZ2lHQ3VEZ08="
  }
 }
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Api mode" %}

```javascript
{
    "message": "Invalid Integration settings! Kindly check both foloosi merchant application settings and your integration keys"
}
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Header response" %}

```javascript
{
    "message": "Invalid secret key"
}
```

{% endtab %}

{% tab title="404: Not Found Invalid request type" %}

```javascript
{
    "message": "No routes found"
}
```

{% endtab %}
{% endtabs %}

Make the payment with order reference token.

```java
String referenceToken = "Your Reference Token";
FoloosiPay.makePaymentWithReferenceToken(referenceToken);
```

#### Api Specification <a href="#api-specification" id="api-specification"></a>

* Request call must be on **POST.**
* This Api will be used to confirm the feature you are about to Use.
* For **Saved Card Payment** Method, You need to pass your customer unique details like email,etc. to **customer\_unique\_identifier**.

**Post Request Body**

|                              |                                                                                                                                              |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| customer\_unique\_identifier | <ol><li>This is mandatory when you are using saved card payment.</li><li>This data must be Unique like email id,customer id, etc.,</li></ol> |

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Payment Response Handling

### Implement Payment Listener

Set and Implement our payment listener to receive payment results.  Use the code below to obtain the payment result.

{% code lineNumbers="true" %}

```java
//Implementing
public class ActDemoPay extends AppCompatActivity implements FPayListener {

    @Override
    public void onTransactionSuccess(String transactionId, String responseCode) {
        // Success Callback
    }

    @Override
    public void onTransactionFailure(String error, String transactionId, String responseCode) {
        // Failure Callback.
    }

    @Override
    public void onTransactionCancelled(String responseCode) {
        // Transaction Cancelled by User
    }

}
```

{% endcode %}

### Foloosi Log

You can enable / disable the SDK logs by using the line of code below. It will be disabled by default.

```
FoloosiLog.setLogVisible(true or false);
```

#### List of properties available, <a href="#list-of-properties-available" id="list-of-properties-available"></a>

​

| Name                       | Type   | Required | Description                                                              |
| -------------------------- | ------ | -------- | ------------------------------------------------------------------------ |
| merchantKey                | string | true     | your foloosi merchant key                                                |
| secretKey                  | string | true     | your foloosi secret key                                                  |
| referenceToken             | string | true     | the reference token - generates automatically if null                    |
| setOrderAmount             | double | true     | transaction amount                                                       |
| setCurrencyCode            | string | true     | transaction currency                                                     |
| setName                    | string | false    | customer name - auto render in payment popup if passed                   |
| setEmail                   | string | false    | customer email - auto render in payment popup if passed                  |
| setMobile                  | string | false    | customer mobile - auto render in payment popup if passed                 |
| setCustomerUniqueReference | string | false    | It must be unique for the customer,Like customer unique id or email id., |

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# iOS SDK

Integrate Our iOS SDK For Seamless Payments !

## Foloosi iOS SDK Integration

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

### iOS 9 Update

```
pod 'Foloosi-iOS-SDK', '~> 1.5.1'
pod update
```

iOS 9 has higher requirements for secure URLs. As many Indian banks do not comply with the requirements, you can implement the following as a workaround in Info.plist

{% code lineNumbers="true" %}

```swift
<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>
```

{% endcode %}

### Supported currencies

AED, USD, EUR, SAR, etc.,

**NOTE**

Supported 170 world Currencies.

Apple pay will be available only when API mode is in live.

### Support &#x20;

Visit <https://www.foloosi.com> for support requests or email <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Initiate Payment

This Section briefs about how to initiate a payment !

Foloosi's iOS SDK provides easy payment collections.

You can use it on the front-end to open payment page or use the actual flow to create Payment Token.

###

### Step - 1 - Add Dependency

```
pod 'Foloosi-iOS-SDK', '~> 1.5.1'
pod update
```

### Step - 2 - Import SDK

```
import FoloosiSdk
```

### Step - 3 - Initialize SDK

To initialize the SDK - Create InitData Object with the merchant key you retrieved from foloosi merchant panel. If you do not have a merchant key create a new one and customize the checkout page to your liking.

{% code lineNumbers="true" %}

```java
let initData = InitData()
initData.merchantKey = "merchantKey" //"Your Unique Merchant Key"
initData.customColor = "costomColor"  // It must be valid 6 digit hexadecimal color to make payment page loading color as app color. 
FoloosiPay.initSDK(initData: initData, withDelegate: self)
```

{% endcode %}

**Important Note**&#x20;

You can Follow any one of the methods below to initiate payment widget

### a. Make Payment with order object

#### &#x20;Create orderData Object with necessary inputs

You can create the order data or payment input with our OrderData Model class. Here you need to provide order id, title, description, currency code, order amount and customer details like name, email and mobile number.

{% code lineNumbers="true" %}

```swift
let orderData = OrderData()
orderData.orderTitle = "" // Any Title
orderData.currencyCode = ""  // 3 digit currency code like "AED"
orderData.orderAmount = 0  // in double format ##,###.##
orderData.orderId = ""  // unique order id. 
orderData.orderDescription = ""  // any description.
orderData.postalCode = "00000" 
orderData.state = "Dubai"
orderData.country = "UAE"
orderData.customerUniqueReference = ""  //Customer Unique Reference value should be email/mobile no/uniqueCustomer id from your DB 
let customer = Customer()
customer.customerEmail = "email@gmail.com"
customer.customerName = "name"
customer.customerCity = "City"
customer.customerAddress = "Address"
customer.customerPhoneNumber = "1234567890"
orderData.customer = customer
```

{% endcode %}

#### \*Important Note\*

orderData.customerUniqueReference = "Unique value"

// Unique value must be customer id/email/mobile number for saved card feature.&#x20;

Now make payment with order data you created above.

```
 FoloosiPay.makePayment(orderData);
```

### &#x20;b.Make Payment with reference token

#### Initialize api <a href="#initialize-api" id="initialize-api"></a>

## Get Reference Token

<mark style="color:green;">`POST`</mark> `https://api.foloosi.com/aggregatorapi/web/initialize-setup`

#### Headers

| Name                                          | Type   | Description                              |
| --------------------------------------------- | ------ | ---------------------------------------- |
| secret\_key<mark style="color:red;">\*</mark> | String | Your Merchant Key get from Foloosi Panel |

#### Request Body

| Name                                                  | Type              | Description                               |
| ----------------------------------------------------- | ----------------- | ----------------------------------------- |
| source<mark style="color:red;">\*</mark>              | String (ios\_sdk) | For apple pay "ios\_sdk" should be passed |
| transaction\_amount<mark style="color:red;">\*</mark> | Double            |                                           |
| currency<mark style="color:red;">\*</mark>            | String            |                                           |
| customer\_mobile<mark style="color:red;">\*</mark>    | String            |                                           |
| customer\_email<mark style="color:red;">\*</mark>     | String            |                                           |
| customer\_name<mark style="color:red;">\*</mark>      | String            |                                           |
| customer\_city                                        | String            |                                           |
| customer\_address                                     | String            |                                           |
| billing\_state                                        | String            |                                           |
| billing\_country                                      | String            |                                           |
| billing\_postal\_code                                 | String            |                                           |
| customer\_unique\_identifier                          | String            |                                           |
| description                                           | String            | Product or order information              |
| optional1                                             | String            | You can pass additional fields            |
| optional2                                             | String            | You can pass additional fields            |
| optional3                                             | String            | You can pass additional fields            |

{% tabs %}
{% tab title="200: OK success response" %}

```javascript
{
 "message": "Application setup successfully",
 "data": {
   "reference_token":
   "U0sjdGVzdF8kMnkkMTAkM21LRi0xZGliVDhldTV4NHlZSm9tZXZobnZxWTNEVnZmay1MdHNndTNFenNBTDU0clhWYkccVE4jRkxTQVBJNWM3Njk2ZDkwOWIzNxxSVCMkMnkkMTAkQXZ4ay9wdjlpTFlYLzRSZ2FjSkxpZWhHb2o0U0wvTFpZNXAyVjRGOVFycWNQZ2lHQ3VEZ08="
  }
 }
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Api mode" %}

```javascript
{
    "message": "Invalid Integration settings! Kindly check both foloosi merchant application settings and your integration keys"
}
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Header response" %}

```javascript
{
    "message": "Invalid secret key"
}
```

{% endtab %}

{% tab title="404: Not Found Invalid request type" %}

```javascript
{
    "message": "No routes found"
}
```

{% endtab %}
{% endtabs %}

Make the payment with the order  reference token

```java
var referenceToken = "Your Reference Token"
FoloosiPay.makePaymentWithReferenceToken(referenceToken)
```

#### Api Specification <a href="#api-specification" id="api-specification"></a>

* Request call must be on **POST.**
* This Api will be used to confirm the feature you are about to Use.
* For **Saved Card Payment** Method, You need to pass your customer unique details like email,etc. to **customer\_unique\_identifier**.

**Post Request Body**

​

|                              |                                                                                                                                              |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| customer\_unique\_identifier | <ol><li>This is mandatory when you are using saved card payment.</li><li>This data must be Unique like email id,customer id, etc.,</li></ol> |

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi

#### &#x20;<a href="#api-specification" id="api-specification"></a>


# Payment Response Handling

### Implement Payment Listener

Set and Implement our payment listener to receive payment results.  Use the code below to obtain the payment result.

{% code lineNumbers="true" %}

```swift
extension ViewController: FoloosiDelegate{
    func onPaymentError(descriptionOfError: String, transactionId: String, responseCode: String) {
        // Failure Callback.
    }

    func onPaymentSuccess(transactionId: String, responseCode: String) {
         // Success Callback
    }
}
```

{% endcode %}

### Foloosi Log

You can enable / disable the SDK logs by using the line of code below. It will be disabled by default.

```
FLog.setLogVisible(debug: true or false)
```

### Sample Payment Reference.

Please check [this link](https://github.com/FoloosiTech/Foloosi-iOS-SDK/tree/master/Demo) for sample payment with above steps.

**NOTE**

Supports 170 World Currencies.

### Support &#x20;

Visit <https://www.foloosi.com> for support requests or email <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# React Native SDK

Integrate Our iOS SDK For Seamless Payments ! This SDK is compatible with Android and iOS.

## React Native SDK Integration

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

#### Android Proguard Rules (Mandatory for release build)

{% code lineNumbers="true" %}

```javascript
-keepclassmembers class * {
    @android.webkit.JavascriptInterface <methods>;
}

-keepattributes JavascriptInterface
-keepattributes *Annotation*

-dontwarn com.foloosi.**
-keep class com.foloosi.** {*;}

-optimizations !method/inlining/*
```

{% endcode %}

* settings build.gradle **MUST** be 4.1.0 or higher.
* Kotlin version **MUST** be 1.4.30 or higher.

###

**NOTE**

Supports 170 World Currencies.

Apple pay will be available only when API mode is in live.

### Support &#x20;

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Make Payment

This Section briefs about how to initiate a payment !

Foloosi's React Native SDK provides easy payment collections.

You can use it on the front-end to open payment page or use the actual flow to create Payment Token

### Step - 1 - Install dependency with npm package <a href="#markdown-header-step-1-install-dependency-with-npm-package" id="markdown-header-step-1-install-dependency-with-npm-package"></a>

`$ npm install react-native-foloosi --save`

### Step - 2 - Usage <a href="#markdown-header-step-2-usuage" id="markdown-header-step-2-usuage"></a>

{% code lineNumbers="true" %}

```javascript
import Foloosi from 'react-native-foloosi';

var initData = {
  merchantKey: 'YOUR_KEY', // public key
  customColor: '#AB34FD', // make payment page loading color as app color. // optional
};

Foloosi.initSDK(JSON.stringify(initData))
```

{% endcode %}

### a. Make Payment with order object

You need to give the order id, title, description, currency code, order amount and customer details like name, email and mobile number.

{% code lineNumbers="true" %}

```javascript
// Customer field is optional.
var orderData = {
  orderAmount: 1.0, // in double format ##,###.##
  orderId: 'orderId', // unique order id
  orderDescription: 'order description', // any description. // optional
  currencyCode: 'AED',
  customerUniqueReference: 'customer reference id', // optional
  country: 'ARE', // mandatory for ios
  postalCode: '000000', //optional
  state: 'Dubai', //optional
  customer: {
    name: 'Test',
    email: 'email@gmail.com',
    mobile: '9876543210',
    address: 'Test Adddddress', // optional
    city: 'Test City', // optional
  },
};
```

{% endcode %}

&#x20;Use the line of code below to make payment with the order data&#x20;

{% code lineNumbers="true" %}

```javascript
Foloosi.makePayment(JSON.stringify(orderData), (response) => {
  let { success, message, transaction_id } = JSON.parse(response);
  //success - type boolean
  //message - type string
  //transaction_id - type string if success is true otherwise it's null
});
```

{% endcode %}

### &#x20;b. Make Payment with reference token

#### Initialize api <a href="#initialize-api" id="initialize-api"></a>

## Get Reference Token

<mark style="color:green;">`POST`</mark> `https://api.foloosi.com/aggregatorapi/web/initialize-setup`

#### Headers

| Name                                          | Type   | Description                              |
| --------------------------------------------- | ------ | ---------------------------------------- |
| secret\_key<mark style="color:red;">\*</mark> | String | Your Merchant Key get from Foloosi Panel |

#### Request Body

| Name                                                  | Type   | Description                    |
| ----------------------------------------------------- | ------ | ------------------------------ |
| transaction\_amount<mark style="color:red;">\*</mark> | Double |                                |
| currency<mark style="color:red;">\*</mark>            | String |                                |
| customer\_unique\_identifier                          | String |                                |
| customer\_mobile                                      | String |                                |
| customer\_email                                       | String |                                |
| customer\_name                                        | String |                                |
| customer\_city                                        | String |                                |
| customer\_address                                     | String |                                |
| billing\_state                                        | String |                                |
| billing\_country                                      | String |                                |
| billing\_postal\_code                                 | String |                                |
| description                                           | String | Product or order information   |
| optional1                                             | String | You can pass additional fields |
| optional2                                             | String | You can pass additional fields |
| optional3                                             | String | You can pass additional fields |

{% tabs %}
{% tab title="200: OK success response" %}

```javascript
{
 "message": "Application setup successfully",
 "data": {
   "reference_token":
   "U0sjdGVzdF8kMnkkMTAkM21LRi0xZGliVDhldTV4NHlZSm9tZXZobnZxWTNEVnZmay1MdHNndTNFenNBTDU0clhWYkccVE4jRkxTQVBJNWM3Njk2ZDkwOWIzNxxSVCMkMnkkMTAkQXZ4ay9wdjlpTFlYLzRSZ2FjSkxpZWhHb2o0U0wvTFpZNXAyVjRGOVFycWNQZ2lHQ3VEZ08="
  }
 }
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Api mode" %}

```javascript
{
    "message": "Invalid Integration settings! Kindly check both foloosi merchant application settings and your integration keys"
}
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Header response" %}

```javascript
{
    "message": "Invalid secret key"
}
```

{% endtab %}

{% tab title="404: Not Found Invalid request type" %}

```javascript
{
    "message": "No routes found"
}
```

{% endtab %}
{% endtabs %}

Use the line of code below to make payment with the  reference token

{% code lineNumbers="true" %}

```javascript
Foloosi.makePaymentWithReferenceToken('REFERENCE_TOKEN', (response) => {
  let { success, message, transaction_id } = JSON.parse(response);
  //success - type boolean
  //message - type string
  //transaction_id - type string if success is true otherwise it's null
});
```

{% endcode %}

#### Api Specification <a href="#api-specification" id="api-specification"></a>

* Request call must be on **POST.**
* This Api will be used to confirm the feature you are about to Use.
* For **Saved Card Payment** Method, You need to pass your customer unique details like email,etc. to **customer\_unique\_identifier**.

**Post Request Body**

​

| Name                         | Description                                                                                                                                  |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| customer\_unique\_identifier | <ol><li>This is mandatory when you are using saved card payment.</li><li>This data must be Unique like email id,customer id, etc.,</li></ol> |

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi

#### &#x20;<a href="#api-specification" id="api-specification"></a>


# Flutter SDK

Integrate Our Flutter SDK For Seamless Payments ! This SDK is compatible with Android and iOS.

[![pub package](https://img.shields.io/pub/v/foloosi_plugins.svg)](https://pub.dev/packages/foloosi_plugins)

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

#### Dart Versions

```dart
environment:
  sdk: ">=2.12.0 <4.0.0"
```

## Android Requirement

#### Set up Android build.gradle (android/app/build.gradle)

```
android {
    defaultConfig {
        minSdkVersion 21
    }
    buildTypes {
        release {
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }
    }
}
```

#### Proguard Rules (Mandatory for release build)

```
-keepclassmembers class * {
    @android.webkit.JavascriptInterface <methods>;
}

-keepattributes JavascriptInterface
-keepattributes *Annotation*

-dontwarn com.foloosi.**
-keep class com.foloosi.* {*;}

-optimizations !method/inlining/*
```

#### Note

* `4.1.0 or higher` is required for settings build.gradle
* `1.4.30 or higher` is required for kotlin version

## iOS Requirement

iOS Deployment Target 12+ (iPhone, iPad)

#### SDK Properties

If you are using secret and merchant keys as strings in flutter, **Remember** to escape the dollar sign although it is recommended to load these from backend.

#### sample escape string

```
merchantKey: 'key_\$2\$1\$1xxxxxxxxxxxxxxxxxxxxx'
```

**NOTE**

Supports 170 World Currencies

Apple pay will be available only when API mode is in live.

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Installation

### Use this package as a library

#### Depend on it

Run this command,

```shell
 $ flutter pub add foloosi_plugins
```

This will add the line below to your package's pubspec.yaml (run an implicit`flutter pub get`),

```yaml
dependencies:
  foloosi_plugins: ^1.0.16
```

Alternatively, your editor might support `flutter pub get`. Check your editor docs to learn more.

#### Import it

Now in your Dart code use,

```dart
import 'package:foloosi_plugins/foloosi_plugins.dart';
```

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Make Payment

### Step 1 - Initiate SDK

```dart
var initData = {
          "merchantKey": "Your Merchant Key",
          "customColor": "#1E8449",
        };
   await FoloosiPlugins.init(json.encode(initData));
```

### sample escape string

```
merchantKey: 'key_\$2\$1\$1xxxxxxxxxxxxxxxxxxxxx'
```

**Important Note** - You can Follow any one of the methods below to initiate payment widget

### a. Make Payment with order object

#### &#x20;Create Order Data Object with necessary inputs

You can create the order data or payment input with our OrderData Model class. Here you need to provide order id, title, description, currency code, order amount and customer details like name, email and mobile number.

```dart
var orderData = {
          "orderId": "521",
          "orderDescription": "Order Description",
          "orderAmount": double.parse(amountTextField.text),
          "state": "",
          "postalCode": "",
          "country": "ARE",
          "currencyCode": "AED",
          "customerUniqueReference": "",
          "customer": {
            "name": "Foloosi Test",
            "email": "example@foloosi.com",
            "mobile": "501234567",
            "code": "",
            "address": "",
            "city": "",
          },
        };
var result = await FoloosiPlugins.makePayment(json.encode(orderData));
if (kDebugMode) {
          print("Payment Response: $result");
}
```

#### \*Important Note\*

orderData.customerUniqueReference = "Unique value"

// Unique value must be customer id/email/mobile number for saved card feature.&#x20;

Now make payment with order data you created above.

### &#x20;b.make Payment with reference token

#### Initialize api <a href="#initialize-api" id="initialize-api"></a>

## Get Reference Token

<mark style="color:green;">`POST`</mark> `https://api.foloosi.com/aggregatorapi/web/initialize-setup`

#### Headers

| Name                                          | Type   | Description                              |
| --------------------------------------------- | ------ | ---------------------------------------- |
| secret\_key<mark style="color:red;">\*</mark> | String | Your Merchant Key get from Foloosi Panel |

#### Request Body

| Name                                                  | Type              | Description                               |
| ----------------------------------------------------- | ----------------- | ----------------------------------------- |
| source<mark style="color:red;">\*</mark>              | String (ios\_sdk) | For apple pay "ios\_sdk" should be passed |
| transaction\_amount<mark style="color:red;">\*</mark> | Double            |                                           |
| currency<mark style="color:red;">\*</mark>            | String            |                                           |
| customer\_mobile<mark style="color:red;">\*</mark>    | String            |                                           |
| customer\_email<mark style="color:red;">\*</mark>     | String            |                                           |
| customer\_name<mark style="color:red;">\*</mark>      | String            |                                           |
| customer\_city                                        | String            |                                           |
| customer\_address                                     | String            |                                           |
| billing\_state                                        | String            |                                           |
| billing\_country                                      | String            |                                           |
| billing\_postal\_code                                 | String            |                                           |
| customer\_unique\_identifier                          | String            |                                           |
| description                                           | String            | Product or order information              |
| optional1                                             | String            | You can pass additional fields            |
| optional2                                             | String            | You can pass additional fields            |
| optional3                                             | String            | You can pass additional fields            |

{% tabs %}
{% tab title="200: OK success response" %}

```javascript
{
 "message": "Application setup successfully",
 "data": {
   "reference_token":
   "U0sjdGVzdF8kMnkkMTAkM21LRi0xZGliVDhldTV4NHlZSm9tZXZobnZxWTNEVnZmay1MdHNndTNFenNBTDU0clhWYkccVE4jRkxTQVBJNWM3Njk2ZDkwOWIzNxxSVCMkMnkkMTAkQXZ4ay9wdjlpTFlYLzRSZ2FjSkxpZWhHb2o0U0wvTFpZNXAyVjRGOVFycWNQZ2lHQ3VEZ08="
  }
 }
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Api mode" %}

```javascript
{
    "message": "Invalid Integration settings! Kindly check both foloosi merchant application settings and your integration keys"
}
```

{% endtab %}

{% tab title="401: Unauthorized Invalid Header response" %}

```javascript
{
    "message": "Invalid secret key"
}
```

{% endtab %}

{% tab title="404: Not Found Invalid request type" %}

```javascript
{
    "message": "No routes found"
}
```

{% endtab %}
{% endtabs %}

```javascript
var referenceToken = "YOUR REFERENCE TOKEN";
var result = await FoloosiPlugins.makePaymentWithReferenceToken(referenceToken);
if (kDebugMode) {
          print("Payment Response: $result");
}
```

#### Api Specification <a href="#api-specification" id="api-specification"></a>

* Request call must be in **POST.**
* With this api only your going to confirm which feature you are using.
* For **Saved Card Payment** Method, You need to pass your customer unique details like email,etc., in **customer\_unique\_identifier**.

**Post Request Body**

​

| Name                         | Description                                                                                                                         |
| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| customer\_unique\_identifier | <ol><li>It is mandatory when you are using saved card payment.</li><li>It must be Unique like email id,customer id, etc.,</li></ol> |

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Sample Dart Program

```dart
import 'dart:async';
import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:foloosi_plugins/foloosi_plugins.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  TextEditingController amountTextField = TextEditingController();
  final GlobalKey<ScaffoldState> key = GlobalKey<ScaffoldState>();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        key: key,
        appBar: AppBar(
          backgroundColor: Colors.blue,
          title: const Text('Foloosi Example',
              style: TextStyle(color: Colors.white)),
        ),
        body: Center(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Container(
                margin: const EdgeInsets.all(20),
                child: TextField(
                  controller: amountTextField,
                  keyboardType: TextInputType.text,
                  decoration:
                      const InputDecoration(hintText: "Enter the amount"),
                ),
              ),
              GestureDetector(
                onTap: () {
                  initPlatformState();
                },
                child: Container(
                  margin: const EdgeInsets.all(20),
                  height: 50,
                  color: Colors.blue,
                  child: const Center(
                    child: Text(
                      "Proceed Payment",
                      style: TextStyle(color: Colors.white, fontSize: 18),
                    ),
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }

  /// Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    if (amountTextField.text.trim().isNotEmpty) {
      try {
        var initData = {
          "merchantKey": "Your Merchant Key",
          "customColor": "#1E8449",
        };
        await FoloosiPlugins.init(json.encode(initData));

        FoloosiPlugins.setLogVisible(true);
        var res = {
          "orderId": "ORD1234",
          "orderDescription": "Your Order Description",
          "orderAmount": double.parse(amountTextField.text),
          "state": "",
          "postalCode": "",
          "country": "ARE",
          "currencyCode": "AED",
          "customerUniqueReference": "",
          "customer": {
            "name": "Foloosi Test",
            "email": "tester@foloosi.com",
            "mobile": "501234567",
            "code": "",
            "address": "",
            "city": "",
          },
        };
        var result = await FoloosiPlugins.makePayment(json.encode(res));
        // var referenceToken = "";
        // var result = await FoloosiPlugins.makePaymentWithReferenceToken(referenceToken);
        debugPrint("Payment Response: $result");
      } on Exception catch (exception) {
        exception.runtimeType;
      }
    } else {
      debugPrint("Error: Please enter amount");
    }
  }
}
```


# Foloosi Subscription for WooCommerce

Use our Subscription for WooCommerce that allows you to manage recurring payments for products and grants you periodically scheduled income.

### Installation

1. Go to this link (<https://wordpress.org/plugins/foloosi-subscription>) to download the Foloosi Subscription for Woocommerce plugin.
2. Unzip the downloaded zip file.
3. Upload the plugin folder into the `wp-content/plugins/` directory of your WordPress site.
4. Activate `Foolosi Subscription for WooCommerce` from Plugins page.

### Configuration

Our plugin adds a new menu item named "Foloosi". There, you should find Foloosi plugins setting & subscription listing page.

### Steps to add Subscription Product&#x20;

1. GO to Products
2. For Simple Product, ENABLE Subscription in Product Data and fill the appropriate fields below in Subscription Settings.
   1. Billing Frequency&#x20;
   2. No. of Billing Cycle
   3. Setup fee
3. For Variable Product, GO to variations tab in Product Data and choose *variation* and then enable Subscription. Fill the appropriate fields below in Subscription Settings.
   1. Billing Frequency&#x20;
   2. No. of Billing Cycle
   3. Setup fee

![](https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQCT5TjkKNyS34llPoX%2F-MSfU3h8Knl5oF0yNTNI%2F-MSfcfZG_yjHX-VEwnjG%2Fimage.png?alt=media\&token=d384e116-7c60-47a3-968a-9d25949fffc2)

**Screenshots,**

![Enable Foloosi Subscriptions](https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQCT5TjkKNyS34llPoX%2F-MSfU3h8Knl5oF0yNTNI%2F-MSfcUTqmfjummhN-QFK%2Fimage.png?alt=media\&token=b437c25d-9abb-4315-a9e4-a1e9bb262417)

![Simple Product](https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQCT5TjkKNyS34llPoX%2F-MSfU3h8Knl5oF0yNTNI%2F-MSf_2rsEq4_BZTo_Ee5%2Fimage.png?alt=media\&token=1bbcfdb6-ce9f-443f-adae-465b708d78e0)

![Variable Product](https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQCT5TjkKNyS34llPoX%2F-MSfU3h8Knl5oF0yNTNI%2F-MSfa7yQmP_ZWr3o52wI%2Fimage.png?alt=media\&token=b0679231-784f-474c-9f31-fb83af1bd87e)

![Orders history for Foloosi Subscription](https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQCT5TjkKNyS34llPoX%2F-MSfU3h8Knl5oF0yNTNI%2F-MSfbE4bZjr1zJSwNeKI%2Fimage.png?alt=media\&token=b171f918-8d13-4b78-8e14-231148dd52e3)

![Foloosi Subscription - Order Details](https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQCT5TjkKNyS34llPoX%2F-MSfU3h8Knl5oF0yNTNI%2F-MSfc0ioi76WAfAtHU2e%2Fimage.png?alt=media\&token=3606d3fb-63ec-438b-9a45-fbf0a529af44)

#### &#x20;<a href="#support-or-contact" id="support-or-contact"></a>

###

**NOTE**

Supports 170 World Currencies

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Api Subscription

This Section guides you to create subscription via api payment mode.

The API subscription is compatible with all types of integration methods. If you want **to skip the 3DS option**, please contact Foloosi's support team.

**NOTE,**

**A subscription can only be created when the API is set to live mode.**

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

### Steps to create subscription

To create a subscription using any type of integration, simply add the required post data to the initialize API.

<pre class="language-javascript" data-line-numbers><code class="lang-javascript">// additional data to be passed with initialize api,
api_subscription :  "Yes", /**NOTE- THIS FIELD MUST BE IN YES */
<strong>recurring_data : {
</strong>    plan : {
        name : "Api new plan", /** YOUR PLAN NAME*/
        billing_type : "day", /** value must be day/week/month/year */
        billing_cycle : 1, /** it only applicable for week and month billing type.ex Every 1 weeks */
        billing_currency : "AED", //it should be 3 digit code and other than AED you should enabled multi currency option from Foloosi
        billing_amount : "SUBSCRIPTION AMOUNT",
        setup_fee : "SETUP FEE", //which is subscription setup one time fee
        total_count : 10, //number of deductions
        description : "daily demo plan",
        start_date : "dd-mm-yyyy" //which is optional param.if you given value should be in the format
                                  //Note : if you given date means .at the time of payment will be charged by transaction
                                  //amount as you given .subscription recurring will start on the given date and given billing amount
    },
    customer : {
        name : "CUSTOMER NAME",
        email : "CUSTOMER EMAIL ID"',
        mobile : "CUSTOMER MOBILE NO",
    }
}
</code></pre>

#### Sample images

After successful subscription creation, it has to be listed in Foloosi panel. Please login to view the subscription created.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FAMmztaxIWS1VWqgGcqHU%2Fsubscrption.png?alt=media&amp;token=9d23f6d0-01ee-4c5c-8b28-ee4a4da9b4fa" alt=""><figcaption><p>Subscription list</p></figcaption></figure>

Click the subscription id to view details like below

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FMbHZrILKoFMC8TQoj9S5%2Fsubscrption-2.png?alt=media&amp;token=7662ab11-9ead-4d01-8459-e9898cccbd65" alt=""><figcaption><p>Subscription detail popup</p></figcaption></figure>

**To get the Transaction Details And Subscription number**

For Transaction Details, you can use the Get request as below.

{% code lineNumbers="true" %}

```javascript
GET API LINK: https://api.foloosi.com/v1/api/transaction-detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE:
{
    "message": "Transaction detail are",
    "data": {
        "transaction_no": "FLSXXXXXXXXXXXXXX",
        "receipt": null,
        "request_currency": "AED",
        "request_amount": 18,
        "customer_currency": "AED",
        "customer_amount": 18,
        "merchant_currency": null,
        "merchant_amount": null,
        "status": "pending",
        "created": "2022-11-01T10:21:04+00:00",
        "optional1": "order-id-123",\\optional fields passed on initialize api
        "optional2": "order-reference",\\optional fields passed on initialize api
        "optional3": "",\\optional fields passed on initialize api
        "subscription_no": "FLSSXXXXXXXXXXXXX"
    }
}
```

{% endcode %}

**To get the Subscription Details**&#x20;

For Subscription Details, you can use the Get request as below,&#x20;

{% code lineNumbers="true" %}

```javascript
GET API LINK: https://api.foloosi.com/v1/open/subscription-link/detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE:
{
    "message": "Subscription details are",
    "data": {
        "customer": {
            "name": "FOLOOSI CUSTOMER",
            "email": "tech@foloosi.com",
            "mobile": "567812345",
            "card_last_four": "5123"
        },
        "plan": {
            "name": "Mobile PostPaid",
            "type": "Billed Every month",
            "amount": "AED 114.60",
            "unit": "1 x AED 114.60 per unit",
            "setup_fee": 0,
            "status": "active",
            "created": "01-10-2022 02:11 am"
        },
        "invoices": [
            {
                "id": 50094,
                "subscription_id": 1031,
                "billing_type": "month",
                "billing_count": 1,
                "bill_date": "2022-11-01",
                "status": "paid"
            },
            {
                "id": 50095,
                "subscription_id": 1031,
                "billing_type": "month",
                "billing_count": 1,
                "bill_date": "2022-12-01",
                "status": "pending"
            }
        ]
    }
}
```

{% endcode %}

**To cancel a Subscription**&#x20;

**NOTE** : Follow any one of the methods below to cancel a subscription,

**a**. To cancel a Subscription with api , you can use the api given below,&#x20;

{% code lineNumbers="true" %}

```javascript

PUT API LINK: https://api.foloosi.com/v1/open/subscription-link/suspend

HEADERS:
secret_key : YOUR_SECRET_KEY

BODY:
subscription_no : YOUR_SUBSCRIPTION_NO

SAMPLE RESPONSE:
{
    "message": "Subscription cancelled successfully",
    "data": {
        "status": 200
    }
}
```

{% endcode %}

**b**. You can cancel the subscription directly from foloosi panel.

* login to foloosi panel.
* click *subscriptions* under subscription category.
* click the subscription id, it will open a popup as shown below.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FXx11Catiy4V7JyjQBkQM%2Fsubscrption-cancel.png?alt=media&amp;token=6bf81cc2-3e36-4ae7-80aa-0d09fe4c9a6f" alt=""><figcaption><p>cancel subscription</p></figcaption></figure>

**NOTE**

Supports 170 World Currencies

## Properties

List of properties available:

<table><thead><tr><th width="103">Name</th><th width="98">Type</th><th width="122">Required</th><th width="211">Description</th></tr></thead><tbody><tr><td>merchant_key</td><td>String</td><td>true</td><td>your foloosi merchant key</td></tr><tr><td>secret_key</td><td>String</td><td>true</td><td>your foloosi secret key</td></tr><tr><td>reference_token</td><td>String</td><td>false</td><td>the reference token - generates automatically if null</td></tr><tr><td>site_redirect<em>_</em>url</td><td>String</td><td>false</td><td>the url which will get payment response after payment completed.</td></tr><tr><td>transaction_amount</td><td>String</td><td>true</td><td>transaction amount </td></tr><tr><td>currency</td><td>String</td><td>true</td><td>transaction currency</td></tr><tr><td>customer_name</td><td>String</td><td>false</td><td>customer name - auto render in payment popup if passed</td></tr><tr><td>customer_email</td><td>String</td><td>false</td><td>customer email - auto render in payment popup if passed</td></tr><tr><td>customer_mobile</td><td>String</td><td>false</td><td>customer mobile - auto render in payment popup if passed</td></tr><tr><td>customer_address</td><td>String</td><td>false</td><td>customer address - auto render in payment popup if passed</td></tr><tr><td>customer_city</td><td>String</td><td>false</td><td>customer city - auto render in payment popup if passed</td></tr><tr><td>billing_state</td><td>String</td><td>false</td><td>Billing State - auto render in payment popup if passed</td></tr><tr><td>billing_postal_code</td><td>String</td><td>false</td><td>Billing Postcode - auto render in payment popup if passed</td></tr><tr><td>billing_country</td><td>String</td><td>false</td><td>Billing Country - auto render in payment popup if passed</td></tr><tr><td>api_subscription</td><td>String</td><td>true</td><td>It  must be Yes for create subscription</td></tr><tr><td>recurring_data</td><td>Array</td><td>true</td><td>It contain subscription details</td></tr><tr><td>plan</td><td>Array</td><td>true</td><td>It  must have plan detail</td></tr><tr><td>name</td><td>String</td><td>true</td><td>It must be string and name for the plan</td></tr><tr><td>biling_type</td><td>String</td><td>true</td><td>it must be day/week/month/year</td></tr><tr><td>billing_cycle</td><td>Integer</td><td>true</td><td>it only applicable for week and month billing type.ex Every 1 weeks</td></tr><tr><td>billing_currency</td><td>String</td><td>true</td><td>it should be 3 digit code and other than AED you should enabled multi currency option from Foloosi</td></tr><tr><td>billing_amount</td><td>Integer</td><td>true</td><td>recurring amount should be passed here</td></tr><tr><td>setup_fee</td><td>Integer</td><td>false</td><td>which is subscription setup one time fee</td></tr><tr><td>total_count</td><td>Integer</td><td>true</td><td>number of deductions in recurring</td></tr><tr><td>description</td><td>String</td><td>true</td><td>subscription description should be entered</td></tr><tr><td>start_date</td><td>String</td><td>false</td><td>which is optional param.if you given value should be in the format('dd-mm-yyyy')<br>if you given date means .at the time of payment will be charged by transaction<br>amount as you given .subscription recurring will start on the given date and given billing amount</td></tr><tr><td>customer</td><td>Array</td><td>true</td><td>It should contain customer details</td></tr><tr><td>name</td><td>String</td><td>true</td><td>it  must be customer name</td></tr><tr><td>email</td><td>String</td><td>true</td><td>it must be customer email Id</td></tr><tr><td>mobile</td><td>Integer</td><td>true</td><td>it must be customer mobile number</td></tr></tbody></table>

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Sample Integration

### Sample integration using javascript

Copy paste the code below in your webpage

{% code lineNumbers="true" %}

```javascript
<script type="text/javascript" src="https://www.foloosi.com/js/foloosipay.v2.js"></script>
<script>
        // post data for create order id
        data = {
            transaction_amount : "YOUR INITIAL SUBSCRIPTION AMOUNT",
            currency : "YOUR CURRENCY",
            customer_name : "YOUR CUSTOMER NAME",
            customer_email : "YOUR CUSTOMER EMAIL",
            customer_mobile : "YOUR CUSTOMER MOBILE NO",
            customer_address: "YOUR CUSTOMER ADDRESS",
            customer_city: "YOUR CUSTOMER CITY",
            billing_country: "YOUR CUSTOMER COUNTRY",
            billing_state: "YOUR CUSTOMER STATE",
            billing_postal_code: "YOUR CUSTOMER POSTAL CODE",
            source: "api subscription",
            api_subscription :  "Yes", /**NOTE- THIS FIELD MUST BE IN YES */
            recurring_data : {
                plan : {
                    name : "Api new plan", /** YOUR PLAN NAME*/
                    billing_type : "day", /** value must be day/week/month/year */
                    billing_cycle : 1, /** it only applicable for week and month billing type.ex Every 1 weeks */
                    billing_currency : "AED", //it should be 3 digit code and other than AED you should enabled multi currency option from Foloosi
                    billing_amount : "SUBSCRIPTION AMOUNT",
                    setup_fee : "SETUP FEE", //which is subscription setup one time fee
                    total_count : 10, //number of deductions
                    description : "daily demo plan",
                    start_date : "dd-mm-yyyy" //which is optional param.if you given value should be in the format
                                              //Note : if you given date means .at the time of payment will be charged by transaction
                                              //amount as you given .subscription recurring will start on the given date and given billing amount
                },
                customer : {
                    name : "CUSTOMER NAME",
                    email : "CUSTOMER EMAIL ID"',
                    mobile : "CUSTOMER MOBILE NO",
                }
            }
        }
	let fetchRes = fetch(
            "https://api.foloosi.com/aggregatorapi/web/initialize-setup",{
            method: "POST",
            headers: {
              "Content-Type": "application/json",
              "merchant_key": "YOUR_MERCHANT_KEY" /** get the merchant key from foloosi panel*/
            },
            body: JSON.stringify(data)
         });

	fetchRes.then(res =>
	  res.json()).then(d => {
  	    console.log(d.data);
            var options = {
                "reference_token" : d.data.reference_token, //which is get from step2
                "merchant_key" : "YOUR_MERCHANT_KEY",/** get the merchant key from foloosi panel*/
            }
            var fp1 = new Foloosipay(options);
            fp1.open();
        })
        foloosiHandler(response, function (e) {
          if(e.data.status == 'success'){
            //responde success code
            //console.log(e.data.status);
            //console.log(e.data.data.transaction_no);
          }
          if(e.data.status == 'error'){
            //responde success code
            //console.log(e.data.status);
            //console.log(e.data.data.payment_status);
          }
          if(e.data.status == 'closed'){
            //Payment Popup Closed
            //console.log(e.data);
          }
        });
</script>
```

{% endcode %}


# Subscription

This Section guides you to create subscription via api.

The subscription documention will guide you, how to integrate subscription payment via api. If you want **to skip the 3DS option**, please contact Foloosi's support team.

**NOTE,**

**A subscription can only be created when the API is set to live mode.**

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

### Steps to create subscription

To create a subscription and send the subscription link to the customer via SMS or email, this process will skip the payment step before creating the subscription. The link will be sent after the subscription is created, and the customer can proceed with the payment.

{% code lineNumbers="true" %}

```javascript
// Create Subscription
POST API LINK: https://api.foloosi.com/v1/subscription/create

// Post Body Fields
{
    "plan_name" : "Api new plan test", /** YOUR PLAN NAME*/
    "billing_type" : "month", /** value must be day/week/month/year */
    "billing_cycle" : 1, /** it only applicable for week and month billing type.ex Every 1 weeks */
    "billing_currency" : "AED", /** it should be 3 digit code and other than AED you should enabled multi currency option from Foloosi */
    "billing_amount" : "SUBSCRIPTION AMOUNT",
    "setup_fee" : "SETUP FEE", /** Optional - which is subscription setup one time fee */
    "total_count" : 10, /** number of deductions */
    "description" : "monthly demo plan",
    "start_date" : "dd-mm-yyyy", //which is optional param.if you given value should be in the format
                                 //Note : if you given date means .at the time of payment will be charged by transaction
                                 //amount as you given .subscription recurring will start on the given date and given billing amount   
    "notify_email" : "Yes" || "No",
    "notify_sms" : "Yes" || "No",
    "customer" : {
        "name" : "CUSTOMER NAME",
        "email" : "CUSTOMER EMAIL ID",
        "phone_code" : "CUSTOMER MOBILE CODE", /** Eg: +971 */
        "phone_number" : "CUSTOMER MOBILE NO"
    }
}

//Sample response
{
    "message": "Subscription created successfully",
    "data": {
        "subscription_no": "FAPISC1234567XXXXXX122fw11"
    }
}

```

{% endcode %}

#### Sample images

After successful subscription creation, it has to be listed in Foloosi panel. Please login to view the subscription created.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FAMmztaxIWS1VWqgGcqHU%2Fsubscrption.png?alt=media&amp;token=9d23f6d0-01ee-4c5c-8b28-ee4a4da9b4fa" alt=""><figcaption><p>Subscription list</p></figcaption></figure>

Click the subscription id to view details like below

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FMbHZrILKoFMC8TQoj9S5%2Fsubscrption-2.png?alt=media&amp;token=7662ab11-9ead-4d01-8459-e9898cccbd65" alt=""><figcaption><p>Subscription detail popup</p></figcaption></figure>

**To get the Subscription Details**&#x20;

For Subscription Details, you can use the Get request as below,&#x20;

{% code lineNumbers="true" %}

```
GET API LINK: https://api.foloosi.com/v1/open/subscription-link/detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE:
{
    "message": "Subscription details are",
    "data": {
        "customer": {
            "name": "FOLOOSI CUSTOMER",
            "email": "tech@foloosi.com",
            "mobile": "567812345",
            "card_last_four": "5123"
        },
        "plan": {
            "name": "Mobile PostPaid",
            "type": "Billed Every month",
            "amount": "AED 114.60",
            "unit": "1 x AED 114.60 per unit",
            "setup_fee": 0,
            "status": "active",
            "created": "01-10-2022 02:11 am"
        },
        "invoices": [
            {
                "id": 50094,
                "subscription_id": 1031,
                "billing_type": "month",
                "billing_count": 1,
                "bill_date": "2022-11-01",
                "status": "paid"
            },
            {
                "id": 50095,
                "subscription_id": 1031,
                "billing_type": "month",
                "billing_count": 1,
                "bill_date": "2022-12-01",
                "status": "pending"
            }
        ]
    }
}
```

{% endcode %}

**To cancel a Subscription**&#x20;

**NOTE** : Follow any one of the methods below to cancel a subscription,

**a**. To cancel a Subscription with api , you can use the api given below,&#x20;

```javascript

PUT API LINK: https://api.foloosi.com/v1/open/subscription-link/suspend

HEADERS:
secret_key : YOUR_SECRET_KEY

BODY:
subscription_no : YOUR_SUBSCRIPTION_NO

SAMPLE RESPONSE:
{
    "message": "Subscription cancelled successfully",
    "data": {
        "status": 200
    }
}
```

**b**. You can cancel the subscription directly from foloosi panel.

* login to foloosi panel.
* click *subscriptions* under subscription category.
* click the subscription id, it will open a popup as shown below.

  *

  <figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FXx11Catiy4V7JyjQBkQM%2Fsubscrption-cancel.png?alt=media&amp;token=6bf81cc2-3e36-4ae7-80aa-0d09fe4c9a6f" alt=""><figcaption><p>cancel subscription</p></figcaption></figure>

  **NOTE**

  Supports 170 World Currencies

  ## Properties

  List of properties available:

  <table><thead><tr><th width="148">Name</th><th width="98">Type</th><th width="122">Required</th><th width="211">Description</th></tr></thead><tbody><tr><td>secret_key</td><td>String</td><td>true</td><td>your foloosi secret key</td></tr><tr><td>plan_name</td><td>String</td><td>true</td><td>Your Subscription Plan Name</td></tr><tr><td>billing_type</td><td>String</td><td>true</td><td>value must be day/week/month/year</td></tr><tr><td>billing_cycle</td><td>integer</td><td>false</td><td>it only applicable for week and month billing type.ex Every 1 weeks</td></tr><tr><td>setup_fee</td><td>String</td><td>false</td><td>which is subscription setup one time fee</td></tr><tr><td>billing_amount</td><td>String</td><td>true</td><td>subscription amount </td></tr><tr><td>billing_currency</td><td>String</td><td>true</td><td>transaction currency</td></tr><tr><td>total_count</td><td>Integer</td><td>true</td><td>number of deductions</td></tr><tr><td>description</td><td>String</td><td>false</td><td>describe the subscription details.</td></tr><tr><td>start_date</td><td>Date</td><td>false</td><td>if you given date means .at the time of payment will be charged by transaction,<br>amount as you given .subscription recurring will start on the given date and given billing amount<br>Format should be in "dd-mm-yyyy".</td></tr><tr><td>name</td><td>String</td><td>false</td><td>customer name - auto render in payment popup if passed</td></tr><tr><td>email</td><td>String</td><td>true</td><td>customer email Id</td></tr><tr><td>phone_number</td><td>String</td><td>true</td><td>customer mobile number</td></tr><tr><td>phone_code</td><td>String</td><td>true</td><td>customer mobile code </td></tr></tbody></table>

#### Support

Visit  <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# WEBHOOKS

Our Webhook Support For Your Payment Module !

Webhooks sends small chunks of real-time payment information from one application to another in order to help prompt acknowledgement of payment status mitigating disputes and settlement issues by a significant margin.

## **Understanding Webhooks !**

The name says it right! It's a hook that links two web applications.

Webhooks can be understood as Reverse APIs, because the one receiving information does not send requests like in an API instead, the application that is sending an Information is the one that triggers the transfer of data in the occurrence of an event.

## Webhooks aren't Apis !

An API serves like a two-sided portal driven by requests and acknowledged by responses. \
A webhook sends small-sized data of information triggered by events. It is a service that allows one program(web application) to send data to another immediately after a particular event takes place.

**Use Cases**

Although there are many events that initiates a Webhook Trigger, let’s look at some obvious use cases with payments,

**Successful Transaction**,

&#x20;    A successful transaction is when the acquiring bank and the issuing bank have        send their clearance and when this happens a webhook is triggered from the        payment provider side to send customers prompt and verified notifications.<br>

A sample script for successful transaction event,

{% tabs %}
{% tab title="API Transaction Response" %}

```
{
    "data":{
        "transfer":{
            "transaction_status":"success",
            "transaction_no":"FLNIAREC61a859e4a8977",
            "payment_reference":"e8807a6b-4496-4b4d-a101-7eec0cf60754",
            "transaction_amount":"100",
            "transaction_currency":"AED",
            "transaction_message":"approved",
            "api":{
                "optional1":"FLSSUB_298617f8667047bb",
                "optional2":"Online Class",
                "optional3":"Foloosi developer",
                "customer_email":"developer@foloosi.com",
                "customer_mobile":"555534533",
                "card_last_four":"1111"
            }
        }
    }
}

```

{% endtab %}

{% tab title="Subscription Recurring Response" %}

```
{
    "data":{
        "transfer":{
            "transaction_status":"success",
            "transaction_no":"FLNIAREC61a859e4a8977",
            "payment_reference":"e8807a6b-4496-4b4d-a101-7eec0cf60754",
            "transaction_amount":"100",
            "transaction_currency":"AED",
            "transaction_message":"approved",
            "subscription":{
                "subscription_no": "FLSARE132nds08rrjrweewqq",
                "plan_no": "FSAPIPL141633e73bbb26121",
                "billing_type":"Monthly",
                "plan_name":"monthly renewal",
                "paid_count":"2",
                "status":"success"
            }
        }
    }
}
```

{% endtab %}
{% endtabs %}

**Delayed or Failed Transactions**

&#x20;   There could be many underlying reasons for a Disputed and Failed transaction, to name a few, it could be traffic on the internet or a CNP fraudulent attempt and such. Whenever there is a visible delay in payment acknowledgement a trigger is initiated and webhook notifies your web app as soon as the bank sends clearance to the payment provider. Post this communication is when a payment is fully authorized.&#x20;

A trigger to webhook happens when the bank notifies the payment provider about a failed transaction and this is instantly communicated to the customer. This data transfer is pivotal in cases where the customer’s issuing bank has debited the money and a pay\_back has to be automated. A sample script for Delayed and Failed Payments,

{% tabs %}
{% tab title="API Transaction Response" %}

```
{
    "data":{
        "transfer":{
            "transaction_status":"failed",
            "transaction_no":"FLNIAREC61a859e4a8977", //sometimes it get null
            "payment_reference":"e8807a6b-4496-4b4d-a101-7eec0cf60754", //sometimes it get null
            "transaction_amount":"100",
            "transaction_currency":"AED",
            "transaction_message":"Insufficient funds/declined",
            "api":{
                "optional1":"FLSSUB_298617f8667047bb",
                "optional2":"Online Class",
                "optional3":"Foloosi developer",
                "customer_email":"developer@foloosi.com",
                "customer_mobile":"555534533",
                "card_last_four":"1111"
            }
        }
    }
}

```

{% endtab %}

{% tab title="Subscription Recurring Response" %}

```
{
    "data":{
        "transfer":{
            "transaction_status":"failed",
            "transaction_no":"FLNIAREC61a859e4a8977", //sometimes it get null
            "payment_reference":"e8807a6b-4496-4b4d-a101-7eec0cf60754", //sometimes it get null
            "transaction_amount":"100",
            "transaction_currency":"AED",
            "transaction_message":"Insufficient funds/declined",
            "subscription":{
                "subscription_no": "FLSARE132nds08rrjrweewqq",
                "plan_no": "FSAPIPL141633e73bbb26121",
                "billing_type":"Monthly",
                "plan_name":"monthly renewal",
                "paid_count":"2",
                "status":"failed"
            }
        }
    }
}

```

{% endtab %}
{% endtabs %}

**Webhook Events for Payments**&#x20;

| Webhook Event | Description                                        |
| ------------- | -------------------------------------------------- |
| order.success | Triggered when a payment is successfully captured. |
| order.cancel  | Triggered when a payment fails.                    |

\
Payments reflect order status. A series of events happen when a Payment feedback is sent. An order is set to *paid* when a Payment is successful and is set to *Cancel* when a payment fails. This trigger the order.success and order.cancel Webhook events as well.&#x20;

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# PARTNER PAYOUT

Foloosi’s partner-payout helps businesses make multiple settlements to multiple recipients for a smooth and accommodative business transaction lifecycle.

#### Introduction

&#x20;    Foloosi’s partner-payout has the capability to make pre-structured payments to merchant and their partners  automatically in a single transaction.

&#x20;    This feature is often used by companies that need to distribute funds to a large number of affiliates or sub-affiliates, such as online marketplaces or affiliate networks. By using our partner-payout feature these companies can streamline their payment process and reduce the administrative burden of making multiple payments individually.

#### How to Activate Partner-Payout

&#x20;   To Activate partner payouts, send us a request mail to <info@foloosi.com>

#### To Create Partner

&#x20;   Log in to foloosi panel,

&#x20;      1\) Open Partner management and Click Add button which is available in top right corner of the screen.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2F30bV0P0H7jtlALvrvSNZ%2Fpartner%20adddd.png?alt=media&amp;token=0af046e9-4651-4063-b9fc-c12a779db1b0" alt=""><figcaption></figcaption></figure>

&#x20;      2\) Then enter the partner details and partner bank details with bank proof.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FeA1YbldzsI0MEMzjAeDs%2FpartnerADDDdddd.png?alt=media&amp;token=549af20c-4668-494c-91fd-6f5368ea0ecc" alt=""><figcaption></figcaption></figure>

**Note**: once the bank details are added, you are not supposed to modify. To update the bank details, send us a request mail to <info@foloosi.com>.

### Integrate with api transaction

To create a partner transaction using any type of integration, Just add the additional parameter in initialize api.

```
"partner_unique_reference":"Partner Unique Id"
```

### To find partner transaction

After the successful api transaction with partner unique reference, it is listed in partner transaction under merchant transaction in foloosi panel

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FjBOn2UorebGPGabQyTJg%2Fpartner-trans.png?alt=media&amp;token=b21514f0-017f-44d5-aacf-64779e4fa397" alt=""><figcaption></figcaption></figure>

### To find Partner Settlement

The partner settlements are not maintained along with normal settlement, It is categorized with name of partner settlement under merchant settlement in foloosi panel.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FKuvepxtJZe3FeEtQFrbS%2Fpartner-settlement.png?alt=media&amp;token=dbc900e5-b3bf-4598-bded-bac14056f3c0" alt=""><figcaption></figcaption></figure>

#### Properties&#x20;

| Name                       | Type   | Required | Description                                                                                  |
| -------------------------- | ------ | -------- | -------------------------------------------------------------------------------------------- |
| partner\_unique\_reference | string | True     | partner unique reference is nothing but partner id which is available in partner management. |

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.


# Test Cards

Use our Test Cards To Test Payment Flows !

<pre><code>Card Number 4012 0010 3714 1112
Expiry 07/30
CVV 123

<strong>Card Number 4111 1111 1111 1111
</strong>Expiry 05/30
CVV 123

Card Number 4000 0000 0000 0002
Expiry 12/30
CVV 123

Card Number 5498 3838 0160 6532
Expiry 12/30
CVV 977
</code></pre>

### Test Transaction list

&#x20;The Test Transactions are not listed on the **Payments** tab, to view test transactions follow these steps

* Login to Foloosi panel
* Go to Api settings
* Click **view history.**

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FcRtBrM7ZoUx10J6oedIH%2Ftest_trasnsaction.png?alt=media&amp;token=ef98e3d9-f217-4138-bce0-5d6d59da7c58" alt=""><figcaption></figcaption></figure>

#### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


# Create payment links

This documentation will guide you to create payment link via API.

**NOTE**

* **A payment link can only be created when the API is set to live mode.**
* **For multi currency payment , "**&#x61;llow\_multi\_currency" must be enabled for the merchant. If not , please contact Foloosi's support team.

### Basic Requirements

* Foloosi merchant account - [click here to sign up ](https://foloosi.com/business-signup).
* Create api credentials - [click here to create](https://docs.foloosi.com/get-started/create-api-credentials).

### Steps to create Payment Link

```
// Create Payment Link
POST API LINK: https://api.foloosi.com/merchant/v1/payment-links/create

// Header
secret_key : YOUR_SECRET_KEY

// Post Body Fields
{
    "amount": "0.1",
    "currency": "AED",
    "link_type": "single",
    "notify_sms": "No",   // "Yes" || "No"
    "notify_email": "No",  // "Yes" || "No"
    "customer_email": "sample@gmail.com",
    "phone_code": "",
    "customer_mobile": "",
    "receipt_no": "",
    "description": ""
}

//Sample response
{
     "message":  "Payment link created successfully",
     "data" : {
        "payment_link_reference" : "FLSPL0068417d39ab70c" //Newly created reference number
      }
}

```

**TO GET THE PAYMENT LINK LIST**

<pre><code>// Get Payment Link List
<strong>GET API LINK: https://api.foloosi.com/merchant/v1/payment-links/list
</strong>
HEADERS:
secret_key : YOUR_SECRET_KEY

// PARAMS
q : {  
        "page":"1",
        "limit":"10",
        "link_type":"",   // "single" || "multiple"
        "payment_status":"",   // "success" || "pending"
        "from_date":"",    //dd-mm-yyyy
        "to_date":""    //dd-mm-yyyy
    }

SAMPLE RESPONSE:
{
    "message": "Payment links are",
    "data": {
        "payment_links": [
            {
                "reference_id": "FLSPL006819ba189c578",
                "transaction_amount": 0.1,
                "currency_code": "AED",
                "payment_description": "test",
                "customer_email": "",
                "customer_mobile": "",
                "receipt_no": "",
                "link_type": "single",
                "payment_status": "expired",
                "status": 1,
                "created": "2025-05-06T07:28:24+00:00"
            },
        ],
        "total_count": 2385  //total number of links created
    }
}
</code></pre>

**TO GET THE  PAYMENT LINK DETAILS**

```
// Get Payment Link Details
GET API LINK: https://api.foloosi.com/merchant/v1/payment-links/details/Your reference_id

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE:
{
    "message": "Payment Link details",
    "data": {
        "reference_id": "FLSPL0068417d39ab70c",
        "transaction_amount": 0.1,
        "currency_code": "AED",
        "payment_description": "",
        "customer_email": "",
        "customer_mobile": "+916379335488",
        "receipt_no": "",
        "notify_type": "sms",
        "link_type": "single",
        "payment_status": "expired",
        "status": 1,
        "created": "2025-06-05T11:19:21+00:00"
    }
}
```

&#x20;**FOR PAYMENT LINK STATUS CHANGE**

```
// Payment Link Status Change, Use PUT Method
PUT API LINK: https: https://api.foloosi.com/merchant/v1/payment-links/change-status

HEADERS:
secret_key : YOUR_SECRET_KEY

// POST Body Feilds
{
    "payment_link_reference": "FLSPL0068417d39ab70c"
}

SAMPLE RESPONSE:
{
    "message": "Link status changed successfully",
    "data": {
        "status": "active" || "inactive"
    }
}
```

**NOTE**

Supports 170 World Currencies

## Properties

List of properties available:

| Name             | Type   | Required                                                                | Description                                                                                              |
| ---------------- | ------ | ----------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| amount           | string | true                                                                    | Amount for transaction                                                                                   |
| currency         | string | true                                                                    | Valid 3-letter currency code (e.g., AED, INR, USD).                                                      |
| description      | string | true                                                                    | Reason/note for creating payment link                                                                    |
| link\_type       | string | true                                                                    | single/multiple usage payment link                                                                       |
| notify\_sms      | string | true                                                                    | If "Yes", sms notification will be sent to the number provided under customer\_mobile.                   |
| notify\_email    | string | true                                                                    | if "Yes",  email will be sent to the emaiId provided under customer\_email                               |
| customer\_email  | string | <p>false <br>\[Required when notify\_email is "Yes"]</p>                | email notification will be sent to the given email id                                                    |
| phone\_code      | string | <p>false</p><p>\[Required when customer\_mobile field is not empty]</p> | <p>The country phone code in international format.<br><strong>Examples:</strong> <br>+971,971,91,+91</p> |
| customer\_mobile | string | <p>false</p><p>\[Required when notify\_sms is "Yes"]</p>                | Sms notification will be sent to the given mobile number                                                 |
| receipt\_no      | string | false                                                                   | Any (self reference for each payment link)                                                               |

#### Support

Visit  <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi


