@figuredev/payments-sdk
Advanced tools
Comparing version 0.23.0 to 0.24.0
@@ -17,3 +17,3 @@ import { UserContext } from "./utils"; | ||
tokenize(ctx: UserContext, id: string, gateway: PaymentGatewayDTO, data: PaymentInputDTO): Promise<PaymentInitializedResponseDTO>; | ||
cancel(ctx: UserContext, id: string): Promise<void>; | ||
cancel(ctx: UserContext, id: string, referenceId: string): Promise<void>; | ||
save(ctx: UserContext, id: string, data: PaymentRequestSaveDTO): Promise<void>; | ||
@@ -20,0 +20,0 @@ getPaymentInfo(ctx: UserContext, id: string): Promise<PaymentGetResponseDTO>; |
@@ -130,3 +130,3 @@ "use strict"; | ||
} | ||
cancel(ctx, id) { | ||
cancel(ctx, id, referenceId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -139,2 +139,5 @@ return yield axios_1.default | ||
headers: utils_1.constructHeaders(this.config.secret, ctx), | ||
data: { | ||
referenceId: referenceId, | ||
}, | ||
}) | ||
@@ -141,0 +144,0 @@ .then((r) => r.data); |
{ | ||
"name": "@figuredev/payments-sdk", | ||
"version": "0.23.0", | ||
"version": "0.24.0", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27476
485