🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

node-stripe

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
n

node-stripe

API service to stripe in node.js

1.0.9
latest
72

Supply Chain Security

100

Vulnerability

91

Quality

76

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Dependencies have 2 high alerts.

Socket optimized override available

Version published
Weekly downloads
16
45.45%
Maintainers
1
Weekly downloads
 
Created
Issues
0

Install

npm install node-stripe --save

init

To begin any stripe transactions or services using this module, We need to init

    var stripe=require('node-stripe');
 stripe.init({key:secret key},function(err,result){
        if(err)
        {
            console.log(err);
        }
        else
        {
		console.log(result);
		});
		
		

Creating Charges

    var stripe=require('node-stripe');
 stripe.init({key:secret key},function(err,result){
        if(err)
        {
            console.log(err);
        }
        else
        {
		stripe.charges({
        amount: 1500, // Amount in cents
            currency: "usd",
            customer: CustomerID // Previously stored, then retrieved)
		});
		
		}
		});
		

Customers

var stripe=require('../module/experiement');
    stripe.init({key:'secret key'},function(err,result){
        if(err)
        {
            console.log(err);
        }
        else
        {
            stripe.customers().listAll( function(err, customer) {
                // asynchronously called
                if(err)
                {
                    res.send(err);
                    res.end();
                    return false;
                }
                else
                {
                    res.send(customer)
                    res.end();
                    return false;
                }
            });
        }

    });

FAQs

Package last updated on 10 Dec 2016

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