Download the PHP package usezeny/laravel without Composer
On this page you can find all versions of the php package usezeny/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download usezeny/laravel
More information about usezeny/laravel
Files in usezeny/laravel
Package laravel
Short Description PHP and Laravel SDK for the Merchant API v1
License MIT
Homepage https://github.com/Zeny-Pay/zeny-laravel-sdk
Informations about the package laravel
Why you'll like it
| ๐ Payment links in one call | Create a hosted checkout page and send your customer there. No checkout UI to build. |
| ๐ฎ๐ฉ Every way Indonesia pays | QRIS, bank virtual accounts (BCA and more) and e-wallets such as GoPay, all from the same link. |
| ๐ก๏ธ Never charges twice | Network hiccups are retried for you, and every retry is the same request, so a customer is never charged twice. |
| ๐ Know the moment you're paid | Webhooks arrive signed and checked. One middleware, and your route gets a ready-to-use event. |
| ๐งช Sandbox first | A test key gives you a full playground with fake money. Switch to a live key when you're ready. Nothing else changes. |
| ๐ฏ Feels like Laravel | Auto-discovered service provider, a Zeny facade, .env config and a mockable interface for your tests. |
Get started in 3 steps
1. Install
2. Add your keys to .env
A sk_test_ key works in Sandbox, where no real money moves.
3. Create a payment link and send your customer to it
That's it. Your customer pays on the hosted page and comes back to your thank-you page.
How a payment flows
๐ก Golden rule: mark an order paid only when the
payment.paidwebhook arrives, never just because the customer came back to your site.
Know when you're paid
Add the zeny.webhook middleware to a route. It checks every webhook's signature, and your code only sees real events:
Webhooks can arrive twice, so the route saves each event once by its id and ignores repeats.
What you can do
| Payment links | Create, list, close, reopen and cancel hosted checkout links. Limit how many times a link can be paid, and ask for the payer's name, email or phone. |
| Payments | Build your own checkout: create a payment, then show the customer a QR code, a virtual account number or an e-wallet redirect. |
| Payouts | Send money out to a bank account, and cancel a payout before it goes out. |
| Disputes | See the disputes raised on your payments. |
| Sandbox test funds | Top up your Sandbox balance to try payouts. |
Every option and edge case is in the Guide:
- Payment links in detail
- Custom checkout
- Laravel setup and config
- Webhooks without Laravel
- Handling errors
- Safe retries
- Sandbox, Production and white-label hosts
Built to be safe
- Your secret key stays secret. It never shows up in error messages, logs or
dd()dumps. - Money is exact. Amounts are strings like
'150000', never floats that round wrong. - No double charges. Retries reuse the same idempotency key, so the payment happens once.
- Webhooks fail closed. A webhook with a bad or old signature is rejected before your code runs.
- Typed end to end. PHPStan knows every field of every response, and the types come straight from the API contract.
Requirements
| PHP | Laravel |
|---|---|
| 8.2+ | 12 |
| 8.3+ | 12 or 13 |
Outside Laravel, the client works in any PHP 8.2+ project. See the Guide.
Contributing
Issues and pull requests are welcome. RELEASING.md explains how a version ships.
License
MIT. See LICENSE.
All versions of laravel with dependencies
guzzlehttp/guzzle Version ^7.8
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
psr/http-client Version ^1.0
psr/http-message Version ^1.1|^2.0