Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/dynamic-checkout/payment-methods/apm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,15 @@ module ProcessOut {
return
}

if (outcome === OUTCOME.Pending) {
if (outcome === OUTCOME.Pending && !data.customer_action) {
this.resetContainerHtml().appendChild(
new DynamicCheckoutPaymentPendingView(this.processOutInstance, this.paymentConfig).element,
)

DynamicCheckoutEventsUtils.dispatchPaymentPendingEvent(this.paymentConfig.invoiceId, {
payment_method_name: apm.gateway_name,
})

return
}

Expand Down
2 changes: 1 addition & 1 deletion src/processout/processout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down