Download the PHP package neputertech/getpay-gateway without Composer
On this page you can find all versions of the php package neputertech/getpay-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download neputertech/getpay-gateway
More information about neputertech/getpay-gateway
Files in neputertech/getpay-gateway
Package getpay-gateway
Short Description Laravel integration for GetPay Nepal payment gateway integration
License MIT
Informations about the package getpay-gateway
GetPay Gateway for Laravel (Nepal)
A lightweight Laravel package to integrate the GetPay Nepal payment gateway.
- PHP: ^8.0
- Laravel (Illuminate): 9.x, 10.x, 11.x, 12.x
- Package name:
neputertech/getpay-gateway
This package ships a Facade-first API, pre-wired routes, and publishable views/config to help you start accepting payments quickly.
Installation
Laravel package auto-discovery will register the service provider automatically.
Publish assets (optional)
-
Config:
- Views (if you want to customize the built-in screens):
Environment variables
Add the following to your .env
(values provided by GetPay):
Config keys live in config/getpay.php
:
getpay.pap_info
getpay.opr_key
getpay.ins_key
getpay.base_url
getpay.bundle_url
Quick start (Facade-first)
Import and use the Facade Getpay
to kick off a checkout and to verify the payment on the callback.
1) Start a checkout
This redirects to the built-in getpay.checkout
page which loads the GetPay bundle and starts the checkout.
2) Handle the callback and verify
GetPay will redirect back to your callbackUrl
with a token. Verify it using the Facade:
Example routes:
What the package provides
- Service container binding: key
getpay
(singleton) - Facade class:
NeputerTech\GetpayGateway\Facades\Getpay
- Shipped routes (auto-loaded via the service provider):
GET /getpay/checkout
namedgetpay.checkout
– used byGetpay::init()
for the handoff screenGET /getpay/payment
namedgetpay.payment
– basic payment view (optional)
- View namespace:
getpay-views::
getpay-views::checkout
getpay-views::payment
- Blade component namespace:
getpay-*
(registered), e.g. you can render the checkout script component if customizing views:
Note: The package defaults should work out of the box. Customize only if you need to fully control the UI.
Testing tips
You can fake the gateway verification call:
Troubleshooting
- Invalid or missing token → ensure your
callbackUrl
receives atoken
query param and pass it toGetpay::verify()
. - 4003 "Gateway error" → verify
GETPAY_BASE_URL
is reachable and correct. - "Transaction failed" → the gateway returned a non-success status; inspect the response array from
verify()
.
License
MIT © NeputerTech