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

@figuredev/payments-sdk

Package Overview
Dependencies
Maintainers
6
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figuredev/payments-sdk - npm Package Compare versions

Comparing version 0.22.0 to 0.23.0

22

lib/index.js

@@ -27,3 +27,3 @@ "use strict";

url: `/payment/${id}`,
headers: (0, utils_1.constructHeaders)(this.config.secret, ctx),
headers: utils_1.constructHeaders(this.config.secret, ctx),
data: Object.assign(Object.assign({}, data), { command: types_1.PaymentCommandDTO.Sale }),

@@ -41,3 +41,3 @@ })

url: `/payment/${id}`,
headers: (0, utils_1.constructHeaders)(this.config.secret, ctx),
headers: utils_1.constructHeaders(this.config.secret, ctx),
data: Object.assign(Object.assign({}, data), { command: types_1.PaymentCommandDTO.Auth }),

@@ -55,3 +55,3 @@ })

url: `/payment/${id}`,
headers: (0, utils_1.constructHeaders)(this.config.secret, ctx),
headers: utils_1.constructHeaders(this.config.secret, ctx),
data: {

@@ -73,3 +73,3 @@ command: types_1.PaymentCommandDTO.TipAdjust,

url: `/payment/${id}`,
headers: (0, utils_1.constructHeaders)(this.config.secret, ctx),
headers: utils_1.constructHeaders(this.config.secret, ctx),
data: {

@@ -91,3 +91,3 @@ command: types_1.PaymentCommandDTO.Refund,

url: `/payment/${id}`,
headers: (0, utils_1.constructHeaders)(this.config.secret, ctx),
headers: utils_1.constructHeaders(this.config.secret, ctx),
data: {

@@ -109,3 +109,3 @@ command: types_1.PaymentCommandDTO.Capture,

url: `/payment/${id}`,
headers: (0, utils_1.constructHeaders)(this.config.secret, ctx),
headers: utils_1.constructHeaders(this.config.secret, ctx),
data: {

@@ -126,3 +126,3 @@ command: types_1.PaymentCommandDTO.Void,

url: `/payment/${id}`,
headers: (0, utils_1.constructHeaders)(this.config.secret, ctx),
headers: utils_1.constructHeaders(this.config.secret, ctx),
data: {

@@ -144,3 +144,3 @@ command: types_1.PaymentCommandDTO.Tokenize,

url: `/payment/${id}/cancel`,
headers: (0, utils_1.constructHeaders)(this.config.secret, ctx),
headers: utils_1.constructHeaders(this.config.secret, ctx),
})

@@ -157,3 +157,3 @@ .then((r) => r.data);

url: `/payment/${id}/save`,
headers: (0, utils_1.constructHeaders)(this.config.secret, ctx),
headers: utils_1.constructHeaders(this.config.secret, ctx),
data: data,

@@ -171,3 +171,3 @@ })

url: `/payment/${id}`,
headers: (0, utils_1.constructHeaders)(this.config.secret, ctx),
headers: utils_1.constructHeaders(this.config.secret, ctx),
})

@@ -184,3 +184,3 @@ .then((r) => r.data);

url: `/auth-token`,
headers: (0, utils_1.constructHeaders)(this.config.secret, ctx),
headers: utils_1.constructHeaders(this.config.secret, ctx),
data: Object.assign({ gateway: gateway }, (amount == null ? null : { amount: amount })),

@@ -187,0 +187,0 @@ })

@@ -38,4 +38,3 @@ import { Maybe } from "fgr-lib-backend/lib/types";

Declined = "Declined",
Error = "Error",
Voided = "Voided"
Error = "Error"
}

@@ -106,4 +105,3 @@ export declare type PaymentRequestDTO = {

Declined = "Declined",
Error = "Error",
Voided = "Voided"
Error = "Error"
}

@@ -110,0 +108,0 @@ export declare enum PaymentResponseGatewayDTO {

@@ -35,3 +35,2 @@ "use strict";

PaymentStatusDTO["Error"] = "Error";
PaymentStatusDTO["Voided"] = "Voided";
})(PaymentStatusDTO = exports.PaymentStatusDTO || (exports.PaymentStatusDTO = {}));

@@ -62,3 +61,2 @@ var PaymentDeclineCode;

PaymentResponseStatusDTO["Error"] = "Error";
PaymentResponseStatusDTO["Voided"] = "Voided";
})(PaymentResponseStatusDTO = exports.PaymentResponseStatusDTO || (exports.PaymentResponseStatusDTO = {}));

@@ -65,0 +63,0 @@ var PaymentResponseGatewayDTO;

{
"name": "@figuredev/payments-sdk",
"version": "0.22.0",
"version": "0.23.0",
"license": "ISC",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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