Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 2.06 KB

File metadata and controls

58 lines (36 loc) · 2.06 KB

MdesDigitalEnablementApi.TransactApi

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

Method HTTP request Description
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.

createTransact

TransactResponseSchema createTransact(opts)

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.

This API is 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 through a payment processor. The entire response is encrypted. The caller may only transact using the Tokens belonging to them.

Example

var MdesDigitalEnablementApi = require('mdes_digital_enablement_api');

var apiInstance = new MdesDigitalEnablementApi.TransactApi();
var opts = {
  'transactRequestSchema': new MdesDigitalEnablementApi.TransactRequestSchema() // TransactRequestSchema | 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);
  }
};
apiInstance.createTransact(opts, callback);

Parameters

Name Type Description Notes
transactRequestSchema TransactRequestSchema Contains the details of the request message. [optional]

Return type

TransactResponseSchema

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json