Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mastercard-billpayapi

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mastercard-billpayapi

Core functionality for MasterCard API

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
308
increased by37.5%
Maintainers
1
Weekly downloads
 
Created
Source
Node.js Module for mastercard-billpayapi

What is it?

A Node.js module for the mastercard-billpayapi API. If you have not already got an account sign up at https://developer.mastercard.com.

Installation

If you haven't done so, you first need to install the mastercard-billpayapi module. You can install it using node's package manager (NPM) with the following command:

npm install mastercard-billpayapi

             

Using the SDK

To run an API request you first need to initialize the MasterCardAPI. You only need to do initialize MasterCardAPI once per application instance.

var billpayapi = require('mastercard-billpayapi');
var MasterCardAPI = billpayapi.MasterCardAPI;

var consumerKey = "your consumer key";   // You should copy this from "My Keys" on your project page e.g. UTfbhDCSeNYvJpLL5l028sWL9it739PYh6LU5lZja15xcRpY!fd209e6c579dc9d7be52da93d35ae6b6c167c174690b72fa
var keyStorePath = "path to your .p12 private key file"; // e.g. /Users/yourname/project/sandbox.p12 | C:\Users\yourname\project\sandbox.p12
var keyAlias = "keyalias";   // For production: change this to the key alias you chose when you created your production key
var keyPassword = "keystorepassword";   // For production: change this to the key alias you chose when you created your production key

// You only need to do initialize MasterCardAPI once
var authentication = new MasterCardAPI.OAuth(consumerKey, keyStorePath, keyAlias, keyPassword);
MasterCardAPI.init({
    sandbox: true,
    authentication: authentication
});

For examples and documentation see https://developer.mastercard.com

Licensing

Please see LICENSE.txt for details.

Documentation

For more detailed information on the API with examples visit the online documentation at https://developer.mastercard.com

Support

Please see https://developer.mastercard.com for information.

Copyright (c) 2013 - 2016 MasterCard International Incorporated All rights reserved.

Keywords

FAQs

Package last updated on 12 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc