Documentation Index
Fetch the complete documentation index at: https://docs.fyatu.com/llms.txt
Use this file to discover all available pages before exploring further.
This module is coming soon. Join our waitlist to be notified when it’s released.
Accept payments from customers across Africa on your PrestaShop store with the official Fyatu payment module.
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
- 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 |
- 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
Customer adds items to cart
↓
Customer proceeds to checkout
↓
Customer selects "Fyatu" payment
↓
Customer confirms order
↓
Customer redirected to Fyatu checkout
↓
Customer completes payment
↓
Customer redirected to confirmation page
↓
Order status updated to "Payment accepted"
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:
/themes/your_theme/modules/fyatupayment/views/templates/front/
├── payment.tpl # Payment option display
├── payment_return.tpl # Return page after payment
└── payment_error.tpl # Error page template
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
// In your module
public function hookActionFyatuPaymentSuccess($params)
{
$order = $params['order'];
$transaction = $params['transaction'];
// Your custom logic
}
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
View logs:
tail -f /var/logs/fyatu.log
CLI Commands
# Clear module cache
php bin/console prestashop:module clear fyatupayment
# Reinstall module
php bin/console prestashop:module uninstall fyatupayment
php bin/console prestashop:module install fyatupayment
Resources