PHPackages                             fahadyousafmahar/easypaisa-wsdl-php - 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. fahadyousafmahar/easypaisa-wsdl-php

ActiveLibrary[Payment Processing](/categories/payments)

fahadyousafmahar/easypaisa-wsdl-php
===================================

PHP library to facilitate use of Easypaisa's Easypay WSDL

1.0(5y ago)1151GPL-3.0-or-laterPHPPHP &gt;=5.3.3

Since Aug 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/FahadYousafMahar/EasyPaisaWSDL)[ Packagist](https://packagist.org/packages/fahadyousafmahar/easypaisa-wsdl-php)[ Docs](https://webit.pk)[ RSS](/packages/fahadyousafmahar-easypaisa-wsdl-php/feed)WikiDiscussions master Synced 3w ago

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

EasyPaisaWSDL
=============

[](#easypaisawsdl)

PHP library to facilitate use of Easypaisa's B2B WSDL Integration

[![PHP Version](https://camo.githubusercontent.com/45dabdb21af5a9c0209f5ac763cff1b6a42a462eb39751131b2a069a4ba9587c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6661686164796f757361666d616861722f6561737970616973612d7773646c2d706870)](https://packagist.org/packages/fahadyousafmahar/easypaisa-wsdl-php)[![GitHub top language](https://camo.githubusercontent.com/3a8b18339ff210a8ea0fac63eb3f420c5548080cf2dab0be7d8dd08c312cd60d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f6661686164796f757361666d616861722f6561737970616973617773646c)](https://camo.githubusercontent.com/3a8b18339ff210a8ea0fac63eb3f420c5548080cf2dab0be7d8dd08c312cd60d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f746f702f6661686164796f757361666d616861722f6561737970616973617773646c)[![Contributors](https://camo.githubusercontent.com/781f24685cb650d9287d1153a5ab4e49d7b2f388f08680f0329b406dde83fe0f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6661686164796f757361666d616861722f6561737970616973617773646c)](https://camo.githubusercontent.com/781f24685cb650d9287d1153a5ab4e49d7b2f388f08680f0329b406dde83fe0f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6661686164796f757361666d616861722f6561737970616973617773646c)[![License](https://camo.githubusercontent.com/95a1ba5e97ee0f108c0a704c9170976e64444e9463e0e1de07e00a9963944457/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6661686164796f757361666d616861722f6561737970616973617773646c)](https://camo.githubusercontent.com/95a1ba5e97ee0f108c0a704c9170976e64444e9463e0e1de07e00a9963944457/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6661686164796f757361666d616861722f6561737970616973617773646c)[![Repo Size](https://camo.githubusercontent.com/d74b92cb8b850bcf5af1f0a4bf444f82c1b33df8b51aa2cafc2a4b4c0c957b9e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6661686164796f757361666d616861722f6561737970616973617773646c)](https://camo.githubusercontent.com/d74b92cb8b850bcf5af1f0a4bf444f82c1b33df8b51aa2cafc2a4b4c0c957b9e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6661686164796f757361666d616861722f6561737970616973617773646c)

Installation
------------

[](#installation)

### With Composer

[](#with-composer)

```
$ composer require fahadyousafmahar/easypaisa-wsdl-php

```

```
{
    "require": {
        "fahadyousafmahar/easypaisa-wsdl-php": "^1.0.0"
    }
}
```

### Usage

[](#usage)

```
require_once __DIR__ . '/vendor/autoload.php';
$options = array(
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://easypay.easypaisa.com.pk/easypay-service/PartnerBusinessService/META-INF/wsdl/partner/transaction/PartnerBusinessService.wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => \WebIT\ClassMap::get(),
);
$initiate = new \WebIT\ServiceType\Initiate($options);
/**
 * Sample call for initiateTransaction operation/method
 */
$parameters = new \WebIT\StructType\InitiateTransactionRequestType(
    '1234', //string $orderId (Merchant’s system generated Order Id)
    '1234', //int $storeId (Store ID generated during merchant registration in Easypay)
    '100.0', //float $transactionAmount (Total Transaction Amount)
    'OTC', //string $transactionType ( Type of transaction. Possible values are: OTC / MA / CC )
    '03431234567', //string $msisdn (Customer’s MSISDN) {Mandatory for OTC, Mandatory for CC,  Optional for MA}
    '03431234567', //string $mobileAccountNo (Customer’s Mobile Account #) {Mandatory for MA, Optional for OTC}
    'example@example.com', //string $emailAddress (Customer’s Email) Optional
    'merchantUsername', //string $username (Merchant username) Mandatory
    'merchantPassword' //string $password (Merchant password) Mandatory
);
if ($initiate->initiateTransaction($parameters) !== false) {
    print_r($initiate->getResult());
} else {
    print_r($initiate->getLastError());
}
/**
 * Sample call for initiateCCTransaction operation/method
 * Send InitiateCCTransactionRequestType with your own parameters. Given below with empty constructor is for demo only
 */
$parameters = new \WebIT\StructType\InitiateCCTransactionRequestType(
    '1234', // string $orderId (Merchant’s system generated Order Id)
    '1234', // int $storeId (Store ID generated during merchant registration in Easypay)
    '100.0', // float $transactionAmount (Total Transaction Amount)
    'CC', // string $transactionType ( Type of transaction. Possible values are: CC )
    '03431234567', // int $msisdn (Customer’s MSISDN) {Mandatory for OTC, Mandatory for CC,  Optional for MA}
    'example@example.com', //string $emailAddress (Customer’s Email) Optional
    'Mastercard', // string $cardType (Type of Credit Card in case of Credit Card Transaction)
    '5313581000123430', // int $pan (Personal Account Number of the customer) Mandatory
    '25', // int $expiryYear (Expiry Year) Mandatory
    '12', // int $expiryMonth (Expiry Month) Mandatory
    '123', // int $CVV (CVV) Mandatory
    'merchantUsername', //string $username (Merchant username) Mandatory
    'merchantPassword' //string $password (Merchant password) Mandatory

);
if ($initiate->initiateCCTransaction($parameters ) !== false) {
    print_r($initiate->getResult());
} else {
    print_r($initiate->getLastError());
}
/**
 * Samples for Inquire ServiceType
 * Send InquireTransactionRequestType with your own parameters. Given below with empty constructor is for demo only
 */
$inquire = new \WebIT\ServiceType\Inquire($options);
/**
 * Sample call for inquireTransaction operation/method
 */
$parameters = new \WebIT\StructType\InquireTransactionRequestType(
    '1234', //string $orderId (Merchant’s system generated Order Id) Mandatory
    '9999999999999999', // $accountNum (Merchant Account No registered with Easypay) Mandatory
    'merchantUsername', //string $username (Merchant username) Mandatory
    'merchantPassword'//string $password (Merchant password) Mandatory

);
if ($inquire->inquireTransaction($parameters) !== false) {
    print_r($inquire->getResult());
} else {
    print_r($inquire->getLastError());
}
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2147d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b60179f3da2fe2119df690c342bc0a0303a0d98e4f17f8600b805ca5a251a50?d=identicon)[fahadyousafmahar](/maintainers/fahadyousafmahar)

---

Top Contributors

[![FahadYousafMahar](https://avatars.githubusercontent.com/u/20330772?v=4)](https://github.com/FahadYousafMahar "FahadYousafMahar (18 commits)")

---

Tags

telenoreasypayeasypaisafahadyousafmahareasypaisawsdleasypaisa-php

### Embed Badge

![Health badge](/badges/fahadyousafmahar-easypaisa-wsdl-php/health.svg)

```
[![Health](https://phpackages.com/badges/fahadyousafmahar-easypaisa-wsdl-php/health.svg)](https://phpackages.com/packages/fahadyousafmahar-easypaisa-wsdl-php)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
