PHPackages                             masterpass/mpasscoresdk - 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. [API Development](/categories/api)
4. /
5. masterpass/mpasscoresdk

ActiveLibrary[API Development](/categories/api)

masterpass/mpasscoresdk
=======================

PHP Core SDK for use with Masterpass Merchant Checkout Service SDK on MasterCard Developer Zone

2.3.0(7y ago)350.8k↑18.2%4[4 issues](https://github.com/Masterpass/MasterCardCoreSDK-PHP/issues)[1 PRs](https://github.com/Masterpass/MasterCardCoreSDK-PHP/pulls)4PHP &gt;=5.5.0

Since Dec 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Masterpass/MasterCardCoreSDK-PHP)[ Packagist](https://packagist.org/packages/masterpass/mpasscoresdk)[ Docs](https://developer.mastercard.com)[ RSS](/packages/masterpass-mpasscoresdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (9)Used By (4)

Read Me
=======

[](#read-me)

PHP Core SDK for use with Masterpass Merchant Checkout Service SDK on MasterCard Developer Zone ()

Pre-Requisites for using PHP MasterCard Core SDK:

- PHP 5.5 or higher
- Download MasterCardCoreSDK-PHP phar file

##### Note: Refer to mastercard developer zone for documentation on SDKs for implementation reference and avoid potential break in your existing code if you upgrade with higher version.

[](#note-refer-to-mastercard-developer-zone-for-documentation-on-sdks-for-implementation-reference-and-avoid-potential-break-in-your-existing-code-if-you-upgrade-with-higher-version)

##### Documentation for SDK Integration:

[](#documentation-for-sdk-integration)

For Masterpass V6 :

For configuration and pre-requisites: For standard/express checkout integration:

For Masterpass V7:

For configuration and pre-requisites For standard checkout integration: For express checkout integration:

This phar can be downloaded from github directly or by using composer dependency.

If you do not have composer installed you can download it from

To download this phar as composer dependency, put a file named composer.json at the root of your project, containing as your project dependencies:

MasterCardCoreSDK v6 :

```
{
   "require": {
     "masterpass/mpasscoresdk":"1.3.0"
   }
}

```

MasterCardCoreSDK v7 :

```
{
   "require": {
     "masterpass/mpasscoresdk":"2.3.0"
   }
}

```

In order to import this package in your application, you need to use following composer command after installing composer locally:

> composer update

Usage
-----

[](#usage)

Set configurations for private key and consumer key to call API:

```

MasterCardApiConfig::$consumerKey = "YOUR_CONSUMER_KEY";
MasterCardApiConfig::$privateKey = "YOUR_PRIVATE_KEY";
MasterCardApiConfig::setSandBox(true); // For sandbox environment. By default SANDBOX environment is set as true, Set sandbox to false to use Production environment

```

Customize default SSL settings for the SDK through Configuration class using following code: \[You may get SSL Exception if there is no already configured ssl certificate file exists locally or in php.ini\] Note: SSL Verification is set to True by default. Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.

```

$conf = new Configuration();
$conf->setSSLVerification("C:\\Users\\Documents\\cert.pem");
Configuration::setDefaultConfiguration($conf);

```

Example : Api Call

```

$RequestTokenResponse = RequestTokenApi::create();

```

You can get more information about integrating MasterCard Merchant Checkout SDK from MasterCard Developer Zone -

##### Merchant Integration section.

[](#merchant-integration-section)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~102 days

Recently: every ~118 days

Total

7

Last Release

2819d ago

Major Versions

1.3.0 → 2.0.02017-08-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/979fa4577f6c7b82a758e2f3f630cb6023f1ba83894355a1f06d18ea4fea995a?d=identicon)[Masterpass](/maintainers/Masterpass)

---

Top Contributors

[![Masterpass](https://avatars.githubusercontent.com/u/20922886?v=4)](https://github.com/Masterpass "Masterpass (23 commits)")

### Embed Badge

![Health badge](/badges/masterpass-mpasscoresdk/health.svg)

```
[![Health](https://phpackages.com/badges/masterpass-mpasscoresdk/health.svg)](https://phpackages.com/packages/masterpass-mpasscoresdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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