diff --git a/package.json b/package.json index 8ea841f..17a90cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "processout.js", - "version": "1.8.6", + "version": "1.8.7", "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/apm/Page.ts b/src/apm/Page.ts index d542e59..99707b7 100644 --- a/src/apm/Page.ts +++ b/src/apm/Page.ts @@ -85,7 +85,7 @@ module ProcessOut { this.criticalFailure({ code: data.error.code, message: data.error.message, - title: "Unable to connect", + title: "Payment Failed", }) }, }) @@ -105,8 +105,8 @@ module ProcessOut { }) ContextImpl.context.page.render(APMViewError, { - title: "Unable to connect", - message: "An unexpected error occurred. We're working to fix this issue, please check back later or contact support if you need assistance.", + title: title || "Unable to connect", + message: message || "An unexpected error occurred. We're working to fix this issue, please check back later or contact support if you need assistance.", hideRefresh: true }) }