ibnealamkhan/sabpaisa-direct-intent

SabPaisa Direct Intent Payment Integration using Guzzle in PHP.

Maintainers

Package info

github.com/Ibnealamkhan/sabpaisa-direct-intent

Homepage

Type:project

pkg:composer/ibnealamkhan/sabpaisa-direct-intent

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

2.0.5 2025-08-30 11:04 UTC

This package is not auto-updated.

Last update: 2026-04-25 14:24:23 UTC


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.php file.

Usage

  1. Ensure config.php is properly configured with your SabPaisa credentials.
  2. Include the package files in your project.
  3. 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'