This extension is coming soon. Join our waitlist to be notified when it’s released.
Accept payments from customers across Africa on your Magento 2 or Adobe Commerce store with the official Fyatu payment extension.
Requirements
- Magento 2.4.x or Adobe Commerce 2.4.x
- PHP 8.1 or higher
- Composer
Installation
Via Composer (Recommended)
composer require fyatu/module-payment
bin/magento module:enable Fyatu_Payment
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
Manual Installation
- Download the extension from GitHub
- Extract to
app/code/Fyatu/Payment
- Run the following commands:
bin/magento module:enable Fyatu_Payment
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
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 Stores > Configuration > Sales > Payment Methods
- Expand the Fyatu section
- Configure the settings:
| Field | Description |
|---|
| Enabled | Enable/disable the payment method |
| Title | Payment method name shown at checkout |
| App ID | Your Fyatu App ID |
| Secret Key | Your Fyatu Secret Key |
| Webhook Secret | Secret for verifying webhooks |
| Payment Action | Authorize or Authorize and Capture |
| New Order Status | Order status after successful payment |
| Test Mode | Enable sandbox environment |
| Debug | Enable logging for troubleshooting |
| Sort Order | Display order among payment methods |
- In your FYATU Dashboard, go to App Settings > Webhooks
- Add webhook URL:
https://yourstore.com/fyatu/webhook/callback
- Copy the webhook secret to your Magento configuration
Features
- Native Checkout - Integrated with Magento’s checkout flow
- GraphQL Support - Full GraphQL API for headless implementations
- Multi-Store - Different configurations per store view
- Order Management - Automatic order status updates
- Refunds - Online refunds via credit memo
- Admin Panel - Manage transactions from Magento admin
Checkout Flow
Customer adds items to cart
↓
Customer proceeds to checkout
↓
Customer selects "Fyatu" payment method
↓
Customer clicks "Place Order"
↓
Customer redirected to Fyatu checkout
↓
Customer completes payment
↓
Customer redirected to success page
↓
Order status updated automatically
GraphQL Support
For headless Magento implementations:
Set Payment Method
mutation {
setPaymentMethodOnCart(input: {
cart_id: "CART_ID"
payment_method: {
code: "fyatu"
}
}) {
cart {
selected_payment_method {
code
title
}
}
}
}
Place Order
mutation {
placeOrder(input: {
cart_id: "CART_ID"
}) {
order {
order_number
}
fyatu_checkout_url
}
}
Admin Panel
View and manage Fyatu transactions in the Magento admin:
- Go to Sales > Orders
- Open an order paid via Fyatu
- View transaction details in the Payment Information section
Transaction Actions
| Action | Description |
|---|
| View Details | See full transaction information |
| Refund Online | Issue refund via credit memo |
| Void | Cancel an authorized payment |
Refunds
To process a refund:
- Go to Sales > Orders
- Open the order to refund
- Click Credit Memo
- Enter refund details
- Click Refund (online)
Partial refunds are supported. The refund amount cannot exceed the original payment amount.
Multi-Store Configuration
Configure different Fyatu apps per store view:
- Go to Stores > Configuration
- Select the store view from the scope selector
- Configure Fyatu with store-specific credentials
- Save configuration
CLI Commands
# Clear Fyatu cache
bin/magento fyatu:cache:clear
# Sync pending transactions
bin/magento fyatu:transactions:sync
# Test webhook connection
bin/magento fyatu:webhook:test
Events
Observe Fyatu events in your custom modules:
// etc/events.xml
<event name="fyatu_payment_success">
<observer name="my_module_payment_success" instance="MyModule\Observer\PaymentSuccess"/>
</event>
<event name="fyatu_payment_failed">
<observer name="my_module_payment_failed" instance="MyModule\Observer\PaymentFailed"/>
</event>
<event name="fyatu_refund_success">
<observer name="my_module_refund_success" instance="MyModule\Observer\RefundSuccess"/>
</event>
Troubleshooting
Extension not appearing
bin/magento module:status Fyatu_Payment
bin/magento setup:upgrade
bin/magento cache:flush
Payment method not showing at checkout
- Verify the extension is enabled in configuration
- Check that your currency is supported
- Review minimum/maximum order amount settings
Webhook issues
- Enable debug logging in configuration
- Check logs at
var/log/fyatu.log
- Verify webhook URL is accessible publicly
Debug Logging
Enable detailed logging:
- Go to Stores > Configuration > Sales > Payment Methods > Fyatu
- Set Debug to “Yes”
- Logs written to
var/log/fyatu.log
Resources