New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

samurai

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

samurai

Samurai payment gateway API client module for Node.js

  • 0.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

Samurai

If you are an online merchant and using FeeFighters' Samurai gateway, this node.js module will make your life easy. Integrate with the samurai.feefighters.com portal and process transactions.

Installation

Install Samurai just like any other node module, using npm:

npm install samurai

Then require the samurai module into your app:

var samurai = require('samurai')

Configuration

Use the Samurai.setup method to get the Samurai module ready for action. You should pass an object, containing your merchant credentials as a parameter. Here's an example:

Samurai.setup({
  merchant_key:       'your_merchant_key',
  merchant_password:  'your_merchant_password',
  processor_token:    'your_default_processor_token'
});

The processor_token param is optional. If you set it, samurai.Processor.the_processor will return the processor with this token. You can always call samurai.Processor.find('an_arbitrary_processor_token') to retrieve any of your processors.

Samurai API Reference

See the API Reference for a full explanation of how this gem works with the Samurai API.

Keywords

FAQs

Package last updated on 09 Feb 2012

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