From a9dca8ae98816337d79299136e44401dcd2fb847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jasi=C5=84ski?= Date: Tue, 3 Mar 2026 08:08:27 +0100 Subject: [PATCH 1/2] fix: fix apm payments with saving for future --- src/dynamic-checkout/payment-methods/apm.ts | 4 ++-- src/processout/processout.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dynamic-checkout/payment-methods/apm.ts b/src/dynamic-checkout/payment-methods/apm.ts index b505a4f..552d79b 100644 --- a/src/dynamic-checkout/payment-methods/apm.ts +++ b/src/dynamic-checkout/payment-methods/apm.ts @@ -191,7 +191,7 @@ module ProcessOut { return } - if (outcome === OUTCOME.Pending) { + if (outcome === OUTCOME.Pending && !data.customer_action) { this.resetContainerHtml().appendChild( new DynamicCheckoutPaymentPendingView(this.processOutInstance, this.paymentConfig).element, ) @@ -199,7 +199,7 @@ module ProcessOut { DynamicCheckoutEventsUtils.dispatchPaymentPendingEvent(this.paymentConfig.invoiceId, { payment_method_name: apm.gateway_name, }) - + return } diff --git a/src/processout/processout.ts b/src/processout/processout.ts index 101d796..ecdebf6 100644 --- a/src/processout/processout.ts +++ b/src/processout/processout.ts @@ -1791,7 +1791,7 @@ module ProcessOut { return } - if (outcome === OUTCOME.Pending) { + if (outcome === OUTCOME.Pending && !data.customer_action) { // If pending callback is provided, call it with the resourceID // Otherwise, call the success callback with the resourceID // This is to ensure backward compatibility with old usage of PO.js From ea3c5b640cff540ec0a0da7fe2d73c9b9ab1d6f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jasi=C5=84ski?= Date: Tue, 3 Mar 2026 08:09:27 +0100 Subject: [PATCH 2/2] bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7784fb3..681d0e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "processout.js", - "version": "1.7.7", + "version": "1.7.8", "description": "ProcessOut.js is a JavaScript library for ProcessOut's payment processing API.", "scripts": { "build:processout": "tsc -p src/processout && uglifyjs --compress --keep-fnames --ie8 dist/processout.js -o dist/processout.js",