English | 简体中文 | Русский | Español | Deutsch | Türkçe
Official Paymos payment gateway extension for Paymenter v1.x (Laravel / Filament).
Accept 4 stablecoins (USDT, USDC, USD1, DAI) and gold-backed XAUT across 13 mainnet networks. When an on-chain transfer confirms, the gateway records the payment natively through ExtensionHelper::addPayment() so Paymenter marks the invoice paid and runs your provisioning and automation rules automatically.
Video walkthrough (1:12, subtitles in 6 languages): Watch on YouTube
- Paymenter v1.x (Laravel / Filament)
- PHP 8.2+ with
curl,hash,json,openssl, andpdoextensions - An HTTPS panel URL (
APP_URL) — connecting over plain HTTP is rejected - A Paymos account with the target project selected in the Paymos dashboard
No Composer step is required on the Paymenter host: the release package bundles paymos/php-sdk (^1.12.0) under Paymos/vendor/paymos/php-sdk/ and prepends its own autoloader so older SDK copies in Paymenter's root vendor/ cannot shadow it. Admin and checkout copy ships in 6 locales: English (en), Russian (ru), German (de), Spanish (es), Turkish (tr), and Simplified Chinese (zh-Hans).
-
Download the latest
paymos-paymenter-vX.Y.Z.zippackage from GitHub Releases. -
Extract the archive into your Paymenter
extensions/Gateways/directory so the layout is:extensions/Gateways/Paymos/ Paymos.php routes.php composer.json README.md CHANGELOG.md LICENSE src/ resources/views/ lang/ vendor/paymos/php-sdk/ -
Clear Laravel caches if route or view caching is enabled:
php artisan route:clear php artisan view:clear php artisan config:clear
-
In Paymenter Admin → Extensions → Gateways, enable Paymos.
-
Open the desired project in the Paymos dashboard, then click Connect Paymos inside the Paymos gateway settings in Paymenter and approve the installation in the Paymos tab.
Every merchant downloads the same package with no embedded credentials, project ID, or secrets. One approval provisions both Sandbox and Live environments atomically and registers the signed webhook endpoint for this Paymenter installation:
https://<your-paymenter-panel>/extensions/gateways/paymos/webhook
After connecting, the gateway settings expose only Connection (Connect / Reconnect status) and Mode (Sandbox or Live) — never manual API key, API secret, project ID, or webhook secret fields.
Provisioned Sandbox and Live credentials and temporary device-flow state are sealed inside an authenticated AES-256-GCM envelope (AesGcmEnvelope) keyed from Laravel's config('app.key') (with automatic decryption fallback and transparent re-sealing across Laravel's APP_PREVIOUS_KEYS rotation list) and stored in paymos_settings. Secrets are never rendered back into HTML, logs, or error messages. Reconnect if you change your panel URL, revoke a Payment key, or rotate a webhook secret.
- Crash-safe invoice creation: The gateway persists a
creatingintent before sendingPOST /v1/invoicesand replays the exact sameexternal_order_id, amount, currency, project, and environment if a response is lost. - Line items and remaining balance: Checkout prioritizes
$invoice->remaining(so partially credited or partially paid invoices bill the exact balance due) and passes up to 50 validated line items from$invoice->itemsasproducts[], falling back to amount-only when line items are unavailable or invalid. - Fail-closed replacement: When the amount due, currency, mode, or project changes — or a previous Paymos invoice expires — the gateway closes the previous invoice via
InvoiceReplacement::close()before minting a replacement. If the old invoice is paid, still payable, unreachable, or returns 404, replacement is blocked for manual review so the buyer cannot pay twice. - Signed webhooks and scheduled reconciliation:
- Incoming webhooks on
/extensions/gateways/paymos/webhookare verified across Sandbox and Live viaMultiEnvironmentWebhookVerifier(constant-time HMAC-SHA256, dual-v1=rotation, 300-second timestamp window) and deduplicated with owner-fenced reservations (200on committed duplicate,409on in-flight delivery,401on bad/stale signature). - Terminal events undergo live reverse verification (
GET /v1/invoices/{id}),AmountGuardtriangulation (manual_review+ HTTP400on mismatch), and a roll-back guard so paid or finalized invoices are never downgraded or double-credited. invoice.paid_lateis handled strictly as an idempotent note +paid_late_notedguard without auto-crediting.Paymos::boot()registers a LaravelSchedulejob every 10 minutes (throttled to at most once every 600 seconds) that sweeps up to 50 unpaid Paymos invoices from the last 24 hours and reconciles pending refunds.
- Incoming webhooks on
The extension supports server-calculated full and overpayment (paid_over) refunds via the Paymos Refunds API (/v1/refunds), sending funds back strictly to the verified first_sender address recorded on the original deposit (arbitrary partial amounts and manual recipient addresses are rejected before any API call):
- Paymos refunds panel on admin invoices: Rendered via Filament render hooks for administrators with
admin.invoices.updatepermission. Displays operation status, supportsfulland (forpaid_overinvoices)overpaymentactions with durable UUIDv4request_tokenand CSRF protection, and discovers refunds created directly in the Paymos Dashboard (RefundDiscovery). - Async-safe native
Gateway::refund(): Because Paymenter'sExtensionHelper::refund()synchronously invokesExtensionHelper::recordRefund()wheneverGateway::refund()returnstrue,Paymos::refund()never returnstruewhile a Paymos refund ispending,processing, orunknown. Once Paymos confirmscompleted(via signedwithdrawal.completedwebhook or scheduled reconciliation),RefundAdapter::applyCompleted()records the native refund exactly once viaExtensionHelper::refundLocally()forfullrefunds and records a note (keeping the invoice paid) foroverpaymentrefunds.
- Connect refuses to start: Verify
APP_URLstarts withhttps://and that your administrator account holds theadmin.gateways.updatepermission. - Refund routes return HTTP 403: Connect endpoints require
admin.gateways.updateand Refund endpoints requireadmin.invoices.update; regular customer accounts are intentionally rejected with HTTP403. - Paid invoice held for manual review: Check Laravel logs for
Manual reviewentries — either the invoice amount changed after checkout was created, or an existing Paymos invoice could not be proven closed before replacement.
- Documentation
- Source & Issues
- Changelog
- Support
- License: MIT — © 2026 Paymos Labs
