2017 © Pedro Peláez
 

library mpasscoresdk

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

image

masterpass/mpasscoresdk

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

  • Friday, February 23, 2018
  • by Masterpass
  • Repository
  • 0 Watchers
  • 1 Stars
  • 6,021 Installations
  • 4 Dependents
  • 0 Suggesters
  • 3 Forks
  • 8 Open issues
  • 9 Versions
  • 25 % Grown

The README.md

Read Me

PHP Core SDK for use with Masterpass Merchant Checkout Service SDK on MasterCard Developer Zone (https://developer.mastercard.com), (*1)

Pre-Requisites for using PHP MasterCard Core SDK:, (*2)

  • PHP 5.5 or higher
  • Download MasterCardCoreSDK-PHP phar file, (*3)

    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:

For Masterpass V6 :, (*4)

For configuration and pre-requisites: https://developer.mastercard.com/documentation/masterpass-merchant-integration-v6 For standard/express checkout integration: https://developer.mastercard.com/documentation/masterpass-merchant-integration-v6#tutorials, (*5)

For Masterpass V7:, (*6)

For configuration and pre-requisites https://developer.mastercard.com/documentation/masterpass-merchant-integration-v7 For standard checkout integration: https://developer.mastercard.com/documentation/masterpass-merchant-integration-v7#standard-checkout For express checkout integration: https://developer.mastercard.com/documentation/masterpass-merchant-integration-v7#express-checkout, (*7)

This phar can be downloaded from github directly or by using composer dependency., (*8)

If you do not have composer installed you can download it from https://getcomposer.org/, (*9)

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

MasterCardCoreSDK v6 : ``` { "require": { "masterpass/mpasscoresdk":"1.3.0" } }, (*11)

 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:, (*12)

composer update, (*13)

Usage

Set configurations for private key and consumer key to call API:, (*14)


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., (*15)


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

Example : Api Call, (*16)


$RequestTokenResponse = RequestTokenApi::create(<URL>);

You can get more information about integrating MasterCard Merchant Checkout SDK from MasterCard Developer Zone -, (*17)

Merchant Integration section.

The Versions

23/02 2018

dev-develop

dev-develop https://developer.mastercard.com

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

  Sources   Download

The Requires

 

23/02 2018

dev-master

9999999-dev https://developer.mastercard.com

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

  Sources   Download

The Requires

 

23/02 2018

2.2.0

2.2.0.0 https://developer.mastercard.com

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

  Sources   Download

The Requires

 

13/11 2017

2.1.0

2.1.0.0 https://developer.mastercard.com

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

  Sources   Download

The Requires

 

30/08 2017

dev-release/v2.0.0

dev-release/v2.0.0 https://developer.mastercard.com

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

  Sources   Download

The Requires

 

22/08 2017

2.0.0

2.0.0.0 https://developer.mastercard.com

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

  Sources   Download

The Requires

 

12/05 2017

1.3.0

1.3.0.0 https://developer.mastercard.com

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

  Sources   Download

The Requires

  • php >=5.5.0

 

17/03 2017

1.2.0

1.2.0.0 https://developer.mastercard.com

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

  Sources   Download

The Requires

  • php >=5.5.0

 

23/12 2016

1.1.0

1.1.0.0 https://developer.mastercard.com

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

  Sources   Download

The Requires

  • php >=5.5.0