myatoorahOfficial Integration Guide

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.

Accepted Rails:
AMEXQPAY
Independent Infrastructure Notice:PrymGate provides independent automation infrastructure and is not affiliated with MyFatoorah. Payment processing and KYC agreements exist directly between the creator and MyFatoorah.

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.

MyFatoorah Integration Settings Navigation Menu
Figure 1: Sidebar Menu -> Integration Settings -> Api KeyClick to zoom

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.

Add API Key Button in MyFatoorah Portal
Figure 2: Click the + Add button to create a new tokenClick to zoom
Basic Token Form Fields:
  • 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:

Option A (Fastest & Recommended):

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.

Option B (Custom Group Selection):

Select Custom, then check the required V3 permission groups below (tick Select All on each parent group, or check the specific methods):

Required Core Permissions:
  • PAYMENT V3 [✓ GetPayments, Postpayments]
  • INVOICES V3 [✓ GetInvoice]
  • PAYMENT METHODS V3 [✓ GetPaymentMethods]
Optional Permission (Seller Protection):
  • REFUNDS V3 [✓ PostRefund] (Optional)
🛡️Why is REFUNDS V3 Recommended? (Optional Merchant Protection)

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.

MyFatoorah Create Token Form & Permissions Scope
Figure 3: Token Name input and Common Permissions scope selection (Super Rules vs Custom)Click to zoom

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

Payment V3 Permissions in MyFatoorah
Figure 4: Core permission group: PAYMENT V3 (GetPayments and Postpayments)Click to zoom
Invoices V3, Refunds V3, and Payment Methods V3 Permissions in MyFatoorah
Figure 5: Permission groups: INVOICES V3, PAYMENT METHODS V3, and optional REFUNDS V3Click to zoom

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

Create Token Button
Figure 6: Click the + Create button to finalize the keyClick to zoom

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.

Copy API Token from MyFatoorah table
Figure 7: Click the Copy icon in the Actions columnClick to zoom

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:

Enable Webhook:Select Yes
Endpoint URL:
https://prymgate.com/api/webhooks/myfatoorah
Enable Secret Key:Select Yes, then copy the generated secret using its copy icon.
Webhook Events:Tick ONLY these three events:
✓ Transaction Status Changed
✓ Refund Status Changed
✓ Dispute Status Changed
Signing Version:v2
Number of Retries:3
Delay between retries:20(seconds)
Click the Save button in the bottom-right corner to activate the webhook.
Full Webhook Settings in MyFatoorah
Figure 8: Webhook Settings page, event selection, and copying Secret KeyClick to zoom

6. Connect Gateway in PrymGate Dashboard

Now navigate to your PrymGate dashboard, and go to the Wallets or Settings page:

  1. Click "Connect Card Gateway".
  2. Enter a label (e.g. "MyFatoorah KSA") and select your account country.
  3. Paste the API Token copied from Step 4.
  4. Paste the Webhook Secret Key copied from Step 5.
  5. Click "Test Connection" to verify gateway response and discover available payment rails.
  6. Click "Save Gateway".
Integration Complete:Your card gateway is ready. You can now enable credit cards, Apple Pay, and regional debit rails (mada, KNET, Benefit, and others) for your channel with 0% platform sales commission.

7. Troubleshooting Common Errors

Quick reference for common error codes encountered during integration and how to resolve them:

Error Code / MessageRoot CauseResolution
401 Unauthorized / Token permissionsMissing one of the required permission scopesSelect Super Rules or ensure the core V3 groups are checked in Step 3
Country mismatchSelected country does not match the portal countrySelect the exact country where your MyFatoorah account was issued
Cannot create more API keysHit 5-key limit or non-Super Master user roleDelete an unused key in the table, and log in with the primary owner account
Webhook 403 ForbiddenWebhook secret key mismatch or signing version not v2Verify Signing Version is v2 and copy the secret into PrymGate