npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wlt-mastercard-mdes

v1.2.10

Published

The_MDES_APIs_are_designed_as_RPC_style_stateless_web_services_where_each_API_endpoint_represents_an_operation_to_be_performed___All_request_and_response_payloads_are_sent_in_the_JSON__JavaScript_Object_Notation_data_interchange_format__Each_endpoint_in_t

Downloads

5

Readme

wlt-mastercard-mdes

MdesDigitalEnablementApi - JavaScript client for wlt-mastercard-mdes These APIs are designed as RPC style stateless web services where each API endpoint represents an operation to be performed. All request and response payloads are sent in the JSON (JavaScript Object Notation) data-interchange format. Each endpoint in the API specifies the HTTP Method used to access it. All strings in request and response objects are to be UTF-8 encoded. Each API URI includes the major and minor version of API that it conforms to. This will allow multiple concurrent versions of the API to be deployed simultaneously. Authentication Mastercard uses OAuth 1.0a with body hash extension for authenticating the API clients. This requires every request that you send to Mastercard to be signed with an RSA private key. A private-public RSA key pair must be generated consisting of:

  1. A private key for the OAuth signature for API requests. It is recommended to keep the private key in a password-protected or hardware keystore.

An OAUTH1.0a signer library is available on GitHub Encryption All communications between Issuer web service and the Mastercard gateway is encrypted using TLS. Additional Encryption of Sensitive Data In addition to the OAuth authentication, when using MDES Digital Enablement Service, any PCI sensitive and all account holder Personally Identifiable Information (PII) data must be encrypted. This requirement applies to the API fields containing encryptedData. Sensitive data is encrypted using a symmetric session (one-time-use) key. The symmetric session key is then wrapped with an RSA Public Key supplied by Mastercard during API setup phase (the Customer Encryption Key).

Java Client Encryption Library available on GitHub

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.3.0
  • Package version: 1.3.0
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install wlt-mastercard-mdes --save

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var MdesDigitalEnablementApi = require('wlt-mastercard-mdes');


var api = new MdesDigitalEnablementApi.DeleteApi()
var opts = {
  'deleteRequestSchema': new MdesDigitalEnablementApi.DeleteRequestSchema() // {DeleteRequestSchema} Contains the details of the request message. 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteDigitization(opts, callback);

Documentation for API Endpoints

All URIs are relative to https://api.mastercard.com/mdes

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- MdesDigitalEnablementApi.DeleteApi | deleteDigitization | POST /digitization/static/1/0/delete | Used to delete one or more Tokens. The API is limited to 10 Tokens per request. MdesDigitalEnablementApi.GetAssetApi | getAsset | GET /assets/static/1/0/asset/{AssetId} | Used to retrieve static Assets from the MDES repository. MdesDigitalEnablementApi.GetTaskStatusApi | getTaskStatus | POST /digitization/static/1/0/getTaskStatus | Used to check the status of any asynchronous task that was previously requested. MdesDigitalEnablementApi.GetTokenApi | getToken | POST /digitization/static/1/0/getToken | Used to get the status and details of a single given Token. MdesDigitalEnablementApi.NotifyTokenUpdatedApi | notifyTokenUpdateForTokenStateChange | POST /digitization/static/1/0/notifyTokenUpdated | Outbound API used by MDES to notify the Token Requestor of significant Token updates, such as when the Token is activated, suspended, unsuspended or deleted; or when information about the Token or its product configuration has changed. MdesDigitalEnablementApi.SearchTokensApi | searchTokens | POST /digitization/static/1/0/searchTokens | Used to get basic token information for all tokens on a specified device, or all tokens mapped to the given Account PAN. MdesDigitalEnablementApi.SuspendApi | createSuspend | POST /digitization/static/1/0/suspend | Used to temporarily suspend one or more Tokens. MdesDigitalEnablementApi.TokenizeApi | createTokenize | POST /digitization/static/1/0/tokenize | MdesDigitalEnablementApi.TransactApi | createTransact | POST /remotetransaction/static/1/0/transact | Used by the Token Requestor to create a Digital Secure Remote Payment ("DSRP") transaction cryptogram using the credentials stored within MDES in order to perform a DSRP transaction. MdesDigitalEnablementApi.UnsuspendApi | createUnsuspend | POST /digitization/static/1/0/unsuspend | Used to unsuspend one or more previously suspended Tokens. The API is limited to 10 Tokens per request.

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.