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

dotdashpay

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotdashpay - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

49

examples/reference.example.js

@@ -273,51 +273,2 @@ /**

/**
Autogenerated example for API request: ConfigureProcessor
**/
// @reference()
// @standalone(try_api_short)
var dotdashpay = require("dotdashpay");
dotdashpay.setup({
simulate: true,
apiToken: "@api-token()"
});
dotdashpay.payment.receivePaymentDataThenSettle({ cents: 100 })
.onSettled(function(response) {
console.log("Settlement finished! Settle response data: ", JSON.stringify(response, null, 2));
process.exit(0);
})
.onError(function(errorData) {
console.error("Unexpected error: ", JSON.stringify(response, null, 2));
process.exit(0);
});
// @standalone-end()
// @reference-end()
// @example-args(Payment.ConfigureProcessor)
var args = {
livemode: false,
};
// @example-args-end()
// @example-request(Payment.ConfigureProcessor)
dotdashpay.payment.configureProcessor(args)
.onConfiguredProcessor(function(response) {
console.log("Received onConfiguredProcessor response", JSON.stringify(response, null, 2));
var livemode = response.livemode; // e.g. false
})
.onError(function(errorData) {
console.log("Error", JSON.stringify(errorData, null, 2));
});
// @example-request-end()
/**
Autogenerated example for API request: ReceivePaymentDataThenSettle

@@ -324,0 +275,0 @@ **/

@@ -33,8 +33,2 @@ /**

module.exports.configureProcessor = function configureProcessor(configureProcessorArgs) {
var request = new ConfigureProcessorRequest(configureProcessorArgs);
server.sendRequest(request);
return request;
};
module.exports.receivePaymentDataThenSettle = function receivePaymentDataThenSettle(receivePaymentDataThenSettleArgs) {

@@ -303,56 +297,2 @@ var request = new ReceivePaymentDataThenSettleRequest(receivePaymentDataThenSettleArgs);

/**
ConfigureProcessorRequest is a constructor for setting up the necessary
callback events and data in order to handle requests and response
appropriately for the associated RPC: ConfigureProcessorRequest
**/
var ConfigureProcessorRequest = function ConfigureProcessorRequest(requestDataArgs) {
var thisReq = this;
// Setup the request response signals to handle events
thisReq._signals = {};
thisReq._signals.ConfiguredProcessor = new Signal();
thisReq._signals.ErrorResponse = new Signal();
thisReq._protobuf = protobufTools.getProtobuf("ConfigureProcessorArgs");
thisReq._protobuf.META = thisReq._protobuf.META || {};
var thisProtobuf = thisReq._protobuf;
if (requestDataArgs) {
_.each(requestDataArgs, function(val, key) {
if (thisProtobuf[key] === undefined) {
throw new Error("Request 'configureProcessor' does not accept an argument with name '" + key + "'");
}
thisProtobuf[key] = val;
});
}
// Set helper data for the protobuf
thisProtobuf._protoName = "ConfigureProcessorArgs";
thisProtobuf._rpcName = "ConfigureProcessor";
return thisReq;
};
/**
ConfiguredProcessor is a COMPLETION event
**/
ConfigureProcessorRequest.prototype.onConfiguredProcessor =
function onConfiguredProcessor(callbackFunction) {
var thisReq = this;
// TODO(cjrd) should the default be a permanent cb or "once" cb?
thisReq._signals.ConfiguredProcessor.add(callbackFunction);
return thisReq;
};
/**
onError is a COMPLETION event
**/
ConfigureProcessorRequest.prototype.onError =
function onError(callbackFunction) {
var thisReq = this;
thisReq._signals.ErrorResponse.add(callbackFunction);
return thisReq;
};
/**
ReceivePaymentDataThenSettleRequest is a constructor for setting up the necessary

@@ -359,0 +299,0 @@ callback events and data in order to handle requests and response

2

package.json
{
"name": "dotdashpay",
"version": "0.3.4",
"version": "0.3.5",
"description": "DotDashPay Node API",

@@ -5,0 +5,0 @@ "main": "index.js",

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