شعار Setup Ezypay

Setup Ezypay

المجتمع
afu-it
setup-ezypay

إعداد تكاملات الدفع عبر Ezypay وبناؤها وتصحيحها ومراجعتها وشرحها، باستخدام وثائق المطورين الرسمية لـ Ezypay، ورموز OAuth 2.0 بمنح كلمة المرور، وترويسة التاجر، والعملاء، وترميز Payment Capture Page عبر iframe، والفواتير عند الطلب، والخطط والاشتراكات، وجلسات Checkout، واستعادة المدفوعات عبر Pay Now، والمبالغ المستردة والإشعارات الدائنة، وخطافات الويب مع التحقق من X-Ezypay-Signature باستخدام HMAC-SHA1، ومعالجة المدفوعات الفاشلة، وتقارير التسوية، وإعداد بيئتي الاختبار والإنتاج، وApple Pay أو Google Pay. استخدم هذه المهارة عند العمل مع Ezypay Malaysia أو الفوترة المتكررة بالبطاقات بعملة MYR أو اشتراكات النوادي الرياضية والعضويات أو رموز Visa وMastercard أو خطافات الويب invoice_paid أو invoice_past_due أو إعادة المحاولة أو شطب الديون أو التسوية أو الاستعداد للإطلاق الفعلي.

Add to TypingMind

نظرة عامة

الناشرafu-it
المستودعmalaysia-payment-gateway
اسم المهارةsetup-ezypay
النجوم
74
التفريعات
11
الملفات المرفقة
7
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 7

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها afu-it على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Setup Ezypay في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-ezypay
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/afu-it/malaysia-payment-gateway.git /tmp/malaysia-payment-gateway
mkdir -p .claude/skills
cp -r /tmp/malaysia-payment-gateway/setup-ezypay .claude/skills/setup-ezypay
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Setup Ezypay في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Setup Ezypay تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Setup Ezypay بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Ezypay Payment Gateway

Use this skill for Ezypay subscription billing and card collection work.

Source

Read references/ezypay-api.md first. It holds environments, base URLs, auth, the Malaysia scope, the end-to-end server flow, the full endpoint catalogue, statuses, error codes, amount rules, and the signature summary.

Read references/ezypay-billing.md for request and response field tables: customers, payment methods, invoices, refunds, plans, subscriptions, future invoices, checkout, transactions, credit notes, settlements, reports, and partner billing.

Read references/ezypay-webhooks.md for every event type, payload shapes, HMAC-SHA1 verification with the official test vector, retries, and duplicates.

Read references/ezypay-payment-methods.md for the Payment Capture Page (iframe, postMessage, styling, mobile WebViews), Apple Pay, Google Pay, payment method payloads, sandbox test data, and the Malaysia card failure codes.

Read references/account-setup.md for onboarding, credentials, sandbox access, go-live checklists, fees model, and settlement timing.

Read references/source-map.md to find the official page for any fact and to see doc coverage.

Core Workflow

  1. Confirm the model: on-demand invoices (you schedule) or Ezypay subscriptions (Ezypay schedules). Checkout is a hosted one-off card page.
  2. Confirm credentials: partner client_id and client_secret, plus per-merchant username, password, and merchant ID. Each branch has its own merchant account.
  3. Get a bearer token from the identity host with grant_type=password and reuse it until it expires (60 minutes).
  4. Create the customer with POST /v2/billing/customers and store id.
  5. Collect the card with the Payment Capture Page iframe; read the token from postMessage and check link_status.
  6. Create a local pending payment, then POST /v2/billing/invoices with externalInvoiceId as your idempotency key, or create a plan and subscription.
  7. Treat Checkout successUrl parameters and iframe messages as UX only.
  8. Verify the X-Ezypay-Signature webhook header (HMAC-SHA1 hex of the raw body with your client key), dedupe on requestId, then requery GET /v2/billing/invoices/{invoiceId}.
  9. Settle on invoice_paid with matching invoice id, externalInvoiceId, merchant ID, currency MYR, and your item amount.
  10. Handle invoice_past_due: show failedPaymentReason, replace invalid payment methods, retry, write off, or record external payment.

Core Facts

  • Sandbox hosts: identity-sandbox.ezypay.com, vault-sandbox.ezypay.com, api-sandbox.ezypay.com, hosted-global-sandbox.ezypay.com.
  • Production hosts: identity.ezypay.com, vault.ezypay.com, api-global.ezypay.com, hosted-global.ezypay.com.
  • Billing base: https://api-sandbox.ezypay.com/v2 (paths start /billing/...). Webhooks base: .../v2/webhooks.
  • Token: POST https://identity-sandbox.ezypay.com/token, form-encoded, scope integrator billing_profile create_payment_method offline_access.
  • Every billing call sends Authorization: Bearer <token> and the merchant: <MERCHANT_ID> header.
  • Malaysia: Visa and Mastercard; Apple Pay and Google Pay are beta. No bank direct debit, no PayTo, no wallet, no FPX or DuitNow.
  • 3D Secure is not supported and CVV is not required. Charge in MYR only (no cross-border); decimals allowed.
  • Amounts are decimal major units in { "currency": "MYR", "value": 49.90 }, not sen.
  • Ezypay fees can be added to the invoice as extra items (transaction_fee, load_fee, failed_payment_fee).
  • Webhook signature: X-Ezypay-Signature = lowercase hex HMAC-SHA1(clientKey, raw body). Retries hourly, up to 24 times.
  • Refund: PUT /v2/billing/invoices/{invoiceId}/refund, empty body for full; track credit_note_paid or credit_note_failed.
  • Settlement holding period is T+3 business days for Malaysia; frequency weekly or monthly.

