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

beta-rest-sdk-nodejs

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

beta-rest-sdk-nodejs

Payments API Node Client

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Cybersource APIs Client Library for Node.js

Description

The Cybersource API Client Library enables you to work with Cybersource Rest APIs on your server.

Basic Example

See the examples/ directory for examples of the key client features.

Configuration

    var ApiClient = require('apiClient.js');
    var options = {
        apikey: '<apikey>', //replace with your apikey
        secretKey: '<secretkey>', //replace with your secrekey
        domain: 'https://sandbox.api.visa.com/cybersource' //url
    };

Authorization

    var restClient = new ApiClient(options);
    restClient
    .authorizePayment(req)
    .then(function(res) {
        console.info("Authorization:" + JSON.stringify(res.body));
    }, function(err) {
        console.error("Failed to Authorize" + err.message);
    });

Capture


    var req = {
        id: <authorization id>,
        captureRequest: {
            amount: "100.00"
        }
    }
    var restClient = new ApiClient(options);
    restClient
    .capture(req)
    .then(function(res) {
        console.info("Capture:" + JSON.stringify(res.body));
    }, function(err) {
        console.error("Failed to Authorize" + err.message);
    });

Documentation

Cybersource: https://devint.vdp.visa.com/products/cybersource/guides

Keywords

FAQs

Package last updated on 22 Oct 2015

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