From e26ffd45528b964c46017a5f2e975a9e926e69a3 Mon Sep 17 00:00:00 2001 From: Ahmed Elbanby Date: Fri, 4 Dec 2026 10:54:38 +0200 Subject: [PATCH] Release 0.4.0 - CHANGELOG: 0.4.0 section covering the thirteen gateways added since 0.3.0 - README EN + AR: status line now v0.4.0 --- CHANGELOG.md | 8 ++++++++ README.md | 2 +- docs/ar/README.md | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6772265..56f9a38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to Tahseel are documented here. This project follows [Semant ## [Unreleased] +Nothing yet. + +## [0.4.0] - 2026-12-04 + +Thirteen more gateways since 0.3.0, taking the package from fourteen drivers to twenty-seven (twenty-six gateways plus manual transfers), every one of them verified against its published documentation and fixture-tested. The package is still experimental: only Kashier and Paymob have ever run against a real provider account, and the README says so driver by driver. + +New in this release: Flutterwave, PayTabs, Klarna, Square, Xendit, Telr, Viva.com, PayU, Adyen, Mercado Pago, Mollie, Tabby and Tamara. The three gateway conventions that vary per provider - minor versus major units, refund-full semantics, and the webhook authentication scheme - are each handled the way that provider documents them rather than assumed, and every driver states in the README what it does not wrap. + ### Added - **Tamara driver** (`Tahseel::gateway('tamara')`), the eighteenth international driver and the second buy-now-pay-later one, for Saudi Arabia, the UAE, Bahrain, Kuwait and Oman: hosted checkout session via `POST /checkout` with major-unit `{amount, currency}` objects, consumer, items, risk assessment and the three merchant redirect urls; notifications authenticated the way Tamara documents it - an HS256 JWT signed with the merchant's notification token, arriving both as `Authorization: Bearer` and as the `tamaraToken` query parameter, verified in the driver with a constant-time compare, an expiry check and a refusal of any other algorithm; the documented event set mapped and an unknown event refused; `approved` reported pending and `authorised` paid, with the documented `authorise()` call exposed as `authorise()`; refunds through `/payments/simplified-refund/{orderId}` requiring their amount; config + `TAMARA_*` env vars, and 16 fixture tests. Capture is not wrapped, and the README says why. Fixture-tested only, no live account has run it yet. diff --git a/README.md b/README.md index 9a84a1f..3d3e1bf 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ New here? Start with the [quickstart](docs/quickstart.md). Tahseel gives you one clean API for starting a payment, verifying the gateway's callback, and getting a normalised result. Twenty-seven drivers so far: **Paymob** (Intention API + Unified Checkout), **Kashier** (v3 payment sessions), **Fawry** (pay-at-outlet reference numbers), **Geidea** (checkout sessions on the hosted page), **MyFatoorah** (invoice payment links + signed webhook v2), **Tap** (hosted charges + `hashstring` webhooks), **HyperPay** (COPYandPAY widget + AES-256-GCM encrypted webhooks), **Checkout.com** (Hosted Payments Page + `Cko-Signature` webhooks), **PayPal** (Orders v2 + `verify-webhook-signature`), **Stripe** (Checkout Sessions + the documented `Stripe-Signature` HMAC), **Paystack** (hosted checkout for Nigeria, Ghana, South Africa and Kenya + two documented webhook schemes) **Moyasar** (Saudi cards, mada, Apple/Samsung Pay and STC Pay over one API + shared-token webhooks) **Razorpay** (hosted Payment Links for India + HMAC-SHA-256 everything), **Mercado Pago** (Checkout Pro hosted pages for Latin America + manifest-signed notifications) and **Mollie** (hosted checkout for Europe - iDEAL, Bancontact, SEPA, Klarna, cards and more + deliberately unsigned webhooks verified by fetch) and **Adyen** (hosted Checkout sessions for global enterprise + HMAC-signed Standard webhooks) **Flutterwave** (hosted checkout across Africa + `verif-hash` webhooks re-checked through the API) and **PayTabs** (hosted payment pages across the Gulf + raw-body `Signature` callbacks) **Klarna** (hosted payment pages for Europe and the US + one-time-token callbacks re-checked through the API, with the documented place-order step) **Square** (hosted payment links + notifications signed over the notification URL and raw body) **Xendit** (hosted Payment Sessions across South-East Asia + `x-callback-token` webhooks) **Telr** (hosted payment pages across the Gulf + SHA1-signed transaction advice) **Viva.com** (Smart Checkout across Europe + HMAC-signed webhooks) **PayU** (the European PayU platform + MD5-signed notifications) **Tabby** (BNPL checkout across the UAE and Saudi Arabia + capture, refunds and header-authenticated webhooks) and **Tamara** (BNPL across Saudi Arabia and the Gulf + JWT-authenticated notifications, with the documented authorise step). Another, **manual**, covers what no wallet publishes an API for: a transfer to your Vodafone Cash number or InstaPay handle, confirmed by a human in a small approval panel. The Gulf drivers, PayPal, Stripe, Paystack, Moyasar, Razorpay, Mercado Pago, Mollie, Adyen, Flutterwave, PayTabs, Klarna, Square, Xendit, Telr, Viva.com, PayU, Tabby and Tamara are fixture-tested only, no live account has run them yet. -> **Status: v0.3.0, EXPERIMENTAL pre-release. Do not take real money through it yet.** +> **Status: v0.4.0, experimental. Do not take real money through it yet.** > > What was run against a real provider test mode: **Kashier** (hosted checkout, redirect signature, and a refund) and **Paymob** (creating a payment session, and the HMAC of the real signed redirect). That is all. A successful Paymob payment, Paymob refund/void/capture, and any real webhook delivery were **not** reached (Paymob's fresh test merchant declined every test card). > diff --git a/docs/ar/README.md b/docs/ar/README.md index 619f768..f1633bf 100644 --- a/docs/ar/README.md +++ b/docs/ar/README.md @@ -3,7 +3,7 @@ باكدج Laravel صغير وواضح لبوابات الدفع، في مصر والخليج وأي مكان. **جديد هنا؟ ابدأ من [البداية السريعة](quickstart.md).** فيه لحد دلوقتي سبعة وعشرين درايفر لبوابات: **Paymob** (Intention API مع Unified Checkout)، **Kashier** (Payment Sessions v3)، **فوري** (أرقام دفع من أي منفذ فوري)، **Geidea** (جلسات دفع على صفحتهم المستضافة)، **MyFatoorah** (روابط دفع الفواتير + webhook v2 موقّع)، **Tap** (صفحة دفع مستضافة + webhook بتوقيع `hashstring`)، **HyperPay** (ودجت COPYandPAY + webhook متشفّر AES-256-GCM)، **Checkout.com** (صفحة دفع مستضافة + webhook بتوقيع `Cko-Signature`)، **PayPal** (Orders v2 + تحقق `verify-webhook-signature`) و**Stripe** (Checkout Sessions + توقيع HMAC الموثّق في `Stripe-Signature`) و**Paystack** (صفحة دفع مستضافة لنيجيريا وغانا وجنوب أفريقيا وكينيا + نظامَي توقيع webhook موثّقين) و**Moyasar** (كروت سعودية ومدى وApple/Samsung Pay وSTC Pay على API واحد + webhooks بتوكن مشترك) و**Razorpay** (روابط دفع مستضافة للهند + HMAC-SHA-256 في كل حاجة) و**Mercado Pago** (صفحات Checkout Pro المستضافة لأمريكا اللاتينية + إشعارات موقّعة بالمانيفست) و**Mollie** (صفحة دفع مستضافة لأوروبا: iDEAL وBancontact وSEPA وKlarna وكروت وأكتر + webhooks مش موقّعة عمد، التحقق فيها بالجلب) و**Adyen** (جلسات Checkout مستضافة للشركات العالمية + webhooks قياسية موقّعة بـ HMAC) و**Flutterwave** (رابط دفع مستضاف في أفريقيا + webhooks بـ `verif-hash` بتتحقق تاني من الـ API) و**PayTabs** (صفحات دفع مستضافة في الخليج + webhooks بتوقيع على البودي الخام) **Klarna** (صفحات دفع مستضافة لأوروبا وأمريكا + callbacks بتوكن لمرة واحدة بتتحقق تاني من الـ API، مع خطوة تثبيت الأوردر الموثّقة) **Square** (روابط دفع مستضافة + إشعارات موقّعة على رابط الإشعار والبودي الخام) **Xendit** (جلسات دفع مستضافة في جنوب شرق آسيا + webhooks بتوكن `x-callback-token`) **Telr** (صفحات دفع مستضافة في الخليج + إشعارات موقّعة بـ SHA1) **Viva.com** (Smart Checkout في أوروبا + webhooks موقّعة بـ HMAC) و**PayU** (منصة PayU الأوروبية + إشعارات موقّعة بـ MD5) **Tabby** (تقسيط في الإمارات والسعودية + capture واسترداد وwebhooks متأمّنة بهيدر) و**Tamara** (تقسيط في السعودية والخليج + إشعارات متأمّنة بـ JWT مع خطوة authorise الموثّقة). ودرايفر الخمسة وعشرين، **manual**، بيغطي الحاجة اللي مفيش محفظة بتنشر API ليها: تحويل على رقم فودافون كاش أو عنوان إنستاباي، وحد من فريقك بيأكده من لوحة صغيرة. الدرايفرات الخليجية وPayPal وStripe وPaystack وMoyasar وRazorpay وMercado Pago وMollie وAdyen وFlutterwave وPayTabs وKlarna وSquare وXendit وTelr وViva.com وPayU وTabby وTamara متجربين على بيانات مسجلة بس لحد دلوقتي، لسه ماتشغلوش على حساب حقيقي. -> **الحالة: 0.3.0، نسخة تجريبية (EXPERIMENTAL). ماتستلمش فلوس حقيقية بيها لسه.** +> **الحالة: 0.4.0، تجريبية. ماتستلمش فلوس حقيقية بيها لسه.** > > اللي اتجرب على وضع التجربة الحقيقي عند مزوّد: **Kashier** (صفحة الدفع، توقيع الـ redirect، واسترداد) و**Paymob** (إنشاء جلسة دفع، وتوقيع HMAC على redirect حقيقي). ده كل حاجة. دفعة Paymob ناجحة، واسترداد/إلغاء/capture على Paymob، ووصول webhook حقيقي، **ماتجربوش** (حساب التجربة الجديد في Paymob رفض كل كروت الاختبار). >