Download the PHP package codepreneur/halk-pay without Composer
On this page you can find all versions of the php package codepreneur/halk-pay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codepreneur/halk-pay
More information about codepreneur/halk-pay
Files in codepreneur/halk-pay
Package halk-pay
Short Description Laravel package for HalkPay 3D Hosted gateway integration
License MIT
Informations about the package halk-pay
Codepreneur HalkPay Package
Reusable Laravel package for HalkPay 3D Hosted gateway integrations.
Installation
Supports Laravel 11/12 and PHP 8.2+.
Package development structure
This package now follows the standard Spatie Laravel package skeleton conventions:
- Service provider built on
spatie/laravel-package-tools - Test suite powered by Pest + Orchestra Testbench
- CI workflow matrix for PHP/Laravel combinations
- Static analysis (
phpstan) and formatting (pint) scripts
Run local quality checks:
Setup (works in any Laravel project)
1) Publish package config
2) Configure .env
3) Use package routes (or customize)
Default package routes:
POST /halkpay/redirect(halkpay.redirect)POST /halkpay/callback(halkpay.callback)
You can customize route enable/prefix/middleware/name prefix in config/halkpay.php.
4) Send a redirect request
Call the redirect route with at least amount.
Typical payload fields:
amount(required)oid(optional; generated when omitted)customer_name/bill_to_namesuccess_url,fail_url,callback_urlinstallment,transaction_type,currency,lang
Can success/fail Blade templates be extended?
Yes.
Option A: Override package views in your project (recommended)
Publish views:
Then edit:
resources/views/vendor/halkpay/payments/success.blade.phpresources/views/vendor/halkpay/payments/fail.blade.phpresources/views/vendor/halkpay/payments/redirect.blade.php
Laravel will automatically prefer your published versions.
Option B: Point callback to your own view names
Set in .env (or directly in config/halkpay.php):
This lets callback responses render any Blade view in your app.
Callback handling and security
- Callback hash validation is built in (
HASHPARAMS,HASHPARAMSVAL,HASH+store_key) - Middleware alias:
halkpay.hash - Callback
response_modesupports:jsonredirectview
Universal integration points
Bind contracts only when you need domain-specific behavior.
If you do not bind them, package defaults are safe no-ops.
Events
Codepreneur\HalkPayGateway\Events\HalkPayCallbackReceived
All versions of halk-pay with dependencies
illuminate/http Version ^11.0|^12.0
illuminate/routing Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.19