gap-nodejs-sdk 1.0.288 → 1.0.289
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -310,7 +310,7 @@ export default class CloverPaymentObject {
|
|
|
310
310
|
if (response.getSuccess()) {
|
|
311
311
|
const payment = response.getPayment();
|
|
312
312
|
// We are choosing to void the payment if it was not authorized for the full amount.
|
|
313
|
-
if (payment && payment.getAmount() <
|
|
313
|
+
if (payment && payment.getAmount() < requestAmount) {
|
|
314
314
|
const voidPaymentRequest = new clover.remotepay.VoidPaymentRequest();
|
|
315
315
|
voidPaymentRequest.setPaymentId(payment.getId());
|
|
316
316
|
voidPaymentRequest.setVoidReason(clover.order.VoidReason.REJECT_PARTIAL_AUTH);
|
|
@@ -350,7 +350,7 @@ export default class CloverPaymentObject {
|
|
|
350
350
|
autoTipAdjustRequest.setPaymentId(payment.getId());
|
|
351
351
|
(_a = this.cloverConnector) === null || _a === void 0 ? void 0 : _a.tipAdjustAuth(autoTipAdjustRequest);
|
|
352
352
|
// We are choosing to void the payment if it was not authorized for the full amount.
|
|
353
|
-
if (payment && payment.getAmount() <
|
|
353
|
+
if (payment && payment.getAmount() < requestAmount) {
|
|
354
354
|
const voidPaymentRequest = new clover.remotepay.VoidPaymentRequest();
|
|
355
355
|
voidPaymentRequest.setPaymentId(payment.getId());
|
|
356
356
|
voidPaymentRequest.setVoidReason(clover.order.VoidReason.REJECT_PARTIAL_AUTH);
|