How to Connect MyFatoorah to Telegram: Step-by-Step API & Webhook V2 Guide
Last Updated: November 2026 • 5 min read
Complete visual walkthrough to connect your MyFatoorah merchant account with your automated Telegram channel. Accept Apple Pay, mada, KNET, Visa, Mastercard, American Express, Benefit, QPay, Meeza, and STC Pay with 0% platform commission and direct bank payouts.
1. Navigate to Integration Settings in MyFatoorah
Log in to your MyFatoorah merchant dashboard. In the left navigation menu, scroll down to the Integration Settings section, then click Api Key.

2. Open the Create Token Form (+ Add)
On the Api Keys page, click the (+ Add) button in the top-right corner to open the token creation form.

- Token Name: Enter an identifiable name (e.g., "PrymGate").
- Expiry Date: Set a long expiry window (the portal defaults to 5 years).
- Is Active?: Ensure this checkbox remains checked.
3. Configure Required API Permissions (Two Options)
PrymGate requires specific API privileges to create checkout sessions, verify available card rails, and query invoice statuses. You can grant permissions using either method below:
Select Super Rules under Common Permissions. This automatically enables all scopes in 1 click without needing to check any sub-boxes. You can proceed directly to Step 4.
Select Custom, then check the required V3 permission groups below (tick Select All on each parent group, or check the specific methods):
- PAYMENT V3 [✓ GetPayments, Postpayments]
- INVOICES V3 [✓ GetInvoice]
- PAYMENT METHODS V3 [✓ GetPaymentMethods]
- REFUNDS V3 [✓ PostRefund] (Optional)
Your payment gateway operates completely without this permission. However, granting REFUNDS V3 acts as an automated safety net designed strictly in the seller’s favor: if a subscriber completes payment but fails to receive their invite link due to a temporary Telegram outage, server hiccup, or channel bot permission issue, the platform immediately alerts the channel owner via Telegram DM and email.
An automatic refund is never executed immediately: the system provides a 24-hour grace window so you can review the order or deliver the link manually. If unresolved after 24 hours, the platform automatically reverses the charge back to the buyer’s card, preventing costly bank chargebacks, dispute fees, and reputation hits against your MyFatoorah merchant profile.

If you choose Option B (Custom), the screenshots below highlight the required groups and checked sub-permissions:


After selecting your permissions, scroll to the bottom and click (+ Create) to generate your key.

4. Copy Your Generated API Token
You will return to the Api Keys table. Locate the new key row and click the Copy icon under the Actions column.

5. Configure Webhook Settings & Secret Key (Webhook V2)
The Webhook Secret Key is strictly mandatory for MyFatoorah Webhook V2 signature verification. PrymGate uses HMAC-SHA256 verification on every incoming payment event to activate subscriptions immediately even if the user closes their browser.
In your MyFatoorah sidebar, navigate to Integration Settings -> Webhook Settings and configure the following parameters:

6. Connect Gateway in PrymGate Dashboard
Now navigate to your PrymGate dashboard, and go to the Wallets or Settings page:
- Click "Connect Card Gateway".
- Enter a label (e.g. "MyFatoorah KSA") and select your account country.
- Paste the API Token copied from Step 4.
- Paste the Webhook Secret Key copied from Step 5.
- Click "Test Connection" to verify gateway response and discover available payment rails.
- Click "Save Gateway".
7. Troubleshooting Common Errors
Quick reference for common error codes encountered during integration and how to resolve them:
| Error Code / Message | Root Cause | Resolution |
|---|---|---|
| 401 Unauthorized / Token permissions | Missing one of the required permission scopes | Select Super Rules or ensure the core V3 groups are checked in Step 3 |
| Country mismatch | Selected country does not match the portal country | Select the exact country where your MyFatoorah account was issued |
| Cannot create more API keys | Hit 5-key limit or non-Super Master user role | Delete an unused key in the table, and log in with the primary owner account |
| Webhook 403 Forbidden | Webhook secret key mismatch or signing version not v2 | Verify Signing Version is v2 and copy the secret into PrymGate |