ibnealamkhan/sabpaisa-direct-intent

SabPaisa Direct Intent Payment Integration using Guzzle in PHP.

2.0.4 2025-08-21 21:21 UTC

This package is not auto-updated.

Last update: 2025-08-21 21:26:55 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...