Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Payhere

Laravel Payhere Laravel Package

lahirulhr/laravel-payhere

A Laravel package for integrating the PayHere payment gateway into your applications. Simplify checkout, payment initiation, and notification handling with a clean, framework-friendly API designed for quick and reliable Sri Lankan payment integration.

View on GitHub
Deep Wiki
Context7

API integration for PayHere payment gateway in Sri Lanka

Frequently asked questions about Laravel Payhere
What is lahirulhr/laravel-payhere used for?
It is a Laravel package for integrating the PayHere payment gateway into applications, especially for Sri Lankan checkout and payment flows. The package is intended to simplify payment initiation, hosted checkout, and notification handling behind Laravel-friendly configuration and services. It is a gateway integration layer, not a full order, ledger, refund, or reconciliation system.
How do I install lahirulhr/laravel-payhere with Composer?
Install it with Composer using the package name lahirulhr/laravel-payhere, then confirm whether the service provider is auto-discovered or must be registered manually. Publish any package configuration file and set your PayHere merchant credentials through environment variables rather than committing secrets. Check the repository README and composer.json for the exact setup steps before wiring it into your application.
Which Laravel and PHP versions are compatible with laravel-payhere?
The available context does not confirm specific Laravel or PHP version constraints, so compatibility should be verified from the package composer.json and tested in a disposable Laravel app. Because the package has little visible community validation, do not assume support for your current Laravel version. Run a short compatibility spike before adopting it in an existing production stack.
Does laravel-payhere support PayHere checkout and payment initiation?
The package overview describes checkout, payment initiation, and notification handling for PayHere, so it is intended to cover the common gateway transport flow. You should still confirm that it implements the current PayHere checkout API and matches your merchant configuration. Keep your internal payment state and order logic outside the package so the gateway layer can be replaced.
How do I handle PayHere notifications and callback verification in Laravel?
Create a dedicated callback route, verify PayHere signatures or hashes according to the current PayHere documentation, and reject requests that fail validation. Make notification handling idempotent so duplicate callbacks do not double-update orders, and queue processing where appropriate. Do not rely on the package alone for replay protection or status mapping without reviewing its implementation.
Does lahirulhr/laravel-payhere support refunds and payment status reconciliation?
There is no clear evidence in the provided context that the package provides robust refunds or reconciliation features. Treat it as a thin integration layer and keep refund, ledger, and reconciliation logic in your own domain code. If refunds are required, verify PayHere API support and test the full lifecycle in sandbox before production use.
Is lahirulhr/laravel-payhere production-ready?
Adoption risk is high because the package shows no stars, no listed dependents, and little visible community validation. It may be suitable for a controlled integration if you review the code, test it in PayHere sandbox, and wrap it behind an internal interface. For production, plan for monitoring, idempotent callback handling, secret management, and a fallback plan if maintenance stops.
Can I use laravel-payhere for LKR payments and separate sandbox and production credentials?
PayHere is a Sri Lankan gateway, so LKR support is expected, but you should confirm the package configuration exposes the merchant settings and currency handling you need. Keep sandbox and production credentials separate through environment-specific configuration. Validate both environments end to end before switching live traffic.
How can I test a PayHere integration in Laravel without taking live payments?
Use PayHere sandbox credentials and a disposable Laravel application to exercise checkout, callback, duplicate notification, and failure scenarios. Add automated tests around your callback controller, signature verification, and idempotency logic rather than assuming the package has test coverage. Compare sandbox callback payloads and statuses with your internal payment state transitions before production rollout.
What are alternatives to lahirulhr/laravel-payhere for PayHere integration?
Alternatives include a custom PayHere client built around the official API, a manual hosted-checkout form and redirect flow, or forking this package if it fits your needs but lacks maintenance. You could also evaluate other Laravel payment packages if they support PayHere and your required Sri Lankan merchant setup. The safest approach is to keep gateway code behind an internal interface so you can switch implementations.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource