PHPackages                             neputertech/getpay-gateway - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. neputertech/getpay-gateway

ActiveLibrary[Payment Processing](/categories/payments)

neputertech/getpay-gateway
==========================

Laravel integration for GetPay Nepal payment gateway integration

1.0.4(8mo ago)012MITPHPPHP ^8.0

Since Aug 25Pushed 8mo agoCompare

[ Source](https://github.com/neputertech/getpay-gateway)[ Packagist](https://packagist.org/packages/neputertech/getpay-gateway)[ RSS](/packages/neputertech-getpay-gateway/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (5)Used By (0)

GetPay Gateway for Laravel (Nepal)
==================================

[](#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
------------

[](#installation)

```
composer require neputertech/getpay-gateway
```

Laravel package auto-discovery will register the service provider automatically.

Publish assets (optional)
-------------------------

[](#publish-assets-optional)

- Config:

```
php artisan vendor:publish --provider="NeputerTech\GetpayGateway\GetpayServiceProvider" --tag=getpay-config
```

- Views (if you want to customize the built-in screens):

```
php artisan vendor:publish --tag=getpay-views
```

Environment variables
---------------------

[](#environment-variables)

Add the following to your `.env` (values provided by GetPay):

```
GETPAY_PAP_INFO=your-pap-info
GETPAY_OPR_KEY=your-operator-key   # optional depending on your account
GETPAY_INS_KEY=your-ins-key        # optional depending on your account
GETPAY_BASE_URL=https://api.getpay.example   # e.g. https://api.getpay.com.np
GETPAY_BUNDLE_URL=https://widget.getpay.example/bundle.js  # GetPay checkout bundle URL
```

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)
--------------------------

[](#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

[](#1-start-a-checkout)

```
