Requirements
- PrestaShop 1.7.x or 8.x
- PHP 7.4 or higher
- SSL certificate (HTTPS)
Installation
From PrestaShop Addons
- Visit PrestaShop Addons and search for “Fyatu”
- Purchase/download the module
- Go to Modules > Module Manager in your PrestaShop admin
- Click Upload a module and select the ZIP file
- Click Configure after installation
Manual Installation
- Download the module from GitHub
- Extract to
/modules/fyatupayment/ - Go to Modules > Module Manager
- Find “Fyatu Payment” and click Install
Configuration
Step 1: Get API Credentials
- Login to FYATU Dashboard
- Go to Business Console > Select Your App > Settings
- Copy your App ID and Secret Key
Step 2: Configure the Module
- Go to Modules > Module Manager
- Find “Fyatu Payment” and click Configure
- Fill in the settings:
| Field | Description |
|---|---|
| Enable Module | Activate/deactivate the payment method |
| Title | Name displayed at checkout |
| Description | Payment method description |
| App ID | Your Fyatu App ID |
| Secret Key | Your Fyatu Secret Key |
| Webhook Secret | Secret for webhook verification |
| Test Mode | Enable for sandbox testing |
| Minimum Amount | Minimum order amount |
| Maximum Amount | Maximum order amount |
Step 3: Configure Webhooks
- In your FYATU Dashboard, go to App Settings > Webhooks
- Add webhook URL:
https://yourstore.com/module/fyatupayment/webhook - Copy the webhook secret to your module configuration
Features
- PrestaShop 8 Compatible - Works with latest PrestaShop
- Multi-Shop Support - Configure per shop in multi-shop mode
- Order Management - Automatic order status updates
- Refund Support - Process refunds from order page
- Multi-Language - Translated module interface
- Customizable - Override templates for custom styling
Checkout Flow
Multi-Shop Configuration
For PrestaShop multi-shop setups:- Go to Shop Parameters > General
- Enable “Enable multistore” if not already
- Select the shop context in the header
- Configure Fyatu settings for each shop individually
Order States
The module uses these PrestaShop order states:| State | When Applied |
|---|---|
| Awaiting payment | Order placed, pending payment |
| Payment accepted | Payment confirmed |
| Payment error | Payment failed |
| Refunded | Full refund processed |
| Partially refunded | Partial refund processed |
Refunds
To process a refund:- Go to Orders > Orders
- Open the order to refund
- Scroll to Products section
- Click Partial refund or Standard refund
- Select “Refund via Fyatu” option
- Click Refund
Template Customization
Override payment templates in your theme:Hooks
The module registers these hooks:| Hook | Description |
|---|---|
paymentOptions | Display payment option at checkout |
displayPaymentReturn | Show payment confirmation |
actionOrderStatusUpdate | React to order status changes |
displayAdminOrder | Show Fyatu info in admin order |
Custom Hook Implementation
Troubleshooting
Module not appearing at checkout
- Verify module is enabled in Module Manager
- Check that cart total meets minimum/maximum amount
- Ensure your store currency is supported
Payment not completing
- Check webhook configuration
- Verify webhook URL is publicly accessible
- Enable debug mode and check logs
Order stuck on “Awaiting payment”
- Webhook may not have been received
- Check webhook delivery in Fyatu Dashboard
- Manually sync order status if needed
Debug Mode
Enable logging for troubleshooting:- Go to Modules > Fyatu Payment > Configure
- Enable Debug Mode
- Logs written to
/var/logs/fyatu.log

