# Tamara Payment Gateway Plugin for Botble CMS
**Split purchases into interest-free installments with Tamara.**

---
## About
Tamara Buy Now Pay Later payment gateway integration for Botble CMS (Shofy, Nest, Farmart & Martfury themes). Allows customers to split their purchases into 4 interest-free installments. Supports UAE, KSA, Bahrain & Kuwait.
ย
**Version:** 1.1.0
**Minimum Core Version:** 7.3.0
**Requires:**`botble/payment`
---
## Developed By
**Maryam International LLC**
- ๐ Website: [www.codeupp.xyz](https://www.codeupp.xyz)
- ๐ง Email: maryaminternationalllc@gmail.com
- ๐ฑ WhatsApp: +971553682656
---
## Features
-**Pay in 4 Installments** โ Customers split their order into 4 interest-free payments
-**Product Detail Widget** โ Dynamic installment price display on product pages (price รท 4)
-**Checkout Integration** โ Tamara payment method at checkout with redirect to Tamara
-**Auto Authorise & Capture** โ Automatic order authorisation and payment capture on success
-**Webhook & Notification** โ Handles Tamara webhook events and notification callbacks
-**Refund Support** โ Process refunds directly from Botble admin panel
-**Multi-Country** โ UAE (AED), KSA (SAR), Bahrain (BHD), Kuwait (KWD)
-**Sandbox / Live Toggle** โ Easy switch between Test Mode and Live Mode in admin settings
-**Arabic & English** โ Locale-aware checkout (ar_SA / en_US)
-**Works on Shofy , Nest, Farmart & Martfury** โ Compatible with both Botble CMS themes
---
## Installation
1. Copy the plugin folder to `platform/plugins/tamara` in your Botble CMS installation
2. Go to **Admin โ Plugins** and activate **Tamara Payment Gateway**
3. Go to **Admin โ Payments โ Settings** and configure Tamara
---
## Configuration
In the admin payment settings, fill in the following fields:
| Field | Description |
|--------------------|--------------------------------------------------|
| **API Token** | Your Tamara API token from the Partners Portal |
| **Public Key** | Your Tamara public key from the Partners Portal |
| **Notification Key** | Your Tamara notification key for webhook auth |
| **Mode** | ๐ก Test Mode (Sandbox) or ๐ข Live Mode (Production) |
### Tamara API Endpoints
| Mode | API URL |
|------------|----------------------------------|
| Sandbox | `https://api-sandbox.tamara.co` |
| Production | `https://api.tamara.co` |
---
## Sandbox Testing
1. Set **Mode** to **๐ก Test Mode (Sandbox)** in admin settings
2. Use your sandbox API credentials from Tamara Partners Portal
3. Place a test order and select Tamara at checkout
4. You will be redirected to Tamara's sandbox checkout page
5. Complete the test payment flow
---
## Plugin Structure
```
tamara/
โโโ helpers/
โ โโโ constants.php
โโโ plugin.json
โโโ public/
โ โโโ images/
โ โโโ tamara.png
โโโ resources/
โ โโโ views/
โ โโโ detail.blade.php
โ โโโ instructions.blade.php
โ โโโ methods.blade.php
โ โโโ partials/
โ โโโ product-detail-tamara.blade.php
โโโ routes/
โ โโโ web.php
โโโ src/
โโโ Forms/
โ โโโ TamaraPaymentMethodForm.php
โโโ Http/
โ โโโ Controllers/
โ โโโ TamaraController.php
โโโ Plugin.php
โโโ Providers/
โ โโโ HookServiceProvider.php
โ โโโ TamaraServiceProvider.php
โโโ Services/
โโโ Abstracts/
โ โโโ TamaraPaymentAbstract.php
โโโ Gateways/
โโโ TamaraPaymentService.php
```
---
## Routes
| Method | URL | Description |
|--------|------------------------------|----------------------------|
| GET | `/payment/tamara/callback` | Customer return from Tamara |
| POST | `/payment/tamara/webhook` | Tamara webhook events |
| POST | `/payment/tamara/notification` | Tamara notification callback |
> Webhook and notification routes are excluded from CSRF verification.
---
## Payment Flow
1. Customer selects **Tamara** at checkout
2. Plugin creates a checkout session via Tamara API
3. Customer is redirected to Tamara to complete payment
4. On success, Tamara redirects back to callback URL
5. Plugin authorises the order with Tamara
6. Plugin captures the payment
7. Order is marked as **Completed** in Botble
---
## Changelog
### Version 1.1.0 (2 September 2026)
-**Fixed:** Tamara Payment Logs. The plugin now properly logs all API payloads and responses securely to Botble's Admin Payment Logs menu, perfectly matching the behavior of core plugins like Stripe.
-**Fixed:** BNPL Rejection Error Messages. Customers are now properly informed via a user-friendly error message ("Your Tamara payment was not approved") when their BNPL application is rejected, instead of the system returning a generic checkout error.
-**Enhanced:** Deep Scalability Optimization. Cleaned up backend service instantiation loops to prevent session data loss.
-**Improved:** General codebase data optimization and faster API response handling to seamlessly handle high checkout volumes.
### Version 1.0.0
- Initial Release of the Tamara Payment Gateway integration.
---
## Support
For any issues or questions regarding this plugin:
**Maryam International LLC**
๐ [www.codeupp.xyz](https://www.codeupp.xyz)
๐ง maryaminternationalllc@gmail.com
๐ฑ WhatsApp: [+971553682656](https://wa.me/971553682656)
---
## License
Proprietary โ Developed by Maryam International LLC. All rights reserved.
Have doubt? Contact us on WhatsApp
Our product is high quality. Contact us for any kind of custom work.
Last update:
Sep 02, 2026 09:03 PM
Published:
Feb 11, 2026 03:53 AM
Version:
v1.1.0
Category:
Tags: