{{terminalErrorHeading}}

An error has occurred

{{terminalError}}

// Get Angular injector from the checkout app var injector = angular.element(document.querySelector('.checkout-component')).injector() var ngEventService = injector.get('ngEventService') var eventService = injector.get('eventService') // Listen for when a payment method is selected ngEventService.subscribe('EVENT_CHECKOUT_PAYMENT_METHODS_CHANGED', function () { eventService.customEvent('customEvent', { eventName: 'payment-methods-ready', params: {}, }) })
if (!document.getElementById('addTemplateScript')) { const currentUrl = new URL(window.location.href) const isInsidePianoIframe = ['tinypass.com', 'piano.io'].some(pianoDomain => currentUrl.host.includes(pianoDomain), ) const rootUrl = isInsidePianoIframe ? new URL(currentUrl.searchParams.get('url')) : currentUrl const isProduction = rootUrl.host.includes('scmp.com') var script = document.createElement('script') script.id = 'addTemplateScript' script.async = true script.defer = true script.src = isProduction ? 'https://assets.i-scmp.com/subscription-template/addTemplateScript.js' : 'https://product-web-scmp-pwa-dev.oss-cn-hongkong.aliyuncs.com/subscription-template/staging/addTemplateScript.js' document.head.appendChild(script) }