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

simplify-commerce

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplify-commerce

Simplify Commerce Node.js SDK

  • 1.11.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source
             Node.js Module for Simplify Commerce

What is it?

A Node.js module for the Simplify Commerce payments platform. If you have not already got an account sign up at https://www.simplify.com/commerce.

Installation

If you haven't done so, you first need to install the Simplify module. You can either download it at https://www.simplify.com/commerce/docs/sdk/nodejs and install it from the binary. More easily, you can install it using node's package manager.

You can do so with the following command:

npm install simplify-commerce

Using the SDK

To run a payment though Simplify Commerce use the following script substituting your public and private API keys:

var Simplify = require("simplify-commerce"),
    client = Simplify.getClient({
      publicKey: 'YOUR_PUBLIC_API_KEY',
      privateKey: 'YOUR_PRIVATE_API_KEY'
    });

client.payment.create({
  amount: "123123",
  description: "Node.js Sample Payment",
  card: {
    expMonth: "11",
    expYear: "25",
    cvc: "123",
    number: "5555555555554444"
  },
  currency: "USD"
}, function(error, data) {

  if (error) {
    console.error(JSON.stringify(error.data));
    return;
  }

  console.log("Payment Status: " + data.paymentStatus);
});

For more examples see https://www.simplify.com/commerce/docs/sdk/nodejs

Licensing

Please see LICENSE.txt for details.

Documentation

For more detailed information on the API with examples visit the online documentation at https://www.simplify.com/commerce/docs/api/index

Support

Please see https://www.simplify.com/commerce/support for information.

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

Keywords

FAQs

Package last updated on 26 Oct 2023

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