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", 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