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

synapsepay

Package Overview
Dependencies
Maintainers
5
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

synapsepay - npm Package Compare versions

Comparing version 0.11.1 to 0.11.2

4

index.js

@@ -17,2 +17,3 @@ var Clients = require('./lib/Clients.js'),

Crypto = require('./lib/Crypto.js');
PublicKey = require('./lib/PublicKey.js');

@@ -35,3 +36,4 @@ module.exports = {

LocateATMs: LocateATMs,
Crypto: Crypto
Crypto: Crypto,
PublicKey: PublicKey
};
{
"name": "synapsepay",
"version": "0.11.1",
"version": "0.11.2",
"description": "Node.js Library for SynapsePay API v3.x Rest",

@@ -5,0 +5,0 @@ "repository": {

@@ -5,2 +5,3 @@ var Clients = require('./lib/Clients.js');

var Transactions = require('./lib/Transactions.js');
var PublicKey = require('./lib/PublicKey.js');

@@ -18,59 +19,75 @@ const Helpers = {

const testFunc = () => {
Users.get(
PublicKey.get(
Helpers.client,
{
_id: '5c80142131d1770068fa9b5d',
fingerprint: 'd1882ccdef25273d58f3fc9adad7f4a3',
ip_address: '127.0.0.1'
},
function(err, userObj) {
{},
function(err, pubKeyObj) {
if (err) {
console.log('ERR ', err);
return;
} else {
user = userObj;
Nodes.get(
userObj,
{
_id: '5c8014394b7ba903595c2a3e'
},
function(err, nodeObj) {
if (err) {
console.log('ERR ', err);
} else {
node = nodeObj;
Transactions.get(
nodeObj,
{
_id: '5c801dbb26560a0067b7a104'
},
function(err, trxnObj) {
if (err) {
console.log('ERR ', err);
} else {
trxnObj.dispute(
{
dispute_reason: 'CHARGE_BACK'
},
function(err, json) {
if (err) {
console.log('ERR ', err);
return;
} else {
console.log('SUCCESS ', json);
return;
}
}
)
}
}
)
}
}
)
console.log('PK ', pubKeyObj);
return;
}
}
);
return;
};
)
}
// const testFunc = () => {
// Users.get(
// Helpers.client,
// {
// _id: '5c80142131d1770068fa9b5d',
// fingerprint: 'd1882ccdef25273d58f3fc9adad7f4a3',
// ip_address: '127.0.0.1'
// },
// function(err, userObj) {
// if (err) {
// console.log('ERR ', err);
// } else {
// user = userObj;
// Nodes.get(
// userObj,
// {
// _id: '5c8014394b7ba903595c2a3e'
// },
// function(err, nodeObj) {
// if (err) {
// console.log('ERR ', err);
// } else {
// node = nodeObj;
// Transactions.get(
// nodeObj,
// {
// _id: '5c801dbb26560a0067b7a104'
// },
// function(err, trxnObj) {
// if (err) {
// console.log('ERR ', err);
// } else {
// trxnObj.dispute(
// {
// dispute_reason: 'CHARGE_BACK'
// },
// function(err, json) {
// if (err) {
// console.log('ERR ', err);
// return;
// } else {
// console.log('SUCCESS ', json);
// return;
// }
// }
// )
// }
// }
// )
// }
// }
// )
// }
// }
// );
// return;
// };
testFunc();
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