Critical Rules

  • Keep client_secret, merchant password, client key, and bearer tokens server-side. The PCP iframe URL exposes a token, so build it per session.
  • Never mark paid from the iframe message, Checkout successUrl query string, or invoice create response (PROCESSING is not paid).
  • Verify the signature over the exact raw bytes before parsing JSON; use constant-time comparison.
  • Register a clientKey on every webhook; without one there is nothing to verify.
  • Send a unique externalInvoiceId per invoice so retries of your own request do not double charge.
  • Compare your charged item, not the invoice total, when customer-paid fees are on.
  • Store invoice id, documentNumber, customerId, paymentMethodToken, and merchant ID before settling.
  • Use one merchant account per branch; never share one across branches.
  • Do not promise FPX, DuitNow, e-wallets, or 3DS for Malaysia; they are not offered.
  • Confirm Apple Pay and Google Pay enablement with Ezypay before launch; both are beta.

Completion Criteria

An Ezypay integration is done only when:

  1. Tokens are fetched server-side, cached, and refreshed or re-created after 60 minutes, within the token rate limit.
  2. Customers are created and synced on profile changes; PCP returns a token linked to the customer.
  3. Invoices or subscriptions are created server-side with the merchant header and a unique externalInvoiceId.
  4. A webhook per merchant is registered with a clientKey and the minimum events from references/ezypay-webhooks.md.
  5. The webhook handler verifies X-Ezypay-Signature over the raw body, dedupes requestId, requeries the invoice, and settles once.
  6. Failed payments show reason and fees, support retry, write-off, record external payment, and Pay Now.
  7. Refunds and chargebacks update local state from credit note events.
  8. Tests cover bad signature, replayed requestId, wrong merchant, wrong currency or amount, PAST_DUE, refund failure, and a paid sandbox invoice using the test cards.
  9. Deploy docs list EZYPAY_* variables, webhook URL, client key, and sandbox versus production hosts.

Loophole Review Loop

When asked whether an Ezypay plan is "100% confident", repeat until no factual gaps remain:

  1. List trust boundaries: browser iframe, postMessage listener, Checkout redirect, backend token cache, identity host, billing API, vault, webhook receiver, raw-body parser, database, fulfilment, refund job, retry job.
  2. Check bypasses: forged postMessage from another origin, fake successUrl query, unsigned webhook, signature over re-serialised JSON, wrong client key, sandbox and production mix, wrong merchant header, invoice reused across customers, duplicate requestId, PROCESSING treated as paid, fee items breaking amount checks, expired token mid-batch, invalid payment method auto-rebill stop, refund with low wallet balance, chargeback reversal after paid.
  3. Add fixes: origin check on message events, server requery of the invoice, raw-body HMAC with constant-time compare, per-merchant webhook and key, idempotent settlement keyed on invoice id, externalInvoiceId uniqueness, event log, separate env config.
  4. Re-read the relevant reference file for any gap.
  5. State what still depends on Ezypay account setup: enabled methods, fee configuration, retry settings, checkout attempt limit, settlement schedule, Apple Pay domain registration, and Google Pay approval.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Setup Ezypay؟

إعداد تكاملات الدفع عبر Ezypay وبناؤها وتصحيحها ومراجعتها وشرحها، باستخدام وثائق المطورين الرسمية لـ Ezypay، ورموز OAuth 2.0 بمنح كلمة المرور، وترويسة التاجر، والعملاء، وترميز Payment Capture Page عبر iframe، والفواتير عند الطلب، والخطط والاشتراكات، وجلسات Checkout، واستعادة المدفوعات عبر Pay Now، والمبالغ المستردة والإشعارات الدائنة، وخطافات الويب مع التحقق من X-Ezypay-Signature باستخدام HMAC-SHA1، ومعالجة المدفوعات الفاشلة، وتقارير التسوية، وإعداد بيئتي الاختبار والإنتاج، وApple Pay أو Google Pay. استخدم هذه المهارة عند العمل مع Ezypay Malaysia أو الفوترة المتكررة بالبطاقات بعملة MYR أو ا...

لماذا تستخدم Setup Ezypay على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Setup Ezypay عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Setup Ezypay في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/afu-it/malaysia-payment-gateway/tree/main/setup-ezypay. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Setup Ezypay؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Setup Ezypay؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Setup Ezypay معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Setup Ezypay مجانية؟

نشرها afu-it على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