UNPKG

braintree-web

Version:

A suite of tools for integrating Braintree in the browser

32 lines (28 loc) 1.41 kB
"use strict"; /** * @name BraintreeError.Popup Related Error Codes * @ignore * @description Errors that occur when using a component that opens a popup window. * @property {INTERNAL} FRAME_SERVICE_FRAME_CLOSED - Occurs when the frame is closed before tokenization can occur. * @property {INTERNAL} FRAME_SERVICE_FRAME_OPEN_FAILED - Occurs when the popup could not be opened. * @property {INTERNAL} FRAME_SERVICE_FRAME_OPEN_FAILED_IE_BUG - Occurs when the frame could not be opened because of a specific bug in Internet Explorer - https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11324352/. */ var BraintreeError = require("../../braintree-error"); module.exports = { FRAME_SERVICE_FRAME_CLOSED: { type: BraintreeError.types.INTERNAL, code: "FRAME_SERVICE_FRAME_CLOSED", message: "Frame closed before tokenization could occur.", }, FRAME_SERVICE_FRAME_OPEN_FAILED: { type: BraintreeError.types.INTERNAL, code: "FRAME_SERVICE_FRAME_OPEN_FAILED", message: "Frame failed to open.", }, FRAME_SERVICE_FRAME_OPEN_FAILED_IE_BUG: { type: BraintreeError.types.INTERNAL, code: "FRAME_SERVICE_FRAME_OPEN_FAILED_IE_BUG", message: "Could not open frame. This may be due to a bug in IE browsers when attempting to open an HTTPS page from a HTTP page. https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11324352/", }, };