ibnealamkhan / sabpaisa-direct-intent
SabPaisa Direct Intent Payment Integration using Guzzle in PHP.
Package info
github.com/Ibnealamkhan/sabpaisa-direct-intent
Type:project
pkg:composer/ibnealamkhan/sabpaisa-direct-intent
2.0.5
2025-08-30 11:04 UTC
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^7.0
README
Prerequisites
- SabPaisa Intent must be enabled in your payment gateway account.
- You must have a valid SabPaisa merchant account and credentials.
Configuration
- All configuration settings (client code, username, password, keys, etc.) should be set in the
config.phpfile.
Usage
- Ensure
config.phpis properly configured with your SabPaisa credentials. - Include the package files in your project.
- Use the provided classes and methods to initiate payments via SabPaisa Intent.
Example
include_once 'config.php'; include_once 'Sabpaisa.php'; $sabpaisa = new Sabpaisa(); $result = $sabpaisa->processCompletePayment($token, $clientCode,$txnid); // ...initialize payment as shown in index.php... Goto src/sabpaisa.php 'origin' => 'Your whitlisted sabpaisa URL', 'referer' => 'Your whitlisted sabpaisa URL'