@primer-io/primer-js 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +83 -101
- package/dist/custom-elements.json +1445 -1137
- package/dist/jsx/index.d.ts +27 -0
- package/dist/primer-loader.d.ts +438 -10
- package/dist/primer-loader.js +10 -10
- package/dist/vscode.html-custom-data.json +17 -0
- package/dist/web-types.json +53 -1
- package/package.json +2 -2
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"readme": "",
|
|
4
4
|
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "e2e/utils.ts",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "variable",
|
|
11
|
+
"name": "test"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"exports": [
|
|
15
|
+
{
|
|
16
|
+
"kind": "js",
|
|
17
|
+
"name": "expect",
|
|
18
|
+
"declaration": {
|
|
19
|
+
"name": "expect",
|
|
20
|
+
"package": "@chromatic-com/playwright"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"kind": "js",
|
|
25
|
+
"name": "test",
|
|
26
|
+
"declaration": {
|
|
27
|
+
"name": "test",
|
|
28
|
+
"module": "e2e/utils.ts"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
5
33
|
{
|
|
6
34
|
"kind": "javascript-module",
|
|
7
35
|
"path": "dist/primer-loader.js",
|
|
@@ -16,7 +44,7 @@
|
|
|
16
44
|
},
|
|
17
45
|
{
|
|
18
46
|
"kind": "variable",
|
|
19
|
-
"name": "
|
|
47
|
+
"name": "Jr",
|
|
20
48
|
"default": "class{constructor(t){this._methods=t}get(t){return this._methods.get(t)}toArray(){return Array.from(this._methods.values())}size(){return this._methods.size}}"
|
|
21
49
|
},
|
|
22
50
|
{
|
|
@@ -55,42 +83,42 @@
|
|
|
55
83
|
{
|
|
56
84
|
"kind": "variable",
|
|
57
85
|
"name": "se",
|
|
58
|
-
"default": "class extends v{constructor(){super(...arguments);this.size=\"large\";this.showCloseButton=!1;this.open=!1}openDialog(){this.open=!0}closeDialog(){let e=document.querySelector(\"primer-dialog\");if(e){e.startExitAnimation();let r=()=>{this.open=!1,this.removeEventListener(\"primer-dialog-close\",r)};this.addEventListener(\"primer-dialog-close\",r)}else this.open=!1}renderContent(){return m`<div class=\"content-container\"><slot></slot>${this.renderSecureHtmlContent()}</div>`}renderSecureHtmlContent(){return this.secureHtmlContent?
|
|
86
|
+
"default": "class extends v{constructor(){super(...arguments);this.size=\"large\";this.showCloseButton=!1;this.open=!1}openDialog(){this.open=!0}closeDialog(){let e=document.querySelector(\"primer-dialog\");if(e){e.startExitAnimation();let r=()=>{this.open=!1,this.removeEventListener(\"primer-dialog-close\",r)};this.addEventListener(\"primer-dialog-close\",r)}else this.open=!1}renderContent(){return m`<div class=\"content-container\"><slot></slot>${this.renderSecureHtmlContent()}</div>`}renderSecureHtmlContent(){return this.secureHtmlContent?To(this.secureHtmlContent)?m`${xn(this.secureHtmlContent.content)}`:(x.warn(\"PortalDialogComponent: Invalid access token provided for htmlContent. Content will not be rendered.\"),h):h}renderDialog(){return this.open?m`<primer-portal><primer-dialog .open=${this.open} size=${this.size} .showCloseButton=${!1} @primer-dialog-close=\"${()=>this.closeDialog()}\" >${this.renderContent()}</primer-dialog></primer-portal>`:h}connectedCallback(){super.connectedCallback(),this.open||this.openDialog()}updated(e){if(super.updated(e),e.has(\"secureHtmlContent\")){let r=this.secureHtmlContent;r&&!To(r)&&(x.errorWithDatadog(\"PortalDialogComponent: Invalid access token provided for htmlContent. Content will not be rendered.\"),this.secureHtmlContent=void 0)}e.has(\"open\")&&this.open&&this.onOpen&&this.onOpen(),e.has(\"open\")&&this.open&&this.onContentRendered&&this.updateComplete.then(()=>{requestAnimationFrame(()=>{this.onContentRendered?.()})})}render(){return m`${this.renderDialog()}`}}"
|
|
59
87
|
},
|
|
60
88
|
{
|
|
61
89
|
"kind": "variable",
|
|
62
|
-
"name": "
|
|
63
|
-
"default": "class extends v{constructor(){super();this.customStyles=\"\";this.clientToken=\"\";this.options={};this.disableLoader=!1;this._jsInitialized=!1;this.previousLoadingState=!0;this.hasAssignedContent=!1;this._loadingTimeoutId=null;this._eventListenerController=null;this.locale=\"en-GB\";this.onSlotChange=e=>{let o=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=o.length>0,this.requestUpdate()};this.sdkContextController=new
|
|
90
|
+
"name": "be",
|
|
91
|
+
"default": "class extends v{constructor(){super();this.customStyles=\"\";this.clientToken=\"\";this.options={};this.disableLoader=!1;this._jsInitialized=!1;this.previousLoadingState=!0;this.hasAssignedContent=!1;this._loadingTimeoutId=null;this._eventListenerController=null;this.locale=\"en-GB\";this.onSlotChange=e=>{let o=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=o.length>0,this.requestUpdate()};this.sdkContextController=new Tr(this),this.sdkStateController=new Pr(this),this.primerEventsController=new Lt(this),this.styleProcessingController=new Mr(this),this.vaultManagerController=new Jt(this),this.cardNetworkController=new Cr(this),this.achPaymentEventsController=new gi(this),new fi(this)}set jsInitialized(e){this.requestUpdate(),this._jsInitialized=e}get jsInitialized(){return this._jsInitialized}connectedCallback(){super.connectedCallback(),this.sdkContextController.setEventsController(this.primerEventsController),this._eventListenerController=new AbortController,document.addEventListener(\"primer:card-submit\",this.handleExternalCardSubmit.bind(this),{signal:this._eventListenerController.signal})}attributeChangedCallback(e,r,o){e===Zd.CUSTOM_STYLES?this.styleProcessingController.processCustomStyles(o):super.attributeChangedCallback(e,r,o)}disconnectedCallback(){this._loadingTimeoutId&&(window.clearTimeout(this._loadingTimeoutId),this._loadingTimeoutId=null),this.sdkStateController?.currentState.isLoading&&this.sdkStateController.forceCompleteLoading(),this._eventListenerController&&(this._eventListenerController.abort(),this._eventListenerController=null),super.disconnectedCallback()}willUpdate(e){e.has(\"options\")&&(this.options?.locale&&(Wi(this.options?.locale)?this.locale=qi(this.options?.locale):x.warn(\"\\u{1F30E}\\u2757 Unsupported locale provided:\",this.options?.locale,\"- Falling back to default locale `en-GB`\")),ji(this.locale||\"en-GB\"))}updated(){let e=getComputedStyle(this);this.sdkContextController.setComputedStyles(e),this.checkLoadingStateChange()}handleExternalCardSubmit(e){this._eventListenerController?.signal.aborted||e.target!==this&&this.primerEventsController.dispatchEvent(\"primer:card-submit\",e.detail)}checkLoadingStateChange(){let e=this.sdkStateController?.currentState.isLoading||!1;this.previousLoadingState&&!e&&(this.jsInitialized=!0,q({eventName:\"CHECKOUT_FLOW_STARTED\"})),this.previousLoadingState=e,e&&!this._loadingTimeoutId?this._loadingTimeoutId=window.setTimeout(()=>{this.sdkStateController?.currentState.isLoading&&(x.warn(\"Loading timeout in component, forcing completion\"),this.sdkStateController.forceCompleteLoading(),this.jsInitialized=!0),this._loadingTimeoutId=null},1e4):!e&&this._loadingTimeoutId&&(window.clearTimeout(this._loadingTimeoutId),this._loadingTimeoutId=null)}render(){let e=this.sdkStateController.currentState,r=e.isLoading,o=e.error,a=!r&&!o;return m` ${k(r,()=>h)} ${k(o,()=>m`<primer-checkout-error></primer-checkout-error>`)} ${k(a,()=>m`<slot name=\"main\" @slotchange=${this.onSlotChange}></slot>${k(this.hasAssignedContent,()=>h,()=>m`<primer-main></primer-main>`)} `,()=>h)} `}addEventListener(e,r,o){super.addEventListener(e,r,o)}removeEventListener(e,r,o){super.removeEventListener(e,r,o)}}"
|
|
64
92
|
},
|
|
65
93
|
{
|
|
66
94
|
"kind": "function",
|
|
67
|
-
"name": "
|
|
95
|
+
"name": "kn"
|
|
68
96
|
},
|
|
69
97
|
{
|
|
70
98
|
"kind": "function",
|
|
71
|
-
"name": "
|
|
99
|
+
"name": "In"
|
|
72
100
|
},
|
|
73
101
|
{
|
|
74
102
|
"kind": "function",
|
|
75
|
-
"name": "
|
|
103
|
+
"name": "rc"
|
|
76
104
|
},
|
|
77
105
|
{
|
|
78
106
|
"kind": "function",
|
|
79
|
-
"name": "
|
|
107
|
+
"name": "ic"
|
|
80
108
|
},
|
|
81
109
|
{
|
|
82
110
|
"kind": "variable",
|
|
83
|
-
"name": "
|
|
84
|
-
"default": "class extends v{constructor(){super(...arguments);this.color=\"var(--primer-color-loader)\";this.size=\"medium\";this.compact=!1}getSize(){if(this.size in
|
|
111
|
+
"name": "De",
|
|
112
|
+
"default": "class extends v{constructor(){super(...arguments);this.color=\"var(--primer-color-loader)\";this.size=\"medium\";this.compact=!1}getSize(){if(this.size in Io)return Io[this.size];let e=parseInt(this.size,10);return isNaN(e)?Io.medium:e}render(){let e=this.getSize(),r=20,o=`0 0 ${r} ${r}`;return this.style.setProperty(\"--spinner-color\",this.color),this.style.setProperty(\"--spinner-size\",`${e}px`),m`<div class=\"spinner-container ${this.compact?\"compact\":\"\"}\"><svg class=\"spinner\" width=\"${e}\" height=\"${e}\" viewBox=\"${o}\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" role=\"status\" aria-label=\"Loading\" ><path d=\"M4.27827 10.002C4.27827 6.84166 6.84019 4.27973 10.0005 4.27973C10.7676 4.27973 11.3894 3.6579 11.3894 2.89084C11.3894 2.12378 10.7676 1.50195 10.0005 1.50195C5.30607 1.50195 1.50049 5.30753 1.50049 10.002C1.50049 14.6964 5.30607 18.502 10.0005 18.502C14.6949 18.502 18.5005 14.6964 18.5005 10.002C18.5005 9.23489 17.8787 8.61306 17.1116 8.61306C16.3445 8.61306 15.7227 9.23489 15.7227 10.002C15.7227 13.1622 13.1608 15.7242 10.0005 15.7242C6.84019 15.7242 4.27827 13.1622 4.27827 10.002Z\" fill=\"currentColor\" class=\"path\" /></svg></div>`}}"
|
|
85
113
|
},
|
|
86
114
|
{
|
|
87
115
|
"kind": "variable",
|
|
88
|
-
"name": "
|
|
89
|
-
"default": "class extends v{constructor(){super(...arguments);this.focusWithin=!1;this.hasError=!1;this.handleWrapperClick=e=>{if(e.target!==e.currentTarget)return;let r=this.findSlottedPrimerInput();r?r.focus():this.dispatchEvent(new CustomEvent(\"wrapper-click\",{bubbles:!0,composed:!0}))}}findSlottedPrimerInput(){if(!this.inputSlot)return null;let e=this.inputSlot.assignedElements({flatten:!0}),r=e.find(o=>o.tagName.toLowerCase()===\"primer-input\");if(r)return r;for(let o of e){let a=o.querySelector(\"primer-input\");if(a)return a}return null}render(){let e={\"input-slot\":!0,\"focus-within\":this.focusWithin};return m`<div class=\"input-wrapper\"><slot name=\"label\"></slot><div class=\"${
|
|
116
|
+
"name": "$e",
|
|
117
|
+
"default": "class extends v{constructor(){super(...arguments);this.focusWithin=!1;this.hasError=!1;this.handleWrapperClick=e=>{if(e.target!==e.currentTarget)return;let r=this.findSlottedPrimerInput();r?r.focus():this.dispatchEvent(new CustomEvent(\"wrapper-click\",{bubbles:!0,composed:!0}))}}findSlottedPrimerInput(){if(!this.inputSlot)return null;let e=this.inputSlot.assignedElements({flatten:!0}),r=e.find(o=>o.tagName.toLowerCase()===\"primer-input\");if(r)return r;for(let o of e){let a=o.querySelector(\"primer-input\");if(a)return a}return null}render(){let e={\"input-slot\":!0,\"focus-within\":this.focusWithin};return m`<div class=\"input-wrapper\"><slot name=\"label\"></slot><div class=\"${re(e)}\" @click=\"${this.handleWrapperClick}\"><slot name=\"input\"></slot></div><slot name=\"error\"></slot></div>`}}"
|
|
90
118
|
},
|
|
91
119
|
{
|
|
92
120
|
"kind": "variable",
|
|
93
|
-
"name": "
|
|
121
|
+
"name": "qe",
|
|
94
122
|
"default": "class extends v{constructor(){super(...arguments);this.for=\"\";this.disabled=!1}render(){return m`<label for=${this.for}><slot></slot></label>`}}"
|
|
95
123
|
},
|
|
96
124
|
{
|
|
@@ -100,28 +128,28 @@
|
|
|
100
128
|
},
|
|
101
129
|
{
|
|
102
130
|
"kind": "variable",
|
|
103
|
-
"name": "
|
|
131
|
+
"name": "Je",
|
|
104
132
|
"default": "class extends v{constructor(){super(...arguments);this.for=\"\";this.active=!0}render(){return m`<span class=\"error\" role=\"alert\" aria-live=\"polite\" id=\"${this.for||\"\"}\" ><slot></slot></span>`}}"
|
|
105
133
|
},
|
|
106
134
|
{
|
|
107
135
|
"kind": "variable",
|
|
108
|
-
"name": "
|
|
109
|
-
"default": "class extends v{constructor(){super(...arguments);this.color=\"var(--primer-color-icon-primary)\";this.size=\"lg\"}render(){let e=this.name
|
|
136
|
+
"name": "Ve",
|
|
137
|
+
"default": "class extends v{constructor(){super(...arguments);this.color=\"var(--primer-color-icon-primary)\";this.size=\"lg\"}render(){let e=this.name?$n[this.name]:null;return m`<div style=\"--internal-icon-color: ${this.color}\">${e||m`<slot></slot>`}</div>`}}"
|
|
110
138
|
},
|
|
111
139
|
{
|
|
112
140
|
"kind": "variable",
|
|
113
|
-
"name": "
|
|
141
|
+
"name": "Ze",
|
|
114
142
|
"default": "class extends v{constructor(){super(...arguments);this.type=\"complete\"}render(){return this.type===\"complete\"?m`<primer-icon size=\"lg\" name=\"successful-check\" color=\"var(--primer-color-icon-positive)\" ></primer-icon><p>Checkout complete!</p><p class=\"secondary\"> You'll be redirected to the order confirmation page soon. </p>`:m`<primer-icon size=\"lg\" name=\"failure-icon\" color=\"var(--primer-color-icon-negative)\" ></primer-icon><p>Payment failed</p>${this.description?m`<p class=\"secondary\">${this.description}</p>`:m`<p class=\"secondary\">Something went wrong.</p>`} `}}"
|
|
115
143
|
},
|
|
116
144
|
{
|
|
117
145
|
"kind": "variable",
|
|
118
|
-
"name": "
|
|
146
|
+
"name": "B",
|
|
119
147
|
"default": "class extends v{constructor(){super(...arguments);this.value=\"\";this.placeholder=\"\";this.disabled=!1;this.name=\"\";this.type=\"text\";this.required=!1;this.readonly=!1;this.pattern=\"\";this.min=\"\";this.max=\"\";this.step=\"\";this.autocomplete=\"\";this._id=\"\";this.hasFocus=!1;this.hasError=!1;this.handleInput=e=>{e.stopPropagation();let r=e.target;this.value=r.value;let o=new CustomEvent(\"input\",{detail:this.value,bubbles:!0,composed:!0});this.dispatchEvent(o)};this.handleChange=e=>{e.stopPropagation();let r=e.target;this.value=r.value;let o=new CustomEvent(\"change\",{detail:this.value,bubbles:!0,composed:!0});this.dispatchEvent(o)};this.handleFocus=()=>{this.hasFocus=!0,this.dispatchEvent(new FocusEvent(\"focus\",{bubbles:!0,composed:!0}))};this.handleBlur=()=>{this.hasFocus=!1,this.dispatchEvent(new FocusEvent(\"blur\",{bubbles:!0,composed:!0}))};this.handleInvalid=e=>{e.stopPropagation(),this.hasError=!0,this.dispatchEvent(new Event(\"invalid\",{bubbles:!0,composed:!0}))}}get id(){return this._id}set id(e){this._id=e,this.setAttribute(\"id\",e)}focus(e){this.inputElement?.focus(e)}blur(){this.inputElement?.blur()}select(){this.inputElement?.select()}setSelectionRange(e,r,o){this.inputElement?.setSelectionRange(e,r,o)}get validity(){return this.inputElement?.validity||{}}get validationMessage(){return this.inputElement?.validationMessage||\"\"}checkValidity(){return this.inputElement?.checkValidity()||!1}reportValidity(){return this.inputElement?.reportValidity()||!1}render(){let e={input:!0,\"input--focused\":this.hasFocus,\"input--disabled\":this.disabled,\"input--error\":this.hasError,\"input--readonly\":this.readonly},r=Object.entries(e).filter(([,o])=>o).map(([o])=>o).join(\" \");return m`<input part=\"input\" class=${r} .value=${this.value} .type=${this.type} ?disabled=${this.disabled} ?required=${this.required} ?readonly=${this.readonly} placeholder=${this.placeholder} pattern=${this.pattern} minlength=${this.minlength??\"\"} maxlength=${this.maxlength??\"\"} min=${this.min} max=${this.max} step=${this.step} autocomplete=${this.autocomplete} name=${this.name} id=${this.id} @input=${this.handleInput} @change=${this.handleChange} @focus=${this.handleFocus} @blur=${this.handleBlur} @invalid=${this.handleInvalid} />`}addEventListener(e,r,o){super.addEventListener(e,r,o)}removeEventListener(e,r,o){super.removeEventListener(e,r,o)}}"
|
|
120
148
|
},
|
|
121
149
|
{
|
|
122
150
|
"kind": "variable",
|
|
123
151
|
"name": "he",
|
|
124
|
-
"default": "class extends v{constructor(){super(...arguments);this.name=\"\";this.id=\"\";this.value=\"\";this.disabled=!1;this.hasError=!1;this.placeholder=\"\";this.options=[]}handleChange(e){let r=e.target,o=this.value;this.value=r.value,this.dispatchEvent(new CustomEvent(\"change\",{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(\"input\",{detail:this.value,bubbles:!0,composed:!0})),this.requestUpdate(\"value\",o)}handleFocus(){this.dispatchEvent(new CustomEvent(\"focus\",{bubbles:!0,composed:!0}))}handleBlur(){this.dispatchEvent(new CustomEvent(\"blur\",{bubbles:!0,composed:!0}))}renderSelectOptions(){let e=[];for(let r of this.options)e.push(m`<option value=${r.value}>${r.label}</option>`);return e}render(){return m`<select id=${this.id} name=${this.name} .value=${
|
|
152
|
+
"default": "class extends v{constructor(){super(...arguments);this.name=\"\";this.id=\"\";this.value=\"\";this.disabled=!1;this.hasError=!1;this.placeholder=\"\";this.options=[]}handleChange(e){let r=e.target,o=this.value;this.value=r.value,this.dispatchEvent(new CustomEvent(\"change\",{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(\"input\",{detail:this.value,bubbles:!0,composed:!0})),this.requestUpdate(\"value\",o)}handleFocus(){this.dispatchEvent(new CustomEvent(\"focus\",{bubbles:!0,composed:!0}))}handleBlur(){this.dispatchEvent(new CustomEvent(\"blur\",{bubbles:!0,composed:!0}))}renderSelectOptions(){let e=[];for(let r of this.options)e.push(m`<option value=${r.value}>${r.label}</option>`);return e}render(){return m`<select id=${this.id} name=${this.name} .value=${Hn(this.value)} ?disabled=${this.disabled} ?required=${!this.value} @change=${this.handleChange} @focus=${this.handleFocus} @blur=${this.handleBlur} aria-invalid=${this.hasError?\"true\":\"false\"} ><option value=\"\" disabled ?selected=${!this.value}>${this.placeholder||\"Select an option\"}</option>${this.renderSelectOptions()}</select>`}}"
|
|
125
153
|
},
|
|
126
154
|
{
|
|
127
155
|
"kind": "variable",
|
|
@@ -130,177 +158,182 @@
|
|
|
130
158
|
},
|
|
131
159
|
{
|
|
132
160
|
"kind": "variable",
|
|
133
|
-
"name": "
|
|
134
|
-
"default": "class extends v{constructor(){super();this.message=\"\";this.visible=!1;this._role=\"alert\";this.showMessage=!1;this.role=\"alert\"}get role(){return this._role}set role(e){this._role=e,this.setAttribute(\"role\",e)}updated(e){e.has(\"visible\")&&this.handleVisibilityChange()}handleVisibilityChange(){this.visible?(this.showMessage=!0,this.setAttribute(\"aria-hidden\",\"false\")):setTimeout(()=>{this.showMessage=!1,this.setAttribute(\"aria-hidden\",\"true\")},200)}render(){if(!this.showMessage&&!this.visible)return h;let e={\"error-message\":!0,hidden:!this.visible};return m`<div part=\"error-message\" class=${
|
|
161
|
+
"name": "Ue",
|
|
162
|
+
"default": "class extends v{constructor(){super();this.message=\"\";this.visible=!1;this._role=\"alert\";this.showMessage=!1;this.role=\"alert\"}get role(){return this._role}set role(e){this._role=e,this.setAttribute(\"role\",e)}updated(e){e.has(\"visible\")&&this.handleVisibilityChange()}handleVisibilityChange(){this.visible?(this.showMessage=!0,this.setAttribute(\"aria-hidden\",\"false\")):setTimeout(()=>{this.showMessage=!1,this.setAttribute(\"aria-hidden\",\"true\")},200)}render(){if(!this.showMessage&&!this.visible)return h;let e={\"error-message\":!0,hidden:!this.visible};return m`<div part=\"error-message\" class=${re(e)} aria-live=\"assertive\" aria-atomic=\"true\" ><div part=\"error-icon\" class=\"error-icon\"><primer-icon name=\"failure-icon\" size=\"sm\" color=\"var(--primer-color-icon-negative)\" ></primer-icon></div><div part=\"error-content\" class=\"error-content\">${this.message}</div></div>`}}"
|
|
135
163
|
},
|
|
136
164
|
{
|
|
137
165
|
"kind": "variable",
|
|
138
|
-
"name": "
|
|
166
|
+
"name": "ut",
|
|
139
167
|
"default": "class extends v{constructor(){super(...arguments);this._id=`d${Math.random().toString(36).substring(7)}`;this._handleSlotChange=e=>{let o=e.target.assignedNodes();if(!o.length)return;let a=this.getContainer();o.forEach(n=>a.appendChild(n))}}get id(){return this._id}getContainer(){let e=document.querySelector(`#${this._id}`);return e||(e=document.createElement(\"div\"),e.id=this._id,document.body.appendChild(e),this._setupEventListeners(e)),e}_setupEventListeners(e){[\"primer-ach-error\",\"primer-ach-bank-details-collected\",\"primer-ach-mandate-confirmed\",\"primer-ach-mandate-declined\",\"primer-dialog-close\"].forEach(r=>{e.addEventListener(r,o=>{o.stopPropagation(),this.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0,detail:o.detail}))})})}disconnectedCallback(){super.disconnectedCallback(),this.getContainer().remove()}render(){return m`<slot @slotchange=${this._handleSlotChange}></slot>`}}"
|
|
140
168
|
},
|
|
141
169
|
{
|
|
142
170
|
"kind": "variable",
|
|
143
|
-
"name": "
|
|
144
|
-
"default": "class extends v{constructor(){super(...arguments);this.size=\"flex\";this.showCloseButton=!0;this._animationState=\"entering\";this._isVisible=!1;this._handleCloseClick=()=>{this._startExitAnimation()}}startExitAnimation(){this._startExitAnimation()}connectedCallback(){super.connectedCallback(),document.body.style.overflow=\"hidden\",this._startEnterAnimation()}disconnectedCallback(){super.disconnectedCallback(),document.body.style.overflow=\"\",this._animationTimeout&&clearTimeout(this._animationTimeout)}_startEnterAnimation(){this._animationState=\"entering\",this._isVisible=!0,requestAnimationFrame(()=>{this._animationTimeout=window.setTimeout(()=>{this._animationState=\"entered\"},500)})}_startExitAnimation(){this._animationTimeout&&clearTimeout(this._animationTimeout),this._animationState=\"exiting\",this._animationTimeout=window.setTimeout(()=>{this._animationState=\"exited\",this._isVisible=!1,this.dispatchEvent(new CustomEvent(\"primer-dialog-close\",{bubbles:!0,composed:!0}))},500)}render(){return this._isVisible?m`<div class=${
|
|
171
|
+
"name": "Te",
|
|
172
|
+
"default": "class extends v{constructor(){super(...arguments);this.size=\"flex\";this.showCloseButton=!0;this._animationState=\"entering\";this._isVisible=!1;this._handleCloseClick=()=>{this._startExitAnimation()}}startExitAnimation(){this._startExitAnimation()}connectedCallback(){super.connectedCallback(),document.body.style.overflow=\"hidden\",this._startEnterAnimation()}disconnectedCallback(){super.disconnectedCallback(),document.body.style.overflow=\"\",this._animationTimeout&&clearTimeout(this._animationTimeout)}_startEnterAnimation(){this._animationState=\"entering\",this._isVisible=!0,requestAnimationFrame(()=>{this._animationTimeout=window.setTimeout(()=>{this._animationState=\"entered\"},500)})}_startExitAnimation(){this._animationTimeout&&clearTimeout(this._animationTimeout),this._animationState=\"exiting\",this._animationTimeout=window.setTimeout(()=>{this._animationState=\"exited\",this._isVisible=!1,this.dispatchEvent(new CustomEvent(\"primer-dialog-close\",{bubbles:!0,composed:!0}))},500)}render(){return this._isVisible?m`<div class=${re({backdrop:!0,\"backdrop--entering\":this._animationState===\"entering\",\"backdrop--entered\":this._animationState===\"entered\",\"backdrop--exiting\":this._animationState===\"exiting\"})} @click=${e=>{e.preventDefault()}} ><div class=${re({dialog:!0,[this.size]:!0,\"dialog--entering\":this._animationState===\"entering\",\"dialog--entered\":this._animationState===\"entered\",\"dialog--exiting\":this._animationState===\"exiting\"})} ><div class=\"header\">${this.showCloseButton?m`<primer-button variant=\"tertiary\" @click=${this._handleCloseClick} ><primer-icon name=\"close\"></primer-icon></primer-button>`:\"\"}</div><div class=\"content\"><slot></slot></div></div></div>`:m``}}"
|
|
145
173
|
},
|
|
146
174
|
{
|
|
147
175
|
"kind": "variable",
|
|
148
|
-
"name": "
|
|
149
|
-
"default": "class extends v{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this.klarnaCategories=null;this.disabled=!1;this.selectedCategory=null;this.isExpanded=!1;this.headerAriaLabel=
|
|
176
|
+
"name": "ie",
|
|
177
|
+
"default": "class extends v{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this.klarnaCategories=null;this.disabled=!1;this.selectedCategory=null;this.isExpanded=!1;this.headerAriaLabel=C(\"pay_with\",{id:\"pay_with\"});this._paymentMethodManagerTask=new O(this,{task:async([e,r])=>{if(!e||!r)return N;let o=await r.getCDNAssets(\"KLARNA\");return{manager:e.manager,klarnaIcon:o?.assets?.icon?`${o.goatCdnUrl}/${o.assets.icon}`:\"\"}},args:()=>[this.paymentManagers.get(\"KLARNA\"),this.headlessUtils]});this.toggleExpand=()=>{this.disabled||(this.isExpanded=!this.isExpanded,this.isExpanded||(this.selectedCategory=null))}}async startKlarnaPayment(){if(!(!this._paymentMethodManagerTask.value||!this.selectedCategory))try{await this._paymentMethodManagerTask.value.manager.start({paymentMethodCategoryId:this.selectedCategory})}catch(e){x.errorWithDatadog(\"Failed to start Klarna payment\",{error:e})}}async renderSelectedCategory(){if(!(!this._paymentMethodManagerTask.value||!this.selectedCategory||!this.klarnaContainer))try{this.klarnaContainer.innerHTML=\"\",await this._paymentMethodManagerTask.value.manager.renderCategory({containerId:this.klarnaContainer,paymentMethodCategoryId:this.selectedCategory,onHeightChange:e=>{e>0&&(this.klarnaContainer.style.height=`${e}px`)}})}catch(e){x.errorWithDatadog(\"Failed to render Klarna category\",{error:e})}}selectCategory(e){this.disabled||(this.selectedCategory=e,this.renderSelectedCategory())}updated(e){e.has(\"selectedCategory\")&&this.selectedCategory&&this.renderSelectedCategory()}renderCategorySelection(){let e=this.klarnaCategories?.categories||[];return this.klarnaCategories?.isLoading||!1?m`<div class=\"loading\"><primer-spinner size=\"small\"></primer-spinner></div>`:m`<div class=\"category-selection\">${e.map(o=>m`<button class=${re({\"category-button\":!0,selected:o.id===this.selectedCategory})} @click=${()=>{this.selectCategory(o.id)}} ?disabled=${this.disabled} >${o.name}</button>`)}</div>`}renderExpandedContent(){return m` ${this.renderCategorySelection()} ${this.selectedCategory?m`<div id=\"klarna-category-container\" class=\"klarna-category-container\" ></div>`:h}<button class=${re({\"klarna-pay-button\":!0,loading:!!this.sdkState?.isProcessing,disabled:!this.selectedCategory||this.disabled})} ?disabled=${!this.selectedCategory||this.sdkState?.isProcessing||this.disabled} @click=${()=>this.startKlarnaPayment()} >${C(\"confirm\",{id:\"confirm\"})}</button>`}render(){return this._paymentMethodManagerTask.render({error:e=>{let r=e instanceof Error?e.message:\"Unknown error in Klarna\";return m`<div class=\"error\"> Error loading Klarna: ${r}</div>`},complete:({manager:e,klarnaIcon:r})=>e?m`<div class=\"klarna-container ${this.isExpanded?\"expanded\":\"\"}\"><div class=\"klarna-button-header\"><primer-button buttonType=\"button\" variant=\"secondary\" class=\"klarna-button\" @click=${this.toggleExpand} aria-expanded=${this.isExpanded} aria-controls=\"collapsable-content\" aria-label=${this.headerAriaLabel} ?disabled=${this.disabled} ><img src=${r} alt=\"Klarna logo\" /><span>${C(\"pay_with\",{id:\"pay_with\"})} Klarna</span><span class=\"klarna-accordion-icon ${this.isExpanded?\"expanded\":\"\"}\" > ▼ </span></primer-button></div><div class=\"klarna-expanded-content ${this.isExpanded?\"visible\":\"\"}\" ><div class=\"klarna-accordion-content\">${this.renderExpandedContent()}</div></div></div>`:h})}}"
|
|
150
178
|
},
|
|
151
179
|
{
|
|
152
180
|
"kind": "variable",
|
|
153
|
-
"name": "
|
|
154
|
-
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.loadManagerTask=new
|
|
181
|
+
"name": "Be",
|
|
182
|
+
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.loadManagerTask=new O(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return N;let r=this.paymentManagers.get(e);if(!r)throw new Error(`No manager found for payment method type ${e}`);if(r.type!==\"GOOGLE_PAY\")throw new Error(\"Invalid payment method type for Google Pay component\");return r.manager}}),this.renderButtonTask=new O(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return N;await this.updateComplete;let r=e.createButton();return await r.render(this.shadowRoot?.getRootNode(),{style:{shadowRoot:!0}}),this.disabled&&await r.setDisabled(this.disabled),this.disabled&&this.shadowRoot&&(await this.updateComplete,vi(this.disabled,this.shadowRoot)),r}})}attributeChangedCallback(e,r,o){if(super.attributeChangedCallback(e,r,o),e===\"disabled\"&&r!==o){let a=o!==null,n=this.renderButtonTask.value;n&&n.setDisabled(a)}}updated(e){e.has(\"disabled\")&&this.shadowRoot&&vi(this.disabled,this.shadowRoot)}render(){return h}}"
|
|
155
183
|
},
|
|
156
184
|
{
|
|
157
185
|
"kind": "variable",
|
|
158
|
-
"name": "
|
|
159
|
-
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=
|
|
186
|
+
"name": "Ye",
|
|
187
|
+
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=It();this.loadManagerTask=new O(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return N;let r=this.paymentManagers.get(e);if(!r)throw new Error(`No manager found for payment method type ${e}`);if(r.type!==\"APPLE_PAY\")throw new Error(\"Invalid payment method type for Apple Pay component\");return r.manager}}),this.renderButtonTask=new O(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return N;await this.updateComplete;let r=this.buttonContainerRef.value;if(!r)throw new Error(\"Button container not found\");let o=e.createButton(),a=Ci(r);return await o.render(r,{style:{buttonHeight:a}}),this.disabled&&await o.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,Ft(this.disabled,this.buttonContainerRef)),o}})}attributeChangedCallback(e,r,o){if(super.attributeChangedCallback(e,r,o),e===\"disabled\"&&r!==o){let a=o!==null,n=this.renderButtonTask.value;n&&n.setDisabled(a)}}updated(e){e.has(\"disabled\")&&Ft(this.disabled,this.buttonContainerRef)}render(){return m`<div class=\"native-button-container\" ${ft(this.buttonContainerRef)} ></div>`}}"
|
|
160
188
|
},
|
|
161
189
|
{
|
|
162
190
|
"kind": "variable",
|
|
163
|
-
"name": "
|
|
164
|
-
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=
|
|
191
|
+
"name": "He",
|
|
192
|
+
"default": "class extends v{constructor(){super();this.paymentManagers=new Map;this.disabled=!1;this.buttonContainerRef=It();this.loadManagerTask=new O(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return N;let r=this.paymentManagers.get(e);if(!r)throw new Error(`No manager found for payment method type ${e}`);if(r.type!==\"PAYPAL\")throw new Error(\"Invalid payment method type for PayPal component\");return r.manager}}),this.renderButtonTask=new O(this,{args:()=>[this.loadManagerTask.value],task:async([e])=>{if(!e)return N;await this.updateComplete;let r=this.buttonContainerRef.value;if(!r)throw new Error(\"Button container not found\");let o=e.createButton(),a=Ci(r),n=es(a),l=55;return a>l&&x.warn(`PayPal button height (${a}px) exceeds maximum allowed height of ${l}px. Button will be capped at ${l}px. This is a PayPal SDK limitation.`),await o.render(r,{style:{buttonHeight:n}}),this.disabled&&await o.setDisabled(this.disabled),this.disabled&&(await this.updateComplete,Ft(this.disabled,this.buttonContainerRef)),o}})}attributeChangedCallback(e,r,o){if(super.attributeChangedCallback(e,r,o),e===\"disabled\"&&r!==o){let a=o!==null,n=this.renderButtonTask.value;n&&n.setDisabled(a)}}updated(e){e.has(\"disabled\")&&Ft(this.disabled,this.buttonContainerRef)}render(){return m`<div class=\"native-button-container\" ${ft(this.buttonContainerRef)} ></div>`}}"
|
|
165
193
|
},
|
|
166
194
|
{
|
|
167
195
|
"kind": "variable",
|
|
168
|
-
"name": "
|
|
169
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
196
|
+
"name": "ge",
|
|
197
|
+
"default": "class extends v{constructor(){super(...arguments);this.disabled=!1;this.paymentManagers=new Map;this.currentState=\"collapsed\";this.blikCode=\"\";this.errorMessage=\"\";this.pollingDuration=0;this.pollingTimer=null;this.loadManagerTask=new O(this,{args:()=>[this.paymentMethod?.type],task:([e])=>{if(!e)return N;let r=this.paymentManagers.get(e);if(!r)throw new Error(\"BLIK payment method manager not initialized\");if(r.type!==\"ADYEN_BLIK\")throw new Error(\"Invalid payment method type for BLIK component\");return r.manager}});this.handleButtonClick=async()=>{if(this.disabled)return;if(this.currentState===\"expanded-input\"){this.handleCollapse();return}if(this.currentState!==\"collapsed\")return;let e=this.paymentMethod?.type;if(!e){this.errorMessage=C(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"}),this.currentState=\"error\",x.error(\"Payment method type not available\");return}let r=this.paymentManagers.get(e);if(!r||r.type!==\"ADYEN_BLIK\"){this.errorMessage=C(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"}),this.currentState=\"error\",x.error(\"Manager not available when expanding BLIK form\");return}this.currentState=\"expanded-input\",await this.updateComplete,this.shadowRoot?.querySelector(\"#blik-code\")?.focus()};this.handleCollapse=()=>{this.currentState=\"collapsed\",this.blikCode=\"\",this.errorMessage=\"\",this.stopPollingTimer()};this.handleInput=e=>{let r=e.target,o=r.value,n=o.replace(/\\D/g,\"\").slice(0,6);o!==n&&(r.value=n),this.blikCode=n,this.currentState===\"error\"&&(this.currentState=\"expanded-input\",this.errorMessage=\"\"),n.length===6&&this.submitBlikCode()};this.handleRetry=async()=>{this.currentState=\"expanded-input\",this.errorMessage=\"\",this.blikCode=\"\",await this.updateComplete,this.shadowRoot?.querySelector(\"#blik-code\")?.focus()}}startPollingTimer(){this.pollingDuration=0,this.pollingTimer=window.setInterval(()=>{this.pollingDuration+=1},1e3)}stopPollingTimer(){this.pollingTimer!==null&&(window.clearInterval(this.pollingTimer),this.pollingTimer=null),this.pollingDuration=0}async submitBlikCode(){if(this.blikCode.length!==6){this.errorMessage=C(\"sixDigitCodeErrorTooShort\",{id:\"sixDigitCodeErrorTooShort\"}),this.currentState=\"error\";return}let e=this.loadManagerTask.value;if(!e){this.errorMessage=\"BLIK payment method not initialized\",this.currentState=\"error\",x.error(\"BLIK manager not available via loadManagerTask\");return}this.currentState=\"loading\",this.errorMessage=\"\",this.startPollingTimer();try{await e.start({blikCode:this.blikCode}),this.stopPollingTimer(),this.currentState=\"collapsed\",this.blikCode=\"\"}catch(r){this.stopPollingTimer(),this.currentState=\"error\",this.errorMessage=r instanceof Error?r.message:C(\"tokenizationError\",{id:\"tokenizationError\"}),x.errorWithDatadog(\"BLIK payment failed\",{error:r instanceof Error?{message:r.message,name:r.name}:\"Unknown error\"})}}renderCollapsed(){return m`<primer-button class=\"blik-button\" @click=${this.handleButtonClick} ?disabled=${this.disabled} aria-label=\"${C(\"pay_with\",{id:\"pay_with\"})} BLIK\" aria-expanded=\"${this.currentState!==\"collapsed\"}\" title=\"BLIK\" ><span class=\"image-container\"><img src=\"https://goat-assets.production.core.primer.io/button/blik/inverted.png\" alt=\"BLIK\" /></span></primer-button>`}renderExpandedInput(){return m`<div class=\"blik-expanded-content\"><div class=\"blik-content-wrapper\"><div class=\"blik-input-wrapper\"><label for=\"blik-code\" class=\"blik-label\">${C(\"getCodeFromBankingApp\",{id:\"getCodeFromBankingApp\"})}</label><input id=\"blik-code\" type=\"text\" inputmode=\"numeric\" pattern=\"[0-9]*\" maxlength=\"6\" class=\"blik-input\" .value=\"${this.blikCode}\" @input=\"${this.handleInput}\" ?disabled=\"${this.disabled}\" placeholder=\"000000\" aria-label=\"${C(\"sixDigitCodeLabel\",{id:\"sixDigitCodeLabel\"})}\" autocomplete=\"off\" spellcheck=\"false\" /></div></div></div>`}renderLoading(){return m`<div class=\"blik-expanded-content\"><div class=\"blik-content-wrapper\"><div class=\"blik-loading\"><primer-spinner size=\"medium\"></primer-spinner>${this.pollingDuration>30?m`<div class=\"blik-timeout-warning\"> This is taking longer than expected... </div>`:h}</div></div></div>`}renderError(){return m`<div class=\"blik-expanded-content\"><div class=\"blik-content-wrapper\"><div class=\"blik-error\"><div class=\"blik-error-message\" role=\"alert\">${this.errorMessage||C(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"})}</div><button class=\"blik-retry-button\" @click=\"${this.handleRetry}\" ?disabled=\"${this.disabled}\" >${C(\"retry_button\",{id:\"retry_button\"})}</button></div></div></div>`}renderExpandedState(){switch(this.currentState){case\"expanded-input\":return this.renderExpandedInput();case\"loading\":return this.renderLoading();case\"error\":return this.renderError();default:return h}}disconnectedCallback(){super.disconnectedCallback(),this.stopPollingTimer()}render(){return m`<div class=\"blik-container ${this.currentState!==\"collapsed\"?\"expanded\":\"\"}\" >${this.renderCollapsed()} ${this.currentState!==\"collapsed\"?this.renderExpandedState():h}</div>`}}"
|
|
170
198
|
},
|
|
171
199
|
{
|
|
172
200
|
"kind": "variable",
|
|
173
|
-
"name": "
|
|
174
|
-
"default": "class extends v{constructor(){super(...arguments);this.disabled=!1;this.paymentMethods=null;this.
|
|
201
|
+
"name": "Me",
|
|
202
|
+
"default": "class extends v{constructor(){super(...arguments);this.type=void 0;this.disabled=!1;this.paymentMethods=null;this.analyticsUtils=null;this.handleClick=()=>{this.paymentMethods?.get(this.type)?.managerType!==\"CARD\"&&this.sendPaymentMethodSelectionEvent()}}sendPaymentMethodSelectionEvent(){this.type&&q({eventName:\"PAYMENT_METHOD_SELECTION\",paymentMethod:this.type})}render(){if(!this.type)return h;let e=this.paymentMethods?.get(this.type);if(!e)return h;let r;switch(e?.managerType){case\"CARD\":r=m`<primer-card-form ?disabled=${this.disabled} ></primer-card-form>`;break;case\"NATIVE\":{let o=e.type;o===gr.GOOGLE_PAY?r=m`<primer-google-pay .paymentMethod=${e} ?disabled=${this.disabled} ></primer-google-pay>`:o===gr.APPLE_PAY?r=m`<primer-apple-pay .paymentMethod=${e} ?disabled=${this.disabled} ></primer-apple-pay>`:o===gr.PAYPAL?r=m`<primer-paypal .paymentMethod=${e} ?disabled=${this.disabled} ></primer-paypal>`:o===gr.ADYEN_BLIK&&(r=m`<primer-blik .paymentMethod=${e} ?disabled=${this.disabled} ></primer-blik>`);break}case\"REDIRECT\":r=m`<primer-redirect-payment .paymentMethod=${e} ?disabled=${this.disabled} ></primer-redirect-payment>`;break;case\"KLARNA\":r=m`<primer-klarna ?disabled=${this.disabled} ></primer-klarna>`;break;case\"ACH\":r=m`<primer-dynamic-payment .paymentMethod=${e} ></primer-dynamic-payment>`;break;default:return h}return m`<div @click=${this.handleClick}>${r}</div>`}}"
|
|
175
203
|
},
|
|
176
204
|
{
|
|
177
205
|
"kind": "variable",
|
|
178
|
-
"name": "
|
|
179
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
206
|
+
"name": "_e",
|
|
207
|
+
"default": "class extends v{constructor(){super(...arguments);this.disabled=!1;this.paymentMethods=null;this.clientOptions=null}getFilteredMethods(){if(!this.paymentMethods)return[];let e=this.paymentMethods.toArray();if(this.include){let r=this.include.split(\",\").map(o=>o.trim());e=e.filter(o=>r.includes(o.type))}if(this.exclude){let r=this.exclude.split(\",\").map(o=>o.trim());e=e.filter(o=>!r.includes(o.type))}return e}render(){let e=this.getFilteredMethods();return e.length===0?h:m`<div class=\"payment-methods-container\">${e.map(r=>m`<primer-payment-method type=\"${r.type}\" ?disabled=\"${this.disabled||this.clientOptions?.disabledPayments===!0}\" ></primer-payment-method>`)}</div>`}}"
|
|
180
208
|
},
|
|
181
209
|
{
|
|
182
210
|
"kind": "variable",
|
|
183
|
-
"name": "
|
|
184
|
-
"default": "class extends v{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=
|
|
211
|
+
"name": "Ce",
|
|
212
|
+
"default": "class extends v{constructor(){super(...arguments);this.formController=new Ei(this,e=>this._paymentMethodManagerTask.value.setAndValidate(e));this.paymentManagers=new Map;this.sdkState=void 0;this.clientOptions=void 0;this.screen=\"form\";this.isSubmitting=!1;this._paymentMethodManagerTask=new O(this,{task:([e])=>e!==\"STRIPE_ACH\"?N:this.paymentManagers.get(e)?.manager,args:()=>[this.paymentMethod?.type]})}_handleInput(e,r){let o=e.target;this.formController.setFieldValue(r,o.value)}_handleBlur(e){this.formController.setFieldTouched(e)}_handleError(e){this.dispatchEvent(new CustomEvent(\"primer-ach-error\",{bubbles:!0,composed:!0,detail:{error:e instanceof Error?e:new Error(typeof e==\"string\"?e:\"Unknown error occurred\")}}))}async _handleSubmitButtonClick(e){if(!this.isSubmitting){this.isSubmitting=!0;try{let r=await e.start(this.formController.formData);if(!r||r.valid)return await this._handleCollectBankAccountDetails(e);r&&this.formController.setValidation(r,!0)}catch(r){this._handleError(r)}finally{this.isSubmitting=!1}}}async _handleCollectBankAccountDetails(e){try{await e.collectBankAccountDetails(),this.screen=\"mandate\",this.dispatchEvent(new CustomEvent(\"primer-ach-bank-details-collected\",{bubbles:!0,composed:!0}))}catch(r){this._handleError(r)}}async _handleConfirmMandate(){if(this._paymentMethodManagerTask.value){this.isSubmitting=!0;try{await this._paymentMethodManagerTask.value.confirmMandate(),this.dispatchEvent(new CustomEvent(\"primer-ach-mandate-confirmed\",{bubbles:!0,composed:!0}))}catch(e){this._handleError(e)}finally{this.isSubmitting=!1}}}async _handleDeclineMandate(){if(this._paymentMethodManagerTask.value){this.isSubmitting=!0;try{await this._paymentMethodManagerTask.value.declineMandate(),this.dispatchEvent(new CustomEvent(\"primer-ach-mandate-declined\",{bubbles:!0,composed:!0}))}catch(e){this._handleError(e)}finally{this.isSubmitting=!1}}}renderForm(e){return m`<h2>${C(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${C(\"stripe_ach_user_details_collection_subtitle_label\",{id:\"stripe_ach_user_details_collection_subtitle_label\"})}</p><form @submit=${r=>r.preventDefault()}><div class=\"form-row\"><primer-input-wrapper .hasError=${this.formController.hasError.firstName} ><primer-input-label slot=\"label\">${C(\"stripe_ach_user_details_collection_first_name_label\",{id:\"stripe_ach_user_details_collection_first_name_label\"})}</primer-input-label><primer-input slot=\"input\" .value=${this.formController.formState.firstName.value} @input=${r=>this._handleInput(r,\"firstName\")} @blur=${()=>this._handleBlur(\"firstName\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.firstName?this.formController.formState.firstName.error:h}</primer-input-error></primer-input-wrapper><primer-input-wrapper .hasError=${this.formController.hasError.lastName} ><primer-input-label slot=\"label\">${C(\"stripe_ach_user_details_collection_last_name_label\",{id:\"stripe_ach_user_details_collection_last_name_label\"})}</primer-input-label><primer-input slot=\"input\" .value=${this.formController.formState.lastName.value} @input=${r=>this._handleInput(r,\"lastName\")} @blur=${()=>this._handleBlur(\"lastName\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.lastName?this.formController.formState.lastName.error:h}</primer-input-error></primer-input-wrapper></div><primer-input-wrapper .hasError=${this.formController.hasError.emailAddress} ><primer-input-label slot=\"label\">${C(\"stripe_ach_user_details_collection_email_address_label\",{id:\"stripe_ach_user_details_collection_email_address_label\"})}</primer-input-label><primer-input slot=\"input\" type=\"email\" .value=${this.formController.formState.emailAddress.value} @input=${r=>this._handleInput(r,\"emailAddress\")} @blur=${()=>this._handleBlur(\"emailAddress\")} ?disabled=${this.isSubmitting} ></primer-input><primer-input-error slot=\"error\">${this.formController.hasError.emailAddress?this.formController.formState.emailAddress.error:h}</primer-input-error></primer-input-wrapper><p>${C(\"stripe_ach_user_details_collection_data_usage_label\",{id:\"stripe_ach_user_details_collection_data_usage_label\"})}</p><primer-button buttonType=\"submit\" variant=\"primary\" @click=${()=>this._handleSubmitButtonClick(e)} ?disabled=${this.isSubmitting} ?loading=${this.isSubmitting} >${C(\"stripe_ach_user_details_collection_continue_button\",{id:\"stripe_ach_user_details_collection_continue_button\"})}</primer-button></form>`}renderMandate(){return m`<h2>${C(\"payWithAch\",{id:\"payWithAch\"})}</h2><p>${this.clientOptions?.stripe?.mandateData.fullMandateText??C(\"stripe_ach_mandate_template_web\",{id:\"stripe_ach_mandate_template_web\"}).replace(/\\{merchantName\\}/g,this.clientOptions?.stripe?.mandateData.merchantName??\"Merchant\")}</p><div class=\"button-group\"><primer-button variant=\"primary\" @click=${this._handleConfirmMandate.bind(this)} ?disabled=${this.isSubmitting} ?loading=${this.isSubmitting} >${C(\"stripe_ach_mandate_accept_button\",{id:\"stripe_ach_mandate_accept_button\"})}</primer-button><primer-button variant=\"tertiary\" @click=${this._handleDeclineMandate.bind(this)} ?disabled=${this.isSubmitting} >${C(\"stripe_ach_mandate_cancel_payment_button\",{id:\"stripe_ach_mandate_cancel_payment_button\"})}</primer-button></div>`}render(){return this._paymentMethodManagerTask.render({complete:e=>e?this.screen===\"form\"?this.renderForm(e):this.renderMandate():h})}}"
|
|
185
213
|
},
|
|
186
214
|
{
|
|
187
215
|
"kind": "variable",
|
|
188
216
|
"name": "Pe",
|
|
189
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
217
|
+
"default": "class extends v{constructor(){super(...arguments);this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this.open=!1;this._paymentMethodManagerTask=new O(this,{task:([e,r])=>!e||!r?N:r.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new O(this,{task:([e,r])=>{if(!e||!r)return N;let o=r.getPaymentMethodConfiguration(e);return o?{backgroundColor:o.displayMetadata.button.backgroundColor.colored,name:o.name,displayName:this._legacyGetButtonLabel(o.displayMetadata.button.text),iconUrl:o.displayMetadata.button.iconUrl.colored||o.displayMetadata.button.iconUrl.light||o.displayMetadata.button.iconUrl.dark}:N},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new O(this,{task:([e,r])=>!e||!r?N:{paymentMethodManager:e,assetsConfig:r},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let r=e?vr(e):\"\";return r===\"payWith\"&&(r=\"pay_with\"),C(r,{id:r})}start(){this._paymentMethodManagerTask.value&&(this.open=!0)}renderDialog(){return this.open?m`<primer-portal><primer-dialog @primer-dialog-close=\"${()=>this.open=!1}\"><primer-ach-payment .paymentMethod=${this.paymentMethod} @primer-ach-error=${()=>this.open=!1} @primer-ach-mandate-confirmed=${()=>this.open=!1} @primer-ach-mandate-declined=${()=>this.open=!1} ></primer-ach-payment></primer-dialog></primer-portal>`:h}render(){return this._setupTasks.render({error:()=>h,complete:({assetsConfig:e})=>(this.style.setProperty(\"--dynamic-payment-button-bg-color\",e.backgroundColor),m`<primer-button @click=\"${()=>this.start()}\" class=${re({loading:!!this.sdkState?.isProcessing,reverse:!0})} title=\"${C(\"pay_with\",{id:\"pay_with\"})} ${e.name}\" ><span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span>${e.displayName}</primer-button>${this.renderDialog()} `)})}}"
|
|
190
218
|
},
|
|
191
219
|
{
|
|
192
220
|
"kind": "variable",
|
|
193
|
-
"name": "
|
|
194
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
221
|
+
"name": "we",
|
|
222
|
+
"default": "class extends v{constructor(){super(...arguments);this.disabled=!1;this.paymentManagers=new Map;this.sdkState=null;this.headlessUtils=null;this._paymentMethodManagerTask=new O(this,{task:([e,r])=>!e||!r?N:r.get(e)?.manager,args:()=>[this.paymentMethod?.type,this.paymentManagers]});this._getAssetsTask=new O(this,{task:([e,r])=>{if(!e||!r)return N;let o=r.getPaymentMethodConfiguration(e);if(!o)return N;let a=o.displayMetadata.button.backgroundColor.colored??o.displayMetadata.button.backgroundColor.light,n=o.displayMetadata.button.iconPositionRelativeToText||\"START\";return{backgroundColor:a,name:o.name,displayName:this._legacyGetButtonLabel(o.displayMetadata.button.text),iconUrl:o.displayMetadata.button.iconUrl.colored??o.displayMetadata.button.iconUrl.light,iconPosition:n}},args:()=>[this.paymentMethod?.type,this.headlessUtils]});this._setupTasks=new O(this,{task:([e,r])=>!e||!r?N:{paymentMethodManager:e,assetsConfig:r},args:()=>[this._paymentMethodManagerTask.value,this._getAssetsTask.value]})}_legacyGetButtonLabel(e){if(!e)return;let r=e?vr(e):\"\";return r===\"payWith\"&&(r=\"pay_with\"),C(r,{id:r})}startRedirectPayment(){this.disabled||this._paymentMethodManagerTask.value&&this._paymentMethodManagerTask.value.start()}render(){return this._setupTasks.render({error:()=>h,complete:({assetsConfig:e})=>{this.style.setProperty(\"--redirect-payment-button-bg-color\",e.backgroundColor);let r={loading:!!this.sdkState?.isProcessing,\"icon-end\":e.iconPosition===\"END\",\"image-only\":!e.displayName},o=e.displayName?m`<span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span><span class=\"button-text\">${e.displayName}</span>`:m`<span class=\"image-container\"><img src=\"${e.iconUrl}\" alt=\"${e.name}\" /></span>`;return m`<primer-button @click=\"${()=>this.startRedirectPayment()}\" class=${re(r)} title=\"${C(\"pay_with\",{id:\"pay_with\"})} ${e.name}\" ?disabled=${this.disabled} >${o}</primer-button>`}})}}"
|
|
195
223
|
},
|
|
196
224
|
{
|
|
197
225
|
"kind": "variable",
|
|
198
226
|
"name": "oe",
|
|
199
|
-
"default": "class extends v{constructor(){super();this.
|
|
227
|
+
"default": "class extends v{constructor(){super(...arguments);this.configuration=null;this.headlessUtils=null;this.formData={};this.errors={};this.touchedFields=new Set;this.dirtyFields=new Set;this.focusedField=null;this.submitted=!1;this.countryOptions=[];this._initializationTask=new O(this,{task:async([e,r])=>{if(!e||!r)return N;let o=this.extractFieldConfig(e);return await this.initializeCountryOptions(),o},args:()=>[this.configuration,this.headlessUtils]})}connectedCallback(){super.connectedCallback(),this._initializationTask.value}extractFieldConfig(e){if(e?.checkoutModules){let r=e.checkoutModules.find(o=>o.type===\"BILLING_ADDRESS\");if(r?.options){let o=r.options;return Object.keys($o).reduce((a,n)=>({...a,[n]:o[n]??!1}),{})}}return this.defaultFieldConfig}async initializeCountryOptions(){try{let e=Do(\"en\");this.countryOptions=[...e.map(([a,n])=>({value:a,label:n}))],this.requestUpdate(\"countryOptions\");let r=Gi();if(r===\"en\"||r===\"en-GB\"||r.startsWith(\"en-\"))return;if(await ds(r)){let a=Do(r);this.countryOptions=[...a.map(([n,l])=>({value:n,label:l}))],this.requestUpdate(\"countryOptions\")}}catch(e){x.errorWithDatadog(\"Failed to load country locale\",{error:e})}}get fieldConfig(){return this.extractFieldConfig(this.configuration)}get defaultFieldConfig(){return Object.keys($o).reduce((e,r)=>({...e,[r]:!1}),{})}get shouldShowForm(){return this.fieldConfig.postalCode}handleInput(e,r){this.formData={...this.formData,[e]:r},this.dirtyFields.add(e),(this.submitted||this.dirtyFields.has(e)&&this.touchedFields.has(e))&&this.validateField(e),this.dispatchEvent(new CustomEvent(\"primer-billing-address-change\",{detail:this.formData,bubbles:!0,composed:!0}))}handleFocus(e){this.focusedField=e}handleBlur(e){this.focusedField=null,this.touchedFields.add(e),this.validateField(e)}validateField(e){let r=this.formData[e],o=this.fieldConfig[e];if(!o){delete this.errors[e];return}if(o&&(!r||r.trim()===\"\")){let a=`${e}ErrorRequired`;this.errors={...this.errors,[e]:C(\"This field is required\",{id:a})}}else{let a={...this.errors};delete a[e],this.errors=a}}validateForm(){return Object.keys($o).forEach(e=>{let r=e;this.fieldConfig[r]&&this.validateField(r)}),Object.keys(this.errors).length===0}async validateForSubmission(){if(!this.shouldShowForm)return!0;this.submitted=!0,Object.keys(this.fieldConfig).forEach(r=>{this.fieldConfig[r]&&this.touchedFields.add(r)});let e=this.validateForm();return this.requestUpdate(),await this.updateComplete,e}async submitToSDK(){if(this.headlessUtils?.setBillingAddress)try{return await this.headlessUtils.setBillingAddress(this.formData),this.dispatchEvent(new CustomEvent(\"primer-billing-address-submit\",{detail:this.formData,bubbles:!0,composed:!0})),!0}catch(e){return x.errorWithDatadog(\"Failed to set billing address\",{error:e}),!1}return!0}shouldShowError(e){let r=!!this.errors[e],o=this.dirtyFields.has(e),a=this.touchedFields.has(e);return r&&(this.submitted||o&&a)}render(){return this._initializationTask.render({pending:()=>h,error:()=>h,complete:()=>this.shouldShowForm?(this.removeAttribute(\"hidden\"),m`<div class=\"billing-address-form\"><div class=\"billing-address-title\">${C(\"Billing address\",{id:\"billingAddressLabel\"})}</div>${k(this.fieldConfig.countryCode,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"countryCode\"} .hasError=${this.shouldShowError(\"countryCode\")} ><primer-input-label slot=\"label\">${C(\"Country code\",{id:\"countryCodeLabel\"})}</primer-input-label><primer-select slot=\"input\" id=\"countryCode\" name=\"countryCode\" .value=${this.formData.countryCode||\"\"} .options=${this.countryOptions} .hasError=${this.shouldShowError(\"countryCode\")} placeholder=${C(\"Select a country\",{id:\"countrySelectPlaceholder\"})} @input=${e=>this.handleInput(\"countryCode\",e.detail)} @focus=${()=>this.handleFocus(\"countryCode\")} @blur=${()=>this.handleBlur(\"countryCode\")} ></primer-select>${k(this.shouldShowError(\"countryCode\"),()=>m`<primer-input-error slot=\"error\">${this.errors.countryCode}</primer-input-error>`)}</primer-input-wrapper>`)} ${k(this.fieldConfig.firstName||this.fieldConfig.lastName,()=>m`<div class=\"billing-address-row\">${k(this.fieldConfig.firstName,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"firstName\"} .hasError=${this.shouldShowError(\"firstName\")} ><primer-input-label slot=\"label\">${C(\"First name\",{id:\"firstNameLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"firstName\" name=\"firstName\" type=\"text\" .value=${this.formData.firstName||\"\"} placeholder=${C(\"First name\",{id:\"firstNamePlaceholder\"})} @input=${e=>this.handleInput(\"firstName\",e.detail)} @focus=${()=>this.handleFocus(\"firstName\")} @blur=${()=>this.handleBlur(\"firstName\")} ></primer-input>${k(this.shouldShowError(\"firstName\"),()=>m`<primer-input-error slot=\"error\">${this.errors.firstName}</primer-input-error>`)}</primer-input-wrapper>`)} ${k(this.fieldConfig.lastName,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"lastName\"} .hasError=${this.shouldShowError(\"lastName\")} ><primer-input-label slot=\"label\">${C(\"Last name\",{id:\"lastNameLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"lastName\" name=\"lastName\" type=\"text\" .value=${this.formData.lastName||\"\"} placeholder=${C(\"Last name\",{id:\"lastNamePlaceholder\"})} @input=${e=>this.handleInput(\"lastName\",e.detail)} @focus=${()=>this.handleFocus(\"lastName\")} @blur=${()=>this.handleBlur(\"lastName\")} ></primer-input>${k(this.shouldShowError(\"lastName\"),()=>m`<primer-input-error slot=\"error\">${this.errors.lastName}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`)} ${k(this.fieldConfig.addressLine1,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"addressLine1\"} .hasError=${this.shouldShowError(\"addressLine1\")} ><primer-input-label slot=\"label\">${C(\"Address line 1\",{id:\"addressLine1\"})}</primer-input-label><primer-input slot=\"input\" id=\"addressLine1\" name=\"addressLine1\" type=\"text\" .value=${this.formData.addressLine1||\"\"} placeholder=${C(\"Address line 1\",{id:\"addressLine1Placeholder\"})} @input=${e=>this.handleInput(\"addressLine1\",e.detail)} @focus=${()=>this.handleFocus(\"addressLine1\")} @blur=${()=>this.handleBlur(\"addressLine1\")} ></primer-input>${k(this.shouldShowError(\"addressLine1\"),()=>m`<primer-input-error slot=\"error\">${this.errors.addressLine1}</primer-input-error>`)}</primer-input-wrapper>`)} ${k(this.fieldConfig.addressLine2,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"addressLine2\"} .hasError=${this.shouldShowError(\"addressLine2\")} ><primer-input-label slot=\"label\">${C(\"Address line 2\",{id:\"addressLine2\"})}</primer-input-label><primer-input slot=\"input\" id=\"addressLine2\" name=\"addressLine2\" type=\"text\" .value=${this.formData.addressLine2||\"\"} placeholder=${C(\"Address line 2\",{id:\"addressLine2Placeholder\"})} @input=${e=>this.handleInput(\"addressLine2\",e.detail)} @focus=${()=>this.handleFocus(\"addressLine2\")} @blur=${()=>this.handleBlur(\"addressLine2\")} ></primer-input>${k(this.shouldShowError(\"addressLine2\"),()=>m`<primer-input-error slot=\"error\">${this.errors.addressLine2}</primer-input-error>`)}</primer-input-wrapper>`)} ${k(this.fieldConfig.postalCode||this.fieldConfig.city,()=>m`<div class=\"billing-address-row\">${k(this.fieldConfig.postalCode,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"postalCode\"} .hasError=${this.shouldShowError(\"postalCode\")} ><primer-input-label slot=\"label\">${C(\"Postal code\",{id:\"postalCodeLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"postalCode\" name=\"postalCode\" type=\"text\" .value=${this.formData.postalCode||\"\"} placeholder=${C(\"90210\",{id:\"postalCodePlaceholder\"})} @input=${e=>this.handleInput(\"postalCode\",e.detail)} @focus=${()=>this.handleFocus(\"postalCode\")} @blur=${()=>this.handleBlur(\"postalCode\")} ></primer-input>${k(this.shouldShowError(\"postalCode\"),()=>m`<primer-input-error slot=\"error\">${this.errors.postalCode}</primer-input-error>`)}</primer-input-wrapper>`)} ${k(this.fieldConfig.city,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"city\"} .hasError=${this.shouldShowError(\"city\")} ><primer-input-label slot=\"label\">${C(\"City\",{id:\"cityLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"city\" name=\"city\" type=\"text\" .value=${this.formData.city||\"\"} placeholder=${C(\"Cape Town\",{id:\"cityPlaceholder\"})} @input=${e=>this.handleInput(\"city\",e.detail)} @focus=${()=>this.handleFocus(\"city\")} @blur=${()=>this.handleBlur(\"city\")} ></primer-input>${k(this.shouldShowError(\"city\"),()=>m`<primer-input-error slot=\"error\">${this.errors.city}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`)} ${k(this.fieldConfig.state,()=>m`<primer-input-wrapper .focusWithin=${this.focusedField===\"state\"} .hasError=${this.shouldShowError(\"state\")} ><primer-input-label slot=\"label\">${C(\"State / Region / County\",{id:\"stateLabel\"})}</primer-input-label><primer-input slot=\"input\" id=\"state\" name=\"state\" type=\"text\" .value=${this.formData.state||\"\"} placeholder=${C(\"State / Region / County\",{id:\"statePlaceholder\"})} @input=${e=>this.handleInput(\"state\",e.detail)} @focus=${()=>this.handleFocus(\"state\")} @blur=${()=>this.handleBlur(\"state\")} ></primer-input>${k(this.shouldShowError(\"state\"),()=>m`<primer-input-error slot=\"error\">${this.errors.state}</primer-input-error>`)}</primer-input-wrapper>`)}</div>`):(this.setAttribute(\"hidden\",\"\"),h)})}}"
|
|
200
228
|
},
|
|
201
229
|
{
|
|
202
230
|
"kind": "variable",
|
|
203
|
-
"name": "
|
|
204
|
-
"default": "class extends v{constructor(){super(
|
|
231
|
+
"name": "ae",
|
|
232
|
+
"default": "class extends v{constructor(){super();this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.isEditMode=!1;this.deletePaymentMethodId=null;this.isDeleting=!1;this.errorMessage=\"\";this.animationDuration=300;this.deleteAssetConfig=null;this.handleToggleEditMode=e=>{this.isEditMode=e.detail,this.deletePaymentMethodId=null,this.isEditMode&&this.vaultItemContext&&this.vaultItemContext.setSelectedVaultedPaymentMethod(null)};this.handleDeletePaymentMethod=async e=>{if(this.deletePaymentMethodId=e.detail,this.deletePaymentMethodId&&this.vaultManagerContext&&this.headlessUtils){let r=this.vaultManagerContext.vaultedPaymentMethods.find(o=>o.id===this.deletePaymentMethodId);r&&(this.deleteAssetConfig=await xi(r,this.headlessUtils,this.vaultManagerContext))}};this.handleCancelDelete=()=>{this.deletePaymentMethodId=null,this.deleteAssetConfig=null};this.handleConfirmDelete=async()=>{if(!this.vaultManagerContext?.deleteVaultedPaymentMethod||!this.deletePaymentMethodId){this.errorMessage=C(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"});return}try{this.isDeleting=!0,await this.vaultManagerContext.deleteVaultedPaymentMethod(this.deletePaymentMethodId),this.deletePaymentMethodId=null,this.deleteAssetConfig=null}catch(e){this.errorMessage=e instanceof Error?e.message:C(\"something_went_wrong_error\",{id:\"something_went_wrong_error\"})}finally{this.isDeleting=!1}};this.handlePaymentError=e=>{let r=e.detail?.error;this.errorMessage=r instanceof Error?r.message:C(\"payment_processing_error\",{id:\"payment_processing_error\"})};this.handleCloseError=()=>{this.errorMessage=\"\"};new zt(this,{defaultOptions:{keyframeOptions:{duration:Number(getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-duration\").trim().replace(\"ms\",\"\")),easing:getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-easing\").trim()}}})}getAnimationConfig(){return{keyframeOptions:{duration:this.animationDuration,easing:getComputedStyle(document.documentElement).getPropertyValue(\"--primer-animation-easing\").trim(),fill:\"both\"}}}getPaymentMethodName(e){if(!this.vaultManagerContext)return\"\";let r=this.vaultManagerContext.vaultedPaymentMethods.find(o=>o.id===e);if(!r)return\"\";try{return Vo(r).description||\"\"}catch{return\"\"}}renderLoadingOverlay(){return m`<div class=\"loading-overlay\" ${gt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ><primer-spinner size=\"medium\" color=\"var(--primer-color-loader)\" ></primer-spinner></div>`}renderDeleteConfirmation(){if(!this.deletePaymentMethodId||!this.deleteAssetConfig)return h;let e=this.getPaymentMethodName(this.deletePaymentMethodId);return m`<div class=\"delete-confirmation-container\"><primer-button disabled variant=\"secondary\"><primer-payment-method-content .assetConfig=${this.deleteAssetConfig} ></primer-payment-method-content></primer-button><primer-vault-delete-confirmation .isDeleting=${this.isDeleting} .paymentMethodId=${this.deletePaymentMethodId} .paymentMethodName=${e} @confirm-delete=${this.handleConfirmDelete} @cancel-delete=${this.handleCancelDelete} ${gt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-delete-confirmation></div>`}renderPaymentMethodItem(e){return this.deletePaymentMethodId===e.id?h:m`<primer-vault-payment-method-item .paymentMethod=${e} .isEditMode=${this.isEditMode} @delete-payment-method=${this.handleDeletePaymentMethod} ${gt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-payment-method-item>`}renderPaymentMethodList(){let e=this.vaultManagerContext?.vaultedPaymentMethods||[],r=!this.isEditMode&&e.length>0&&!this.deletePaymentMethodId;return m`<div class=\"payment-methods-list\">${e.map(o=>this.renderPaymentMethodItem(o))} ${k(r,()=>m`<div class=\"submit-button-container\"><primer-vault-payment-submit class=\"submit-button\" @primer-vault-payment-error=${this.handlePaymentError} ${gt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-payment-submit></div>`,()=>h)}</div>`}render(){if(!this.vaultManagerContext?.enabled)return h;let e=this.vaultManagerContext.vaultedPaymentMethods.length>0,r=this.vaultManagerContext.isLoading,o=this.vaultManagerContext.isUpdating;return m` ${k(!this.vaultManagerContext?.showEmptyState&&!e,()=>h,()=>m`<slot name=\"vault-empty-state\"><div class=\"vault-manager ${o?\"is-updating\":\"\"}\"><primer-vault-manager-header .isEditMode=${this.isEditMode} .hasPaymentMethods=${e} @toggle-edit-mode=${this.handleToggleEditMode} ></primer-vault-manager-header>${k(this.errorMessage,()=>m`<primer-vault-error-message .errorMessage=${this.errorMessage} @close-error=${this.handleCloseError} ${gt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-error-message>`,()=>h)}<div class=\"vault-manager-content\">${k(!r&&!e,()=>m`<div class=\"content-container\"><primer-vault-empty-state ${gt({...this.getAnimationConfig(),properties:[\"opacity\"],in:[{opacity:0},{opacity:1}],out:[{opacity:1},{opacity:0}]})} ></primer-vault-empty-state></div>`,()=>h)} ${k(!r&&e,()=>m`<div class=\"content-container\">${k(this.deletePaymentMethodId,()=>this.renderDeleteConfirmation(),()=>this.renderPaymentMethodList())}</div>`,()=>h)}</div>${k(o,()=>this.renderLoadingOverlay(),()=>h)}</div></slot>`)} `}}"
|
|
205
233
|
},
|
|
206
234
|
{
|
|
207
235
|
"kind": "variable",
|
|
208
|
-
"name": "
|
|
209
|
-
"default": "class extends v{constructor(){super(...arguments);this.isEditMode=!1;this.
|
|
236
|
+
"name": "ye",
|
|
237
|
+
"default": "class extends v{constructor(){super(...arguments);this.vaultManagerContext=null;this.vaultItemContext=null;this.headlessUtils=null;this.paymentMethod=null;this.isEditMode=!1;this._getAssetsTask=new O(this,{task:async([e,r,o])=>await xi(e,r,o),args:()=>[this.paymentMethod,this.headlessUtils,this.vaultManagerContext]});this.handleClick=()=>{this.isEditMode||!this.vaultManagerContext||!this.paymentMethod||(this.isSelected()?this.vaultItemContext?.setSelectedVaultedPaymentMethod(null):this.vaultItemContext?.setSelectedVaultedPaymentMethod(this.paymentMethod))};this.handleDeleteClick=e=>{e.stopPropagation(),this.dispatchEvent(new CustomEvent(\"delete-payment-method\",{detail:this.paymentMethod?.id,bubbles:!0,composed:!0}))}}isSelected(){if(!this.vaultManagerContext||!this.paymentMethod)return!1;let e=this.vaultItemContext?.selectedVaultedPaymentMethod;return!!e&&e.id===this.paymentMethod.id}render(){return this._getAssetsTask.render({error:()=>h,complete:e=>{let r=this.isSelected()?\"checked\":\"default\",o=!1,a=e?.description;return m`<div class=\"payment-method-wrapper\"><div class=\"payment-method-container\"><primer-button variant=\"secondary\" class=\"payment-method-button ${e.shouldShowCVV?\"with-cvv\":\"\"}\" selectable ?disabled=${this.isEditMode} selectionState=${r} .flex=${o} @click=${this.handleClick} ><primer-payment-method-content .assetConfig=${e} ></primer-payment-method-content>${k(e.shouldShowCVV&&this.isSelected()&&!this.isEditMode,()=>m`<div class=\"payment-method-row mt-2\"><span class=\"flex-center\"><primer-icon name=\"lock\" size=\"sm\"></primer-icon><span class=\"payment-method-subtitle\"> Input the card CVV for a secure payment</span ></span><span class=\"cell-2\"><primer-vault-cvv-input .paymentMethod=\"${this.paymentMethod}\" ><span slot=\"label\"></span></primer-vault-cvv-input></span></div>`,()=>h)}</primer-button>${this.isEditMode?m`<primer-button variant=\"tertiary\" class=\"delete-button\" @click=${this.handleDeleteClick} aria-label=${`${C(\"delete\",{id:\"delete\"})} ${a}`} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></primer-button>`:h}</div></div>`}})}}"
|
|
210
238
|
},
|
|
211
239
|
{
|
|
212
240
|
"kind": "variable",
|
|
213
|
-
"name": "
|
|
214
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
241
|
+
"name": "ke",
|
|
242
|
+
"default": "class extends v{constructor(){super(...arguments);this.isEditMode=!1;this.hasPaymentMethods=!1;this.toggleEditMode=()=>{this.dispatchEvent(new CustomEvent(\"toggle-edit-mode\",{detail:!this.isEditMode,bubbles:!0,composed:!0}))}}render(){return m`<div class=\"vault-manager-header\"><h3>${C(\"previouslyUsed\",{id:\"previouslyUsed\"})}</h3>${this.hasPaymentMethods?m`<primer-button variant=\"tertiary\" class=\"edit-button ${this.isEditMode?\"active\":\"\"}\" @click=${this.toggleEditMode} aria-label=${this.isEditMode?C(\"confirm\",{id:\"confirm\"}):C(\"editPaymentMethods\",{id:\"editPaymentMethods\"})} >${this.isEditMode?m`<primer-icon name=\"checkmark\" size=\"sm\"></primer-icon>`:m`<primer-icon name=\"edit\" size=\"sm\"></primer-icon>`}</primer-button>`:h}</div>`}}"
|
|
215
243
|
},
|
|
216
244
|
{
|
|
217
245
|
"kind": "variable",
|
|
218
|
-
"name": "
|
|
219
|
-
"default": "class extends v{render(){return m`<div class=\"
|
|
246
|
+
"name": "Ee",
|
|
247
|
+
"default": "class extends v{constructor(){super(...arguments);this.isDeleting=!1;this.paymentMethodId=\"\";this.paymentMethodName=\"\";this.vaultManager=null;this.handleConfirmClick=()=>{this.dispatchEvent(new CustomEvent(\"confirm-delete\",{bubbles:!0,composed:!0}))};this.handleCancelClick=()=>{this.dispatchEvent(new CustomEvent(\"cancel-delete\",{bubbles:!0,composed:!0}))}}render(){return m`<div class=\"delete-confirmation\"><p class=\"delete-confirmation-text\"> Are you sure you want to delete this payment method? </p><div class=\"delete-actions\"><primer-button variant=\"secondary\" @click=${this.handleCancelClick} ?disabled=${this.isDeleting} >${C(\"cancel\",{id:\"cancel\"})}</primer-button><primer-button @click=${this.handleConfirmClick} ?disabled=${this.isDeleting} >${this.isDeleting?C(\"deleting\",{id:\"deleting\"}):C(\"confirmVaultedPaymentMethodDeletion\",{id:\"confirmVaultedPaymentMethodDeletion\"})}</primer-button></div></div>`}}"
|
|
220
248
|
},
|
|
221
249
|
{
|
|
222
250
|
"kind": "variable",
|
|
223
|
-
"name": "
|
|
224
|
-
"default": "class extends v{
|
|
251
|
+
"name": "Xe",
|
|
252
|
+
"default": "class extends v{render(){return m`<div class=\"empty-state\"><p>${C(\"savedPaymentMethodsEmpty\",{id:\"savedPaymentMethodsEmpty\"})}</p></div>`}}"
|
|
225
253
|
},
|
|
226
254
|
{
|
|
227
255
|
"kind": "variable",
|
|
228
|
-
"name": "
|
|
229
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
256
|
+
"name": "Fe",
|
|
257
|
+
"default": "class extends v{constructor(){super(...arguments);this.errorMessage=\"\";this.handleDismiss=()=>{this.dispatchEvent(new CustomEvent(\"close-error\",{bubbles:!0,composed:!0}))}}render(){return m`<div class=\"error-message\"><div class=\"error-content\"><primer-icon name=\"warning\" size=\"sm\" color=\"var(--primer-color-red-500)\" ></primer-icon><p>${this.errorMessage}</p></div><button @click=${this.handleDismiss} aria-label=${C(\"closeErrorMessage\",{id:\"closeErrorMessage\"})} ><primer-icon name=\"close\" size=\"sm\"></primer-icon></button></div>`}}"
|
|
230
258
|
},
|
|
231
259
|
{
|
|
232
260
|
"kind": "variable",
|
|
233
|
-
"name": "
|
|
234
|
-
"default": "class extends v{constructor(){super();this.
|
|
261
|
+
"name": "Q",
|
|
262
|
+
"default": "class extends v{constructor(){super(...arguments);this._userAssignedProps=new Set;this._internalButtonText=\"\";this.headlessInstance=null;this.sdkState=null;this.vaultItemContext=null;this.vaultManager=null;this.clientOptions=null;this.variant=\"primary\";this.disabled=!1;this.handleClick=async e=>{if(e.preventDefault(),!this.isButtonDisabled)try{await this.vaultManager?.startVaultedPaymentFlow()}catch(r){let o=new CustomEvent(\"primer-vault-payment-error\",{bubbles:!0,composed:!0,detail:{error:r}});this.dispatchEvent(o)}}}get buttonText(){return this._userAssignedProps.has(\"buttonText\")?this._internalButtonText:C(\"pay\",{id:\"pay\"})}set buttonText(e){let r=this.buttonText;e!==\"\"?(this._userAssignedProps.add(\"buttonText\"),this._internalButtonText=e):(this._userAssignedProps.delete(\"buttonText\"),this._internalButtonText=\"\"),this.requestUpdate(\"buttonText\",r)}get isButtonDisabled(){return!!(this.disabled||!this.vaultItemContext?.selectedVaultedPaymentMethod||this.vaultManager?.isLoading)}render(){let e=this.clientOptions?.submitButton?.amountVisible?this.headlessInstance?.getUIOrderAmount():null,r=e?` ${e}`:h;return m`<primer-button buttonType=\"submit\" variant=${this.variant} @click=${this.handleClick} .disabled=${this.isButtonDisabled} .loading=${this.sdkState?.isProcessing} data-submit >${this.buttonText}${r}</primer-button>`}}"
|
|
235
263
|
},
|
|
236
264
|
{
|
|
237
265
|
"kind": "variable",
|
|
238
|
-
"name": "
|
|
239
|
-
"default": "class extends v{constructor(){super(
|
|
266
|
+
"name": "G",
|
|
267
|
+
"default": "class extends v{constructor(){super();this.vaultManagerFormContext=null;this.vaultManagerCvvContext=null;this.computedStyles=null;this.paymentMethod=null;this.cvvError=null;this.cvvInputIsDirty=!1;this.cvvInputIsBlurred=!1;this.cvvInput=null;this.isFocused=!1;this._setupCVVIframe=new O(this,{task:([e,r])=>!e||!r||e.paymentMethodType!==\"PAYMENT_CARD\"||!e.paymentInstrumentData?.network||r.createCvvInput===null?N:{network:e.paymentInstrumentData.network,createCvvInput:r.createCvvInput},args:()=>[this.paymentMethod,this.vaultManagerFormContext]});this.cvvContainerId=`cvv-container-${Math.random().toString(36).substring(2,9)}`,new O(this,{task:async([e])=>{if(!e)return N;await this.updateComplete;let r=this.renderRoot.querySelector(`#${this.cvvContainerId}`);if(!r)return;let o=wi(this.computedStyles),a=o?{input:{base:o}}:void 0,n={cardNetwork:e.network,container:r,name:\"cvv\",placeholder:\"123\",style:a};this.cvvInput=await e.createCvvInput?.(n)??null,this.cvvInput&&(this.cvvInput.focus(),this.cvvError=this.cvvInput.metadata.errorCode||null,this.vaultManagerCvvContext?.setCvvInput(this.cvvInput),this.cvvInput.addListener(\"change\",()=>{this.onCvvInputChange()}),this.cvvInput.addListener(\"blur\",()=>{this.onBlur()}),this.cvvInput.addListener(\"focus\",()=>{this.onFocus()}))},args:()=>[this._setupCVVIframe.value]})}disconnectedCallback(){super.disconnectedCallback(),this.cvvInput&&(this.cvvInput.remove(),this.cvvInput=null,this.cvvError=null,this.vaultManagerCvvContext?.setCvvInput(null))}onCvvInputChange(){!this.cvvInput||!this.vaultManagerCvvContext||(this.cvvInputIsDirty=!0,this.cvvError=this.cvvInput.metadata.errorCode||null)}onBlur(){this.cvvInput&&(this.cvvInputIsBlurred=!0,this.cvvError=this.cvvInput.metadata.errorCode||null,this.isFocused=!1)}onFocus(){this.isFocused=!0}render(){return this._setupCVVIframe.render({error:()=>h,complete:()=>m`<div class=\"cvv-input-container\"><primer-input-wrapper .focusWithin=${this.isFocused} .hasError=${!!this.cvvError&&(this.vaultManagerCvvContext?.formIsDirty||this.cvvInputIsDirty&&this.cvvInputIsBlurred)} ><slot name=\"label\" slot=\"label\"><primer-input-label>CVV</primer-input-label></slot><div slot=\"input\" id=\"${this.cvvContainerId}\"></div>${k(this.cvvError&&(this.vaultManagerCvvContext?.formIsDirty||this.cvvInputIsDirty&&this.cvvInputIsBlurred),()=>m`<primer-input-error slot=\"error\">${C(this.cvvError,{id:this.cvvError})}</primer-input-error>`)}</primer-input-wrapper></div>`})}}"
|
|
240
268
|
},
|
|
241
269
|
{
|
|
242
270
|
"kind": "variable",
|
|
243
|
-
"name": "
|
|
244
|
-
"default": "class extends v{constructor(){super(...arguments);this.
|
|
271
|
+
"name": "ze",
|
|
272
|
+
"default": "class extends v{constructor(){super(...arguments);this.assetConfig=null}render(){if(!this.assetConfig)return h;let e=this.assetConfig.description,r=this.assetConfig.icon,o=k(this.assetConfig.icon,()=>m`<img class=\"payment-method-icon\" src=${r} alt=${e} />`,()=>m`<div class=\"payment-method-icon payment-method-icon-generic\"><primer-icon name=\"payment-card\" size=\"sm\"></primer-icon></div>`);return this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType!==\"ACH\"?m`<div class=\"payment-method-card-other\"><div class=\"left-column\"><div class=\"payment-method-header\">${this.assetConfig.fullName}</div><div class=\"flex\">${o}<span class=\"payment-method-subtitle\" >${this.assetConfig.paymentMethodType}</span ></div></div><div class=\"payment-method-right-column-text\">${this.assetConfig.email||`\\u2022\\u2022\\u2022\\u2022 ${this.assetConfig.last4}`}</div></div>`:this.assetConfig.type===\"other\"&&this.assetConfig.paymentMethodType===\"ACH\"?m`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.fullName}</span ><span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${o}<span class=\"payment-method-subtitle\" >${this.assetConfig.bankName}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.accountType}</span ></div></span>`:this.assetConfig.type===\"card\"?m`<span class=\"payment-method-card\"><div class=\"payment-method-row\"><span class=\"payment-method-header\" >${this.assetConfig.cardholderName}</span ><span class=\"payment-method-header cell-2\" >•••• ${this.assetConfig.last4}</span ></div><div class=\"payment-method-row\"><span class=\"flex\">${o}<span class=\"payment-method-subtitle\" >${this.assetConfig.network}</span ></span><span class=\"payment-method-subtitle cell-2\" >${this.assetConfig.expiresDate}</span ></div></span>`:h}}"
|
|
245
273
|
},
|
|
246
274
|
{
|
|
247
275
|
"kind": "variable",
|
|
248
|
-
"name": "
|
|
249
|
-
"default": "class extends
|
|
276
|
+
"name": "ee",
|
|
277
|
+
"default": "class extends v{constructor(){super(...arguments);this.hideLabels=!1;this.disabled=!1;this.hasAssignedContent=!1;this.selectedCardNetwork=null;this.formErrorMessage=null;this.paymentMethodSelectionSent=!1;this.paymentManagers=new Map;this.clientOptions=null;this.headlessUtils=null;this.analyticsUtils=null;this.contextEventsController=null;this.cardFormProvider=new F(this,{context:Kt,initialValue:null});this.eventsController=new Lt(this);this._contextCardSubmitListener=null;this._isHandlingContextEvent=!1;this.inputControllers=new Map;this.setupCardFormTask=new O(this,{task:([e])=>{if(!e?.manager)return N;let{manager:r}=e,o=r.createHostedInputs(),{cardNumberInput:a,expiryInput:n,cvvInput:l}=o;return this.cardFormProvider.setValue({cardholderNameInput:o.cardholderNameInput,cardNumberInput:a,expiryInput:n,cvvInput:l,setCardholderName:d=>{r.setCardholderName(d),this.shouldRequireCardholderName&&r.validate?.().then(c=>{let f=c?.validationErrors?.find(A=>A.name===Ls.cardholderName),g=this.inputControllers.get(\"cardholderName\");g&&g.updateMetaFromValidation({valid:!1,error:f?.message||f?.error||null,errorCode:f?.message||f?.error||null})})},setCardNetwork:d=>{this.selectedCardNetwork=d},validate:()=>r.validate(),submit:d=>r.submit(d),hideLabels:this.hideLabels,disabled:this.disabled,setSubmissionState:d=>{this.inputControllers.forEach(c=>{c.setSubmitted(d)})},propagateValidationErrors:d=>{d&&d.forEach(c=>{let u=c.field||c.name,f=c.message||c.error,g=Ls[u];if(g){let A=this.inputControllers.get(g);if(A){let S={valid:!1,error:f,errorCode:f};A.updateMetaFromValidation(S)}}})},registerInputController:(d,c)=>{this.inputControllers.set(d,c)},unregisterInputController:d=>{this.inputControllers.delete(d)},onUserInteraction:()=>{this.sendPaymentMethodSelectionEvent(),this.checkAndSendPaymentDetailsEnteredEvent()}}),!0},args:()=>[this.paymentManagers.get(\"PAYMENT_CARD\")]});this.paymentDetailsEnteredSent=!1;this.handleSlotButtonClick=e=>{let o=e.target.closest(\"button, primer-button\");if(!o)return;let a=o;this.isSubmitButton(a)&&(e.preventDefault(),this.submitCardPayment())};this.handleDirectSubmit=e=>{e.stopPropagation(),this.submitCardPayment()};this.handleContextCardSubmit=e=>{if(!this._isHandlingContextEvent){this._isHandlingContextEvent=!0;try{e.target!==this&&(e.stopPropagation(),this.submitCardPayment())}finally{this._isHandlingContextEvent=!1}}};this.onSlotChange=e=>{let o=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=o.length>0};this.handleFormSubmit=e=>{e.preventDefault(),e.stopPropagation(),this.submitCardPayment()}}updated(e){if(super.updated(e),(e.has(\"hideLabels\")||e.has(\"disabled\"))&&this.cardFormProvider.value&&this.cardFormProvider.setValue({...this.cardFormProvider.value,hideLabels:this.hideLabels,disabled:this.disabled}),e.has(\"contextEventsController\")){let r=e.get(\"contextEventsController\");r?.host&&this._contextCardSubmitListener&&r.host.removeEventListener(\"primer:card-submit\",this._contextCardSubmitListener),this.setupContextEventListeners()}}get shouldShowCardholderName(){let e=this.clientOptions?.card?.cardholderName;return typeof e?.visible==\"boolean\"?e.visible:!0}get shouldRequireCardholderName(){if(!this.shouldShowCardholderName)return!1;let e=this.clientOptions?.card?.cardholderName;return typeof e?.required==\"boolean\"?e.required:!0}sendPaymentMethodSelectionEvent(){this.paymentMethodSelectionSent||(this.paymentMethodSelectionSent=!0,q({eventName:\"PAYMENT_METHOD_SELECTION\",paymentMethod:\"PAYMENT_CARD\"}))}checkAndSendPaymentDetailsEnteredEvent(){if(this.paymentDetailsEnteredSent)return;let e=this.inputControllers.get(\"cardNumber\"),r=this.inputControllers.get(\"expire\"),o=this.inputControllers.get(\"cvv\"),a=e?.meta?.dirty===!0,n=r?.meta?.dirty===!0,l=o?.meta?.dirty===!0,d=!0;this.shouldRequireCardholderName&&(d=this.inputControllers.get(\"cardholderName\")?.meta?.dirty===!0),a&&n&&l&&d&&(this.sendPaymentDetailsEnteredEvent(),this.paymentDetailsEnteredSent=!0)}sendPaymentDetailsEnteredEvent(){q({eventName:\"PAYMENT_DETAILS_ENTERED\",paymentMethod:\"PAYMENT_CARD\"})}connectedCallback(){super.connectedCallback(),this.addEventListener(\"click\",this.handleSlotButtonClick),this.addEventListener(\"primer:card-submit\",this.handleDirectSubmit),this._contextCardSubmitListener=e=>{this.handleContextCardSubmit(e)},this.setupContextEventListeners()}disconnectedCallback(){this.removeEventListener(\"click\",this.handleSlotButtonClick),this.removeEventListener(\"primer:card-submit\",this.handleDirectSubmit),this.cleanupContextEventListeners(),super.disconnectedCallback()}setupContextEventListeners(){this.contextEventsController?.host&&this._contextCardSubmitListener&&this.contextEventsController.host.addEventListener(\"primer:card-submit\",this._contextCardSubmitListener)}cleanupContextEventListeners(){this.contextEventsController?.host&&this._contextCardSubmitListener&&this.contextEventsController.host.removeEventListener(\"primer:card-submit\",this._contextCardSubmitListener)}isSubmitButton(e){let r=e.tagName.toLowerCase(),o=r===\"button\",a=r===\"primer-button\";return o&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))||a&&(e.getAttribute(\"type\")===\"submit\"||e.hasAttribute(\"data-submit\"))}async submitCardPayment(){let e=this.cardFormProvider.value;if(!e||this.disabled)return;this.formErrorMessage=null,e.setSubmissionState?.(!0);let r=this.querySelector(\"primer-billing-address\")||this.renderRoot.querySelector(\"primer-billing-address\"),o=!0;r&&(o=await r.validateForSubmission());let a=await e.validate?.();if(a?.valid&&o){if(r&&!await r.submitToSDK()){let c=C(\"tokenizationError\",{id:\"tokenizationError\"});this.formErrorMessage=c,this.eventsController.dispatchFormSubmitErrors([{field:\"billingAddress\",name:\"billingAddress\",error:\"BILLING_ADDRESS_SUBMISSION_FAILED\",message:c}]);return}let n=this.selectedCardNetwork?{cardNetwork:this.selectedCardNetwork}:void 0;await e.submit?.(n);let l={success:!0};this.eventsController.dispatchFormSubmitSuccess(l)}else{let n=a?.validationErrors;e.propagateValidationErrors?.(n||[]),this.cardFormProvider.setValue({...e,errors:n}),this.eventsController.dispatchFormSubmitErrors(n)}}render(){return this.setupCardFormTask.status===dt.ERROR||this.setupCardFormTask.status===dt.INITIAL?h:m`<form @submit=${this.handleFormSubmit}><slot name=\"card-form-content\" @slotchange=${this.onSlotChange}></slot>${this.setupCardFormTask.render({complete:()=>k(this.hasAssignedContent,()=>h,()=>m`<div class=\"card-form\"><primer-input-card-number></primer-input-card-number><div class=\"card-form-row\"><primer-input-card-expiry></primer-input-card-expiry><primer-input-cvv></primer-input-cvv></div>${k(this.shouldShowCardholderName,()=>m`<primer-input-card-holder-name></primer-input-card-holder-name>`,()=>h)}<primer-billing-address></primer-billing-address></div><primer-card-form-submit></primer-card-form-submit><primer-error-message message=\"${this.formErrorMessage||\"\"}\" ?visible=\"${!!this.formErrorMessage}\" ></primer-error-message>`)})}</form>`}}"
|
|
250
278
|
},
|
|
251
279
|
{
|
|
252
280
|
"kind": "variable",
|
|
253
|
-
"name": "
|
|
281
|
+
"name": "Qe",
|
|
282
|
+
"default": "class extends le{constructor(){super();this.config={inputType:\"cardNumber\",containerSelector:\"#cardNumber\",errorName:\"cardNumber-card\",translations:{label:{id:\"cardNumber\",defaultMessage:\"Card Number\"},placeholder:\"4111 1111 1111 1111\",ariaLabel:{id:\"cardNumber\",defaultMessage:\"Card Number\"}}};this.handleNetworkSelected=e=>{let{network:r}=e.detail;this.cardFormContext&&this.cardFormContext.setCardNetwork(r)};this.childUpdated()}renderInput(){if(this.hostedInputController.setupTask.status===dt.ERROR)return h;let e=this.getError();return m`<primer-input-wrapper .focusWithin=\"${this.hostedInputController.meta.active}\" .hasError=${!!e} >${k(!this.cardFormContext?.hideLabels,()=>m`<primer-input-label slot=\"label\" >${this.label}</primer-input-label >`,()=>h)}<div slot=\"input\" class=\"card-number-container\" aria-label=\"${this.ariaLabel}\" ><div id=\"${this.config.containerSelector.substring(1)}\"></div><div class=\"network-selector-container\"><primer-card-network-selector @network-selected=${this.handleNetworkSelected} ></primer-card-network-selector></div></div>${k(e,r=>m`<primer-input-error slot=\"error\">${C(r,{id:r})}</primer-input-error>`,()=>h)}</primer-input-wrapper>`}render(){return this.renderInput()}}"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"kind": "variable",
|
|
286
|
+
"name": "et",
|
|
254
287
|
"default": "class extends le{constructor(){super();this.config={inputType:\"cvv\",containerSelector:\"#cvv\",errorName:\"cvv-card\",translations:{label:\"CVV\",placeholder:\"123\"}};this.childUpdated()}render(){return this.renderInput()}}"
|
|
255
288
|
},
|
|
256
289
|
{
|
|
257
290
|
"kind": "variable",
|
|
258
|
-
"name": "
|
|
291
|
+
"name": "tt",
|
|
259
292
|
"default": "class extends le{constructor(){super();this.config={inputType:\"expire\",containerSelector:\"#expiry\",errorName:\"expiryDate-card\",translations:{label:{id:\"cardExpiry\",defaultMessage:\"Expiry Date\"},placeholder:{id:\"cardExpiryPlaceholder\",defaultMessage:\"MM/YY\"},ariaLabel:{id:\"cardExpiry\",defaultMessage:\"Expiry Date\"}}};this.childUpdated()}render(){return this.renderInput()}}"
|
|
260
293
|
},
|
|
261
294
|
{
|
|
262
295
|
"kind": "variable",
|
|
263
|
-
"name": "
|
|
296
|
+
"name": "rt",
|
|
264
297
|
"default": "class extends le{constructor(){super();this.config={inputType:\"cardholderName\",containerSelector:\"#cardFormName\",errorName:\"cardholderName\",translations:{label:{id:\"cardholderNameLabel\",defaultMessage:\"Cardholder Name\"},placeholder:{id:\"cardholderNamePlaceholder\",defaultMessage:\"Name on card\"},ariaLabel:{id:\"cardholderNameLabel\",defaultMessage:\"Cardholder Name\"}},onInput:e=>this.handleInput(e)};this.childUpdated()}handleInput(e){this.cardFormContext?.setCardholderName?.(e)}render(){return this.renderInput()}}"
|
|
265
298
|
},
|
|
266
299
|
{
|
|
267
300
|
"kind": "variable",
|
|
268
|
-
"name": "
|
|
269
|
-
"default": "class extends v{constructor(){super(...arguments);this._userAssignedProps=new Set;this._internalButtonText=\"\";this.headlessUtils=null;this.clientOptions=null;this.sdkState=null;this.cardFormContext=null;this.analyticsUtils=null;this.contextEventsController=null;this.variant=\"primary\";this.disabled=!1;this.handleClick=e=>{if(e.preventDefault(),this.disabled)return;
|
|
301
|
+
"name": "W",
|
|
302
|
+
"default": "class extends v{constructor(){super(...arguments);this._userAssignedProps=new Set;this._internalButtonText=\"\";this.headlessUtils=null;this.clientOptions=null;this.sdkState=null;this.cardFormContext=null;this.analyticsUtils=null;this.contextEventsController=null;this.variant=\"primary\";this.disabled=!1;this.handleClick=e=>{if(e.preventDefault(),this.disabled)return;q({eventName:\"PAYMENT_SUBMITTED\",paymentMethod:\"PAYMENT_CARD\"});let r=new CustomEvent(\"primer:card-submit\",{bubbles:!0,composed:!0,detail:{source:\"primer-card-form-submit\"}});this.dispatchEvent(r)}}get buttonText(){return this._userAssignedProps.has(\"buttonText\")?this._internalButtonText:C(\"pay\",{id:\"pay\"})}set buttonText(e){let r=this.buttonText;e!==\"\"?(this._userAssignedProps.add(\"buttonText\"),this._internalButtonText=e):(this._userAssignedProps.delete(\"buttonText\"),this._internalButtonText=\"\"),this.requestUpdate(\"buttonText\",r)}get submitButtonConfig(){return this.clientOptions?.submitButton??null}get shouldShowBuiltInButton(){return this.submitButtonConfig?.useBuiltInButton??!0}render(){if(!this.shouldShowBuiltInButton)return h;let e=this.submitButtonConfig?.amountVisible?this.headlessUtils?.getUIOrderAmount():null,r=e?` ${e}`:h,o=this.disabled||this.cardFormContext?.disabled||!1;return m`<primer-button type=\"submit\" variant=${this.variant} ?disabled=${o} @click=${this.handleClick} .loading=${!!this.sdkState?.isProcessing} data-submit >${this.buttonText}${r}</primer-button>`}}"
|
|
270
303
|
},
|
|
271
304
|
{
|
|
272
305
|
"kind": "variable",
|
|
273
306
|
"name": "de",
|
|
274
|
-
"default": "class extends v{constructor(){super(...arguments);this.cardNetworks=null;this.headlessUtils=null;this.selectedCardNetwork=null;this.isDropdownOpen=!1;this.focusedNetworkIndex=0;this.isKeyboardNavigation=!1;this.buttonRef=
|
|
307
|
+
"default": "class extends v{constructor(){super(...arguments);this.cardNetworks=null;this.headlessUtils=null;this.selectedCardNetwork=null;this.isDropdownOpen=!1;this.focusedNetworkIndex=0;this.isKeyboardNavigation=!1;this.buttonRef=It();this.dropdownRef=It();this.networkOptionRefs=[];this.toggleDropdown=e=>{this.isKeyboardNavigation=!1,e.stopPropagation(),this.getSelectableNetworks().length>1&&(this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen&&(this.focusedNetworkIndex=this.getSelectedNetworkIndex()))};this.handleClickOutside=e=>{this.isDropdownOpen&&(this.contains(e.target)||(this.isDropdownOpen=!1,this.isKeyboardNavigation=!1))};this.handleMouseMove=()=>{this.isKeyboardNavigation&&(this.isKeyboardNavigation=!1)};this.handleKeyDown=e=>{if(!(!(this.getSelectableNetworks().length>1)||!(this.contains(e.target)||this===e.target||this.isDropdownOpen&&e.target===document.body)))switch(this.isKeyboardNavigation=!0,e.key){case\"ArrowDown\":e.preventDefault(),this.isDropdownOpen?(this.focusedNetworkIndex=(this.focusedNetworkIndex+1)%this.getSelectableNetworks().length,this.focusNetworkOption()):(this.isDropdownOpen=!0,this.focusedNetworkIndex=this.getSelectedNetworkIndex());break;case\"ArrowUp\":e.preventDefault(),this.isDropdownOpen?(this.focusedNetworkIndex=(this.focusedNetworkIndex-1+this.getSelectableNetworks().length)%this.getSelectableNetworks().length,this.focusNetworkOption()):(this.isDropdownOpen=!0,this.focusedNetworkIndex=this.getSelectedNetworkIndex());break;case\"Enter\":case\" \":this.isDropdownOpen&&this.focusedNetworkIndex>=0?(e.preventDefault(),this.selectNetwork(e,this.getSelectableNetworks()[this.focusedNetworkIndex])):!this.isDropdownOpen&&this.buttonRef.value===document.activeElement&&(e.preventDefault(),this.isDropdownOpen=!0,this.focusedNetworkIndex=this.getSelectedNetworkIndex());break;case\"Escape\":this.isDropdownOpen&&(e.preventDefault(),this.isDropdownOpen=!1,this.buttonRef.value?.focus());break;case\"Tab\":this.isDropdownOpen&&(this.isDropdownOpen=!1);break}};this.handleDocumentKeyDown=e=>{this.isDropdownOpen&&this.handleKeyDown(e)}}getNetworkIconUrl(e){return this.headlessUtils?.getCardNetworkAsset(e.network)?.cardUrl}getSelectableNetworks(){return this.cardNetworks?.selectableCardNetworks||[]}getDetectedNetwork(){return this.selectedCardNetwork??(this.cardNetworks?.detectedCardNetwork||null)}getSelectedNetworkIndex(){let e=this.getDetectedNetwork();if(!e)return 0;let r=this.getSelectableNetworks().findIndex(o=>o.network===e.network);return r>=0?r:0}selectNetwork(e,r){e.stopPropagation(),this.selectedCardNetwork=r,this.isDropdownOpen=!1,this.buttonRef.value?.focus(),this.cardNetworks&&this.dispatchEvent(new CustomEvent(\"network-selected\",{detail:{network:r.network},bubbles:!0,composed:!0}))}focusNetworkOption(){requestAnimationFrame(()=>{this.networkOptionRefs[this.focusedNetworkIndex]&&this.networkOptionRefs[this.focusedNetworkIndex].focus()})}setNetworkOptionRef(e,r){this.networkOptionRefs[r]=e}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener(\"click\",this.handleClickOutside),document.addEventListener(\"mousemove\",this.handleMouseMove),this.addEventListener(\"keydown\",this.handleKeyDown),document.addEventListener(\"keydown\",this.handleDocumentKeyDown)},0)}disconnectedCallback(){document.removeEventListener(\"click\",this.handleClickOutside),document.removeEventListener(\"keydown\",this.handleDocumentKeyDown),document.removeEventListener(\"mousemove\",this.handleMouseMove),this.removeEventListener(\"keydown\",this.handleKeyDown),super.disconnectedCallback()}render(){if(this.cardNetworks?.isLoading)return m`<primer-spinner size=\"small\" compact></primer-spinner>`;let e=this.getSelectableNetworks();if(!this.getDetectedNetwork()&&e.length===0)return m`<primer-icon name=\"payment-card\" size=\"sm\"></primer-icon>`;let r=this.getDetectedNetwork()||(e.length>0?e[0]:null);if(!r)return m`<primer-icon name=\"payment-card\" size=\"sm\"></primer-icon>`;let o=e.length>1;return m`<button ${ft(this.buttonRef)} class=\"network-selector\" @click=${this.toggleDropdown} @keydown=${a=>{(a.key===\" \"||a.key===\"Enter\")&&o&&(a.preventDefault(),this.isDropdownOpen=!this.isDropdownOpen,this.isDropdownOpen&&(this.focusedNetworkIndex=this.getSelectedNetworkIndex()))}} aria-label=${o?`Selected card network: ${r.displayName}. Click to change.`:`Card network: ${r.displayName}`} aria-expanded=${o?this.isDropdownOpen:h} aria-haspopup=${o?\"true\":h} aria-controls=${o?\"network-dropdown\":h} ><img class=\"network-icon\" src=${this.getNetworkIconUrl(r)} alt=${r.displayName} />${k(o,()=>m`<primer-icon class=\"caret ${this.isDropdownOpen?\"open\":\"\"}\" size=\"sm\" name=\"chevron-down\" ></primer-icon>`,()=>h)}</button>${k(this.isDropdownOpen,()=>m`<div ${ft(this.dropdownRef)} id=\"network-dropdown\" class=\"dropdown open\" role=\"listbox\" aria-label=\"Select card network\" >${e.map((a,n)=>m`<div ${ft(l=>this.setNetworkOptionRef(l,n))} class=\"network-option ${this.isKeyboardNavigation&&n===this.focusedNetworkIndex?\"focused\":\"\"}\" @click=${l=>this.selectNetwork(l,a)} @keydown=${l=>{(l.key===\"Enter\"||l.key===\" \")&&this.selectNetwork(l,a)}} role=\"option\" aria-selected=${a.network===r.network} tabindex=\"${n===this.focusedNetworkIndex?\"0\":\"-1\"}\" ><img class=\"network-option-icon\" src=${this.getNetworkIconUrl(a)} alt=${a.displayName} /><span class=\"network-name\">${a.displayName}</span>${k(a.network===r.network,()=>m`<primer-icon class=\"checkmark\" name=\"checkmark\" size=\"sm\" ></primer-icon>`,()=>h)}</div>`)}</div>`,()=>h)} `}}"
|
|
275
308
|
},
|
|
276
309
|
{
|
|
277
310
|
"kind": "variable",
|
|
278
|
-
"name": "
|
|
279
|
-
"default": "class extends v{constructor(){super(...arguments);this.vaultManager=null}render(){if(this.vaultManager?.isLoading)return h;let e=this.vaultManager?.showEmptyState&&this.vaultManager?.vaultedPaymentMethods.length;return!this.vaultManager||!this.vaultManager.enabled||!e?m`<slot name=\"other-payments\"></slot>`:m`<div class=\"other-payment-methods-container\"><primer-collapsable buttonVariant=\"secondary\" .expanded=\"${this.vaultManager?.vaultedPaymentMethods.length===0}\" .header=\"${
|
|
311
|
+
"name": "vt",
|
|
312
|
+
"default": "class extends v{constructor(){super(...arguments);this.vaultManager=null}render(){if(this.vaultManager?.isLoading)return h;let e=this.vaultManager?.showEmptyState&&this.vaultManager?.vaultedPaymentMethods.length;return!this.vaultManager||!this.vaultManager.enabled||!e?m`<slot name=\"other-payments\"></slot>`:m`<div class=\"other-payment-methods-container\"><primer-collapsable buttonVariant=\"secondary\" .expanded=\"${this.vaultManager?.vaultedPaymentMethods.length===0}\" .header=\"${C(\"navigateToPaymentMethods\",{id:\"navigateToPaymentMethods\"})}\" ><div class=\"other-payment-methods-content\"><slot name=\"other-payments\"></slot></div></primer-collapsable></div>`}}"
|
|
280
313
|
},
|
|
281
314
|
{
|
|
282
315
|
"kind": "variable",
|
|
283
|
-
"name": "
|
|
316
|
+
"name": "jt",
|
|
284
317
|
"default": "class extends v{render(){return m`<primer-checkout-state type=\"complete\"></primer-checkout-state>`}}"
|
|
285
318
|
},
|
|
286
319
|
{
|
|
287
320
|
"kind": "variable",
|
|
288
|
-
"name": "
|
|
321
|
+
"name": "Nt",
|
|
289
322
|
"default": "class extends v{constructor(){super(...arguments);this.sdkState=null}render(){return m`<primer-checkout-state type=\"failure\" description=${this.sdkState?.error?.message||\"\"} ></primer-checkout-state>`}}"
|
|
290
323
|
},
|
|
291
324
|
{
|
|
292
325
|
"kind": "variable",
|
|
293
|
-
"name": "
|
|
294
|
-
"default": "class extends v{constructor(){super(...arguments);this.showProcessingErrors=!0}get shouldShowError(){return!this.sdkState||this.sdkState.isProcessing?!1:!!(this.sdkState.failure&&this.showProcessingErrors)}render(){return this.sdkState?m`<primer-error-message message=\"${
|
|
326
|
+
"name": "it",
|
|
327
|
+
"default": "class extends v{constructor(){super(...arguments);this.showProcessingErrors=!0}get shouldShowError(){return!this.sdkState||this.sdkState.isProcessing?!1:!!(this.sdkState.failure&&this.showProcessingErrors)}render(){return this.sdkState?m`<primer-error-message message=\"${C(this.sdkState.failure?.message??\"\",{id:\"tokenizationError\"})}\" ?visible=\"${this.shouldShowError}\" ></primer-error-message>`:h}}"
|
|
295
328
|
},
|
|
296
329
|
{
|
|
297
330
|
"kind": "variable",
|
|
298
|
-
"name": "
|
|
299
|
-
"default": "class extends v{constructor(){super(...arguments);this.hasAssignedContent=!1;this.onSlotChange=e=>{let o=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=o.length>0,this.requestUpdate()};this.paymentMethods=null;this.sdkState=null;this.clientOptions=null}render(){return this.sdkState?.isSuccessful?m`<slot name=\"checkout-complete\"><primer-checkout-complete></primer-checkout-complete></slot>`:m`<slot name=\"payments\" @slotchange=${this.onSlotChange}></slot>${
|
|
331
|
+
"name": "Ke",
|
|
332
|
+
"default": "class extends v{constructor(){super(...arguments);this.hasAssignedContent=!1;this.onSlotChange=e=>{let o=e.target.assignedNodes({flatten:!0});this.hasAssignedContent=o.length>0,this.requestUpdate()};this.paymentMethods=null;this.sdkState=null;this.clientOptions=null}render(){return this.sdkState?.isSuccessful?m`<slot name=\"checkout-complete\"><primer-checkout-complete></primer-checkout-complete></slot>`:m`<slot name=\"payments\" @slotchange=${this.onSlotChange}></slot>${k(this.hasAssignedContent,()=>h,()=>m`<div class=${re({\"primer-is-processing\":!!this.sdkState?.isProcessing})} ><primer-vault-manager></primer-vault-manager><primer-show-other-payments><div slot=\"other-payments\" class=\"primer-main-list\">${this.paymentMethods?.toArray().map(e=>m`<primer-payment-method type=${e.type} ?disabled=${this.clientOptions?.disabledPayments===!0} ></primer-payment-method>`)}</div></primer-show-other-payments><primer-error-message-container></primer-error-message-container></div>`)} `}}"
|
|
300
333
|
},
|
|
301
334
|
{
|
|
302
335
|
"kind": "function",
|
|
303
|
-
"name": "
|
|
336
|
+
"name": "pk"
|
|
304
337
|
}
|
|
305
338
|
],
|
|
306
339
|
"exports": [
|
|
@@ -324,7 +357,7 @@
|
|
|
324
357
|
"kind": "js",
|
|
325
358
|
"name": "AchPayment",
|
|
326
359
|
"declaration": {
|
|
327
|
-
"name": "
|
|
360
|
+
"name": "Ce",
|
|
328
361
|
"module": "dist/primer-loader.js"
|
|
329
362
|
}
|
|
330
363
|
},
|
|
@@ -332,7 +365,7 @@
|
|
|
332
365
|
"kind": "js",
|
|
333
366
|
"name": "ApplePay",
|
|
334
367
|
"declaration": {
|
|
335
|
-
"name": "
|
|
368
|
+
"name": "Ye",
|
|
336
369
|
"module": "dist/primer-loader.js"
|
|
337
370
|
}
|
|
338
371
|
},
|
|
@@ -340,7 +373,15 @@
|
|
|
340
373
|
"kind": "js",
|
|
341
374
|
"name": "BillingAddress",
|
|
342
375
|
"declaration": {
|
|
343
|
-
"name": "
|
|
376
|
+
"name": "oe",
|
|
377
|
+
"module": "dist/primer-loader.js"
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"kind": "js",
|
|
382
|
+
"name": "Blik",
|
|
383
|
+
"declaration": {
|
|
384
|
+
"name": "ge",
|
|
344
385
|
"module": "dist/primer-loader.js"
|
|
345
386
|
}
|
|
346
387
|
},
|
|
@@ -356,7 +397,7 @@
|
|
|
356
397
|
"kind": "js",
|
|
357
398
|
"name": "CardForm",
|
|
358
399
|
"declaration": {
|
|
359
|
-
"name": "
|
|
400
|
+
"name": "ee",
|
|
360
401
|
"module": "dist/primer-loader.js"
|
|
361
402
|
}
|
|
362
403
|
},
|
|
@@ -364,7 +405,7 @@
|
|
|
364
405
|
"kind": "js",
|
|
365
406
|
"name": "CardFormCVV",
|
|
366
407
|
"declaration": {
|
|
367
|
-
"name": "
|
|
408
|
+
"name": "et",
|
|
368
409
|
"module": "dist/primer-loader.js"
|
|
369
410
|
}
|
|
370
411
|
},
|
|
@@ -380,7 +421,7 @@
|
|
|
380
421
|
"kind": "js",
|
|
381
422
|
"name": "CardFormCardNumber",
|
|
382
423
|
"declaration": {
|
|
383
|
-
"name": "
|
|
424
|
+
"name": "Qe",
|
|
384
425
|
"module": "dist/primer-loader.js"
|
|
385
426
|
}
|
|
386
427
|
},
|
|
@@ -388,7 +429,7 @@
|
|
|
388
429
|
"kind": "js",
|
|
389
430
|
"name": "CardFormError",
|
|
390
431
|
"declaration": {
|
|
391
|
-
"name": "
|
|
432
|
+
"name": "Je",
|
|
392
433
|
"module": "dist/primer-loader.js"
|
|
393
434
|
}
|
|
394
435
|
},
|
|
@@ -396,7 +437,7 @@
|
|
|
396
437
|
"kind": "js",
|
|
397
438
|
"name": "CardFormExpiry",
|
|
398
439
|
"declaration": {
|
|
399
|
-
"name": "
|
|
440
|
+
"name": "tt",
|
|
400
441
|
"module": "dist/primer-loader.js"
|
|
401
442
|
}
|
|
402
443
|
},
|
|
@@ -404,7 +445,7 @@
|
|
|
404
445
|
"kind": "js",
|
|
405
446
|
"name": "CardFormName",
|
|
406
447
|
"declaration": {
|
|
407
|
-
"name": "
|
|
448
|
+
"name": "rt",
|
|
408
449
|
"module": "dist/primer-loader.js"
|
|
409
450
|
}
|
|
410
451
|
},
|
|
@@ -412,7 +453,7 @@
|
|
|
412
453
|
"kind": "js",
|
|
413
454
|
"name": "CardFormSubmit",
|
|
414
455
|
"declaration": {
|
|
415
|
-
"name": "
|
|
456
|
+
"name": "W",
|
|
416
457
|
"module": "dist/primer-loader.js"
|
|
417
458
|
}
|
|
418
459
|
},
|
|
@@ -428,7 +469,7 @@
|
|
|
428
469
|
"kind": "js",
|
|
429
470
|
"name": "Dialog",
|
|
430
471
|
"declaration": {
|
|
431
|
-
"name": "
|
|
472
|
+
"name": "Te",
|
|
432
473
|
"module": "dist/primer-loader.js"
|
|
433
474
|
}
|
|
434
475
|
},
|
|
@@ -436,7 +477,7 @@
|
|
|
436
477
|
"kind": "js",
|
|
437
478
|
"name": "DynamicPayment",
|
|
438
479
|
"declaration": {
|
|
439
|
-
"name": "
|
|
480
|
+
"name": "Pe",
|
|
440
481
|
"module": "dist/primer-loader.js"
|
|
441
482
|
}
|
|
442
483
|
},
|
|
@@ -444,7 +485,7 @@
|
|
|
444
485
|
"kind": "js",
|
|
445
486
|
"name": "ErrorMessage",
|
|
446
487
|
"declaration": {
|
|
447
|
-
"name": "
|
|
488
|
+
"name": "Ue",
|
|
448
489
|
"module": "dist/primer-loader.js"
|
|
449
490
|
}
|
|
450
491
|
},
|
|
@@ -452,7 +493,7 @@
|
|
|
452
493
|
"kind": "js",
|
|
453
494
|
"name": "ErrorMessageContainer",
|
|
454
495
|
"declaration": {
|
|
455
|
-
"name": "
|
|
496
|
+
"name": "it",
|
|
456
497
|
"module": "dist/primer-loader.js"
|
|
457
498
|
}
|
|
458
499
|
},
|
|
@@ -460,7 +501,7 @@
|
|
|
460
501
|
"kind": "js",
|
|
461
502
|
"name": "GooglePay",
|
|
462
503
|
"declaration": {
|
|
463
|
-
"name": "
|
|
504
|
+
"name": "Be",
|
|
464
505
|
"module": "dist/primer-loader.js"
|
|
465
506
|
}
|
|
466
507
|
},
|
|
@@ -468,7 +509,7 @@
|
|
|
468
509
|
"kind": "js",
|
|
469
510
|
"name": "InitializedPayments",
|
|
470
511
|
"declaration": {
|
|
471
|
-
"name": "
|
|
512
|
+
"name": "Jr",
|
|
472
513
|
"module": "dist/primer-loader.js"
|
|
473
514
|
}
|
|
474
515
|
},
|
|
@@ -476,7 +517,7 @@
|
|
|
476
517
|
"kind": "js",
|
|
477
518
|
"name": "Input",
|
|
478
519
|
"declaration": {
|
|
479
|
-
"name": "
|
|
520
|
+
"name": "B",
|
|
480
521
|
"module": "dist/primer-loader.js"
|
|
481
522
|
}
|
|
482
523
|
},
|
|
@@ -484,7 +525,7 @@
|
|
|
484
525
|
"kind": "js",
|
|
485
526
|
"name": "InputLabel",
|
|
486
527
|
"declaration": {
|
|
487
|
-
"name": "
|
|
528
|
+
"name": "qe",
|
|
488
529
|
"module": "dist/primer-loader.js"
|
|
489
530
|
}
|
|
490
531
|
},
|
|
@@ -492,7 +533,7 @@
|
|
|
492
533
|
"kind": "js",
|
|
493
534
|
"name": "InputWrapper",
|
|
494
535
|
"declaration": {
|
|
495
|
-
"name": "
|
|
536
|
+
"name": "$e",
|
|
496
537
|
"module": "dist/primer-loader.js"
|
|
497
538
|
}
|
|
498
539
|
},
|
|
@@ -500,7 +541,7 @@
|
|
|
500
541
|
"kind": "js",
|
|
501
542
|
"name": "PayPal",
|
|
502
543
|
"declaration": {
|
|
503
|
-
"name": "
|
|
544
|
+
"name": "He",
|
|
504
545
|
"module": "dist/primer-loader.js"
|
|
505
546
|
}
|
|
506
547
|
},
|
|
@@ -508,7 +549,7 @@
|
|
|
508
549
|
"kind": "js",
|
|
509
550
|
"name": "PaymentMethod",
|
|
510
551
|
"declaration": {
|
|
511
|
-
"name": "
|
|
552
|
+
"name": "Me",
|
|
512
553
|
"module": "dist/primer-loader.js"
|
|
513
554
|
}
|
|
514
555
|
},
|
|
@@ -516,7 +557,7 @@
|
|
|
516
557
|
"kind": "js",
|
|
517
558
|
"name": "PaymentMethodContainer",
|
|
518
559
|
"declaration": {
|
|
519
|
-
"name": "
|
|
560
|
+
"name": "_e",
|
|
520
561
|
"module": "dist/primer-loader.js"
|
|
521
562
|
}
|
|
522
563
|
},
|
|
@@ -524,7 +565,7 @@
|
|
|
524
565
|
"kind": "js",
|
|
525
566
|
"name": "PaymentMethodContentComponent",
|
|
526
567
|
"declaration": {
|
|
527
|
-
"name": "
|
|
568
|
+
"name": "ze",
|
|
528
569
|
"module": "dist/primer-loader.js"
|
|
529
570
|
}
|
|
530
571
|
},
|
|
@@ -532,13 +573,13 @@
|
|
|
532
573
|
"kind": "js",
|
|
533
574
|
"name": "Portal",
|
|
534
575
|
"declaration": {
|
|
535
|
-
"name": "
|
|
576
|
+
"name": "ut",
|
|
536
577
|
"module": "dist/primer-loader.js"
|
|
537
578
|
}
|
|
538
579
|
},
|
|
539
580
|
{
|
|
540
581
|
"kind": "js",
|
|
541
|
-
"name": "
|
|
582
|
+
"name": "PortalDialog",
|
|
542
583
|
"declaration": {
|
|
543
584
|
"name": "se",
|
|
544
585
|
"module": "dist/primer-loader.js"
|
|
@@ -548,7 +589,7 @@
|
|
|
548
589
|
"kind": "js",
|
|
549
590
|
"name": "PrimerCheckoutComplete",
|
|
550
591
|
"declaration": {
|
|
551
|
-
"name": "
|
|
592
|
+
"name": "jt",
|
|
552
593
|
"module": "dist/primer-loader.js"
|
|
553
594
|
}
|
|
554
595
|
},
|
|
@@ -556,7 +597,7 @@
|
|
|
556
597
|
"kind": "js",
|
|
557
598
|
"name": "PrimerCheckoutComponent",
|
|
558
599
|
"declaration": {
|
|
559
|
-
"name": "
|
|
600
|
+
"name": "be",
|
|
560
601
|
"module": "dist/primer-loader.js"
|
|
561
602
|
}
|
|
562
603
|
},
|
|
@@ -564,7 +605,7 @@
|
|
|
564
605
|
"kind": "js",
|
|
565
606
|
"name": "PrimerCheckoutFailure",
|
|
566
607
|
"declaration": {
|
|
567
|
-
"name": "
|
|
608
|
+
"name": "Nt",
|
|
568
609
|
"module": "dist/primer-loader.js"
|
|
569
610
|
}
|
|
570
611
|
},
|
|
@@ -572,7 +613,7 @@
|
|
|
572
613
|
"kind": "js",
|
|
573
614
|
"name": "PrimerCheckoutState",
|
|
574
615
|
"declaration": {
|
|
575
|
-
"name": "
|
|
616
|
+
"name": "Ze",
|
|
576
617
|
"module": "dist/primer-loader.js"
|
|
577
618
|
}
|
|
578
619
|
},
|
|
@@ -580,7 +621,7 @@
|
|
|
580
621
|
"kind": "js",
|
|
581
622
|
"name": "PrimerIcon",
|
|
582
623
|
"declaration": {
|
|
583
|
-
"name": "
|
|
624
|
+
"name": "Ve",
|
|
584
625
|
"module": "dist/primer-loader.js"
|
|
585
626
|
}
|
|
586
627
|
},
|
|
@@ -588,7 +629,7 @@
|
|
|
588
629
|
"kind": "js",
|
|
589
630
|
"name": "PrimerKlarna",
|
|
590
631
|
"declaration": {
|
|
591
|
-
"name": "
|
|
632
|
+
"name": "ie",
|
|
592
633
|
"module": "dist/primer-loader.js"
|
|
593
634
|
}
|
|
594
635
|
},
|
|
@@ -596,7 +637,7 @@
|
|
|
596
637
|
"kind": "js",
|
|
597
638
|
"name": "PrimerMain",
|
|
598
639
|
"declaration": {
|
|
599
|
-
"name": "
|
|
640
|
+
"name": "Ke",
|
|
600
641
|
"module": "dist/primer-loader.js"
|
|
601
642
|
}
|
|
602
643
|
},
|
|
@@ -604,7 +645,7 @@
|
|
|
604
645
|
"kind": "js",
|
|
605
646
|
"name": "RedirectPayment",
|
|
606
647
|
"declaration": {
|
|
607
|
-
"name": "
|
|
648
|
+
"name": "we",
|
|
608
649
|
"module": "dist/primer-loader.js"
|
|
609
650
|
}
|
|
610
651
|
},
|
|
@@ -620,7 +661,7 @@
|
|
|
620
661
|
"kind": "js",
|
|
621
662
|
"name": "ShowOtherPayments",
|
|
622
663
|
"declaration": {
|
|
623
|
-
"name": "
|
|
664
|
+
"name": "vt",
|
|
624
665
|
"module": "dist/primer-loader.js"
|
|
625
666
|
}
|
|
626
667
|
},
|
|
@@ -628,7 +669,7 @@
|
|
|
628
669
|
"kind": "js",
|
|
629
670
|
"name": "Spinner",
|
|
630
671
|
"declaration": {
|
|
631
|
-
"name": "
|
|
672
|
+
"name": "De",
|
|
632
673
|
"module": "dist/primer-loader.js"
|
|
633
674
|
}
|
|
634
675
|
},
|
|
@@ -636,7 +677,7 @@
|
|
|
636
677
|
"kind": "js",
|
|
637
678
|
"name": "VaultCvvInput",
|
|
638
679
|
"declaration": {
|
|
639
|
-
"name": "
|
|
680
|
+
"name": "G",
|
|
640
681
|
"module": "dist/primer-loader.js"
|
|
641
682
|
}
|
|
642
683
|
},
|
|
@@ -644,7 +685,7 @@
|
|
|
644
685
|
"kind": "js",
|
|
645
686
|
"name": "VaultDeleteConfirmation",
|
|
646
687
|
"declaration": {
|
|
647
|
-
"name": "
|
|
688
|
+
"name": "Ee",
|
|
648
689
|
"module": "dist/primer-loader.js"
|
|
649
690
|
}
|
|
650
691
|
},
|
|
@@ -652,7 +693,7 @@
|
|
|
652
693
|
"kind": "js",
|
|
653
694
|
"name": "VaultEmptyState",
|
|
654
695
|
"declaration": {
|
|
655
|
-
"name": "
|
|
696
|
+
"name": "Xe",
|
|
656
697
|
"module": "dist/primer-loader.js"
|
|
657
698
|
}
|
|
658
699
|
},
|
|
@@ -660,7 +701,7 @@
|
|
|
660
701
|
"kind": "js",
|
|
661
702
|
"name": "VaultErrorMessage",
|
|
662
703
|
"declaration": {
|
|
663
|
-
"name": "
|
|
704
|
+
"name": "Fe",
|
|
664
705
|
"module": "dist/primer-loader.js"
|
|
665
706
|
}
|
|
666
707
|
},
|
|
@@ -668,7 +709,7 @@
|
|
|
668
709
|
"kind": "js",
|
|
669
710
|
"name": "VaultManager",
|
|
670
711
|
"declaration": {
|
|
671
|
-
"name": "
|
|
712
|
+
"name": "ae",
|
|
672
713
|
"module": "dist/primer-loader.js"
|
|
673
714
|
}
|
|
674
715
|
},
|
|
@@ -676,7 +717,7 @@
|
|
|
676
717
|
"kind": "js",
|
|
677
718
|
"name": "VaultManagerHeader",
|
|
678
719
|
"declaration": {
|
|
679
|
-
"name": "
|
|
720
|
+
"name": "ke",
|
|
680
721
|
"module": "dist/primer-loader.js"
|
|
681
722
|
}
|
|
682
723
|
},
|
|
@@ -684,7 +725,7 @@
|
|
|
684
725
|
"kind": "js",
|
|
685
726
|
"name": "VaultPaymentMethodItem",
|
|
686
727
|
"declaration": {
|
|
687
|
-
"name": "
|
|
728
|
+
"name": "ye",
|
|
688
729
|
"module": "dist/primer-loader.js"
|
|
689
730
|
}
|
|
690
731
|
},
|
|
@@ -692,7 +733,7 @@
|
|
|
692
733
|
"kind": "js",
|
|
693
734
|
"name": "VaultPaymentSubmit",
|
|
694
735
|
"declaration": {
|
|
695
|
-
"name": "
|
|
736
|
+
"name": "Q",
|
|
696
737
|
"module": "dist/primer-loader.js"
|
|
697
738
|
}
|
|
698
739
|
},
|
|
@@ -700,7 +741,7 @@
|
|
|
700
741
|
"kind": "js",
|
|
701
742
|
"name": "injectDarkTheme",
|
|
702
743
|
"declaration": {
|
|
703
|
-
"name": "
|
|
744
|
+
"name": "ic",
|
|
704
745
|
"module": "dist/primer-loader.js"
|
|
705
746
|
}
|
|
706
747
|
},
|
|
@@ -708,7 +749,7 @@
|
|
|
708
749
|
"kind": "js",
|
|
709
750
|
"name": "injectLightTheme",
|
|
710
751
|
"declaration": {
|
|
711
|
-
"name": "
|
|
752
|
+
"name": "rc",
|
|
712
753
|
"module": "dist/primer-loader.js"
|
|
713
754
|
}
|
|
714
755
|
},
|
|
@@ -716,7 +757,7 @@
|
|
|
716
757
|
"kind": "js",
|
|
717
758
|
"name": "injectLoaderStyles",
|
|
718
759
|
"declaration": {
|
|
719
|
-
"name": "
|
|
760
|
+
"name": "kn",
|
|
720
761
|
"module": "dist/primer-loader.js"
|
|
721
762
|
}
|
|
722
763
|
},
|
|
@@ -724,7 +765,7 @@
|
|
|
724
765
|
"kind": "js",
|
|
725
766
|
"name": "injectThemeStyles",
|
|
726
767
|
"declaration": {
|
|
727
|
-
"name": "
|
|
768
|
+
"name": "In",
|
|
728
769
|
"module": "dist/primer-loader.js"
|
|
729
770
|
}
|
|
730
771
|
},
|
|
@@ -732,40 +773,12 @@
|
|
|
732
773
|
"kind": "js",
|
|
733
774
|
"name": "loadPrimer",
|
|
734
775
|
"declaration": {
|
|
735
|
-
"name": "
|
|
776
|
+
"name": "pk",
|
|
736
777
|
"module": "dist/primer-loader.js"
|
|
737
778
|
}
|
|
738
779
|
}
|
|
739
780
|
]
|
|
740
781
|
},
|
|
741
|
-
{
|
|
742
|
-
"kind": "javascript-module",
|
|
743
|
-
"path": "e2e/utils.ts",
|
|
744
|
-
"declarations": [
|
|
745
|
-
{
|
|
746
|
-
"kind": "variable",
|
|
747
|
-
"name": "test"
|
|
748
|
-
}
|
|
749
|
-
],
|
|
750
|
-
"exports": [
|
|
751
|
-
{
|
|
752
|
-
"kind": "js",
|
|
753
|
-
"name": "expect",
|
|
754
|
-
"declaration": {
|
|
755
|
-
"name": "expect",
|
|
756
|
-
"package": "@chromatic-com/playwright"
|
|
757
|
-
}
|
|
758
|
-
},
|
|
759
|
-
{
|
|
760
|
-
"kind": "js",
|
|
761
|
-
"name": "test",
|
|
762
|
-
"declaration": {
|
|
763
|
-
"name": "test",
|
|
764
|
-
"module": "e2e/utils.ts"
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
]
|
|
768
|
-
},
|
|
769
782
|
{
|
|
770
783
|
"kind": "javascript-module",
|
|
771
784
|
"path": "src/consts.ts",
|
|
@@ -824,7 +837,7 @@
|
|
|
824
837
|
"name": "*",
|
|
825
838
|
"declaration": {
|
|
826
839
|
"name": "*",
|
|
827
|
-
"
|
|
840
|
+
"module": "src/contexts/types"
|
|
828
841
|
}
|
|
829
842
|
},
|
|
830
843
|
{
|
|
@@ -832,7 +845,7 @@
|
|
|
832
845
|
"name": "*",
|
|
833
846
|
"declaration": {
|
|
834
847
|
"name": "*",
|
|
835
|
-
"
|
|
848
|
+
"module": "src/contexts/payments-objects"
|
|
836
849
|
}
|
|
837
850
|
},
|
|
838
851
|
{
|
|
@@ -840,7 +853,7 @@
|
|
|
840
853
|
"name": "*",
|
|
841
854
|
"declaration": {
|
|
842
855
|
"name": "*",
|
|
843
|
-
"
|
|
856
|
+
"module": "src/atoms"
|
|
844
857
|
}
|
|
845
858
|
},
|
|
846
859
|
{
|
|
@@ -848,7 +861,7 @@
|
|
|
848
861
|
"name": "*",
|
|
849
862
|
"declaration": {
|
|
850
863
|
"name": "*",
|
|
851
|
-
"
|
|
864
|
+
"module": "src/containers"
|
|
852
865
|
}
|
|
853
866
|
},
|
|
854
867
|
{
|
|
@@ -1530,115 +1543,65 @@
|
|
|
1530
1543
|
},
|
|
1531
1544
|
{
|
|
1532
1545
|
"kind": "javascript-module",
|
|
1533
|
-
"path": "
|
|
1546
|
+
"path": "e2e/mocks/billing-address.ts",
|
|
1534
1547
|
"declarations": [
|
|
1535
1548
|
{
|
|
1536
1549
|
"kind": "variable",
|
|
1537
|
-
"name": "
|
|
1538
|
-
"
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
"kind": "js",
|
|
1544
|
-
"name": "templates",
|
|
1545
|
-
"declaration": {
|
|
1546
|
-
"name": "o",
|
|
1547
|
-
"module": "dist/chunks/ar.KRXB3WQO.js"
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1550
|
-
]
|
|
1551
|
-
},
|
|
1552
|
-
{
|
|
1553
|
-
"kind": "javascript-module",
|
|
1554
|
-
"path": "dist/chunks/bg.6SKJRXIR.js",
|
|
1555
|
-
"declarations": [
|
|
1550
|
+
"name": "settings",
|
|
1551
|
+
"type": {
|
|
1552
|
+
"text": "string"
|
|
1553
|
+
},
|
|
1554
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJDdXN0b21lcjEyMyIsIm9yZGVySWQiOiIxMjU3NyIsImFtb3VudCI6MTA1MCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsiZXhwcmVzc0NoZWNrb3V0IjoidHJ1ZSJ9LCJvcmRlciI6eyJzaGlwcGluZyI6eyJhbW91bnQiOjUwLCJtZXRob2RJZCI6IlJlZ3VsYXIiLCJtZXRob2ROYW1lIjoiUmVndWxhciA1MCIsIm1ldGhvZERlc2NyaXB0aW9uIjoiUmVndWxhciJ9LCJjb3VudHJ5Q29kZSI6IkZSIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjk1MCwicXVhbnRpdHkiOjF9LHsiaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ibHVlIiwiZGVzY3JpcHRpb24iOiJQcmltZXIgQmx1ZSIsImFtb3VudCI6NTAsInF1YW50aXR5IjoxfV19LCJjdXN0b21lciI6eyJiaWxsaW5nQWRkcmVzcyI6eyJmaXJzdE5hbWUiOiJ0ZXN0dCIsImxhc3ROYW1lIjoidGVzdCIsInBvc3RhbENvZGUiOiI1MTY2MiIsImFkZHJlc3NMaW5lMSI6ImFrc2psa2FqbCIsImFkZHJlc3NMaW5lMiI6ImpmamthaGsiLCJjb3VudHJ5Q29kZSI6IlBMIiwiY2l0eSI6Indyb2NsYXciLCJzdGF0ZSI6InRlc3QifSwic2hpcHBpbmdBZGRyZXNzIjp7fSwibmF0aW9uYWxEb2N1bWVudElkIjoiOTAxMTIxMTIzNDU2NyJ9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsInZhdWx0T25BZ3JlZW1lbnQiOmZhbHNlLCJvcmRlcmVkQWxsb3dlZENhcmROZXR3b3JrcyI6WyJWSVNBIiwiTUFTVEVSQ0FSRCIsIkFNRVgiLCJNQUVTVFJPIiwiVU5JT05QQVkiLCJDQVJURVNfQkFOQ0FJUkVTIiwiREFOS09SVCIsIkRJTkVSU19DTFVCIiwiRElTQ09WRVIiLCJFTlJPVVRFIiwiRUxPIiwiSElQRVIiLCJJTlRFUkFDIiwiSkNCIiwiTUlSIiwiT1RIRVIiXX19LCJjbGllbnRPcHRpb25zIjp7ImxvY2FsZSI6ImVuIiwiYXBpVmVyc2lvbiI6IjIuNCIsInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwidmF1bHQiOnsidmlzaWJsZSI6ZmFsc2V9LCJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiZXlKMGVYQWlPaUpLVjFRaUxDSmhiR2NpT2lKSVV6STFOaUo5LmV5SnpkV0lpT2lJM05XUmpOekF4TWkwM09EVmpMVFEwTTJFdE9EQmlNUzB3WlRGbU9EaG1aRFJtWVdRaUxDSnBZWFFpT2pFM05UazBPRGd4TkRJc0ltdHBaQ0k2SW5ZeElpd2lhblJwSWpvaVlXWXhZemcxWW1VdE16UmhOaTAwWWpGakxUa3pObVl0WWpnME5tVXlOV1k1TnpFeEluMC5CaElodFpBcGotdWJJckJ3bW1zR1U4dGlCdWNEMU93WFpySmcxdXRRRzZjIiwiYXBpVmVyc2lvbiI6IjIuNCIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6eyJsb2NhbGUiOiJmci1GUiIsInN0cmlwZSI6eyJwdWJsaXNoYWJsZUtleSI6InBrX3Rlc3RfNTFPOHpmUUtVSzZiWElkQzJ4UHZTUzZVdnJpRTlrd3B2dHR3QjdIOVBBemhOQVpvR3pMZ2lET3lkNFdvb296ZVdIeG9ScktvNmIyVmpaWXhOQ01YM1c3YmswMHJNRGl2amF1In0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsic2RrQ29yZSI6dHJ1ZX19'"
|
|
1555
|
+
},
|
|
1556
1556
|
{
|
|
1557
1557
|
"kind": "variable",
|
|
1558
|
-
"name": "
|
|
1559
|
-
"
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
"kind": "js",
|
|
1565
|
-
"name": "templates",
|
|
1566
|
-
"declaration": {
|
|
1567
|
-
"name": "o",
|
|
1568
|
-
"module": "dist/chunks/bg.6SKJRXIR.js"
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
]
|
|
1572
|
-
},
|
|
1573
|
-
{
|
|
1574
|
-
"kind": "javascript-module",
|
|
1575
|
-
"path": "dist/chunks/ca.SANDLFEK.js",
|
|
1576
|
-
"declarations": [
|
|
1558
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1559
|
+
"type": {
|
|
1560
|
+
"text": "object"
|
|
1561
|
+
},
|
|
1562
|
+
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'BILLING_ADDRESS', options: { firstName: false, lastName: false, city: true, countryCode: true, postalCode: true, addressLine1: true, addressLine2: true, state: false, }, }, ], clientSession: { clientSessionId: '0ad5b471-5b80-436b-ad03-57850585e3fd', order: { orderId: '12577', currencyCode: 'EUR', countryCode: 'FR', totalOrderAmount: 1050, merchantAmount: 1050, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 950, quantity: 1, }, { itemId: 'primer-hoodie-blue', description: 'Primer Blue', amount: 50, quantity: 1, }, ], shipping: { amount: 50, methodId: 'Regular', methodName: 'Regular 50', methodDescription: 'Regular', }, }, customer: { customerId: 'Customer123', billingAddress: { firstName: 'testt', lastName: 'test', postalCode: '51662', addressLine1: 'aksjlkajl', addressLine2: 'jfjkahk', countryCode: 'PL', city: 'wroclaw', state: 'test', }, shippingAddress: {}, nationalDocumentId: '9011211234567', }, paymentMethod: { vaultOnSuccess: false, orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '75dc7012-785c-443a-80b1-0e1f88fd4fad', env: 'SANDBOX', paymentMethods: [ { id: '42e32c6e-7faa-4f5a-97d0-9c4f7b848ae1', type: 'APPLE_PAY', options: { merchantId: '75dc7012785c443a80b10e1f88fd4fad', merchantName: 'Primer', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
1563
|
+
},
|
|
1577
1564
|
{
|
|
1578
1565
|
"kind": "variable",
|
|
1579
|
-
"name": "
|
|
1580
|
-
"
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
"kind": "js",
|
|
1586
|
-
"name": "templates",
|
|
1587
|
-
"declaration": {
|
|
1588
|
-
"name": "i",
|
|
1589
|
-
"module": "dist/chunks/ca.SANDLFEK.js"
|
|
1590
|
-
}
|
|
1591
|
-
}
|
|
1592
|
-
]
|
|
1593
|
-
},
|
|
1594
|
-
{
|
|
1595
|
-
"kind": "javascript-module",
|
|
1596
|
-
"path": "dist/chunks/chunk.DV3REKZU.js",
|
|
1597
|
-
"declarations": [
|
|
1566
|
+
"name": "CARD_NUMBER",
|
|
1567
|
+
"type": {
|
|
1568
|
+
"text": "string"
|
|
1569
|
+
},
|
|
1570
|
+
"default": "'4242 4242 4242 4242'"
|
|
1571
|
+
},
|
|
1598
1572
|
{
|
|
1599
1573
|
"kind": "function",
|
|
1600
|
-
"name": "
|
|
1574
|
+
"name": "mockBinData",
|
|
1601
1575
|
"parameters": [
|
|
1602
1576
|
{
|
|
1603
|
-
"name": "
|
|
1577
|
+
"name": "page",
|
|
1578
|
+
"type": {
|
|
1579
|
+
"text": "Page"
|
|
1580
|
+
}
|
|
1604
1581
|
}
|
|
1605
1582
|
]
|
|
1606
1583
|
},
|
|
1607
|
-
{
|
|
1608
|
-
"kind": "variable",
|
|
1609
|
-
"name": "b",
|
|
1610
|
-
"default": "c[a]"
|
|
1611
|
-
},
|
|
1612
1584
|
{
|
|
1613
1585
|
"kind": "function",
|
|
1614
|
-
"name": "
|
|
1586
|
+
"name": "mockPaymentInstruments",
|
|
1615
1587
|
"parameters": [
|
|
1616
1588
|
{
|
|
1617
|
-
"name": "
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
},
|
|
1622
|
-
{
|
|
1623
|
-
"name": "b"
|
|
1624
|
-
},
|
|
1625
|
-
{
|
|
1626
|
-
"name": "e"
|
|
1589
|
+
"name": "page",
|
|
1590
|
+
"type": {
|
|
1591
|
+
"text": "Page"
|
|
1592
|
+
}
|
|
1627
1593
|
}
|
|
1628
1594
|
]
|
|
1629
1595
|
},
|
|
1630
1596
|
{
|
|
1631
1597
|
"kind": "function",
|
|
1632
|
-
"name": "
|
|
1598
|
+
"name": "mockPayments",
|
|
1633
1599
|
"parameters": [
|
|
1634
1600
|
{
|
|
1635
|
-
"name": "
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
},
|
|
1640
|
-
{
|
|
1641
|
-
"name": "b"
|
|
1601
|
+
"name": "page",
|
|
1602
|
+
"type": {
|
|
1603
|
+
"text": "Page"
|
|
1604
|
+
}
|
|
1642
1605
|
}
|
|
1643
1606
|
]
|
|
1644
1607
|
}
|
|
@@ -1646,524 +1609,590 @@
|
|
|
1646
1609
|
"exports": [
|
|
1647
1610
|
{
|
|
1648
1611
|
"kind": "js",
|
|
1649
|
-
"name": "
|
|
1612
|
+
"name": "settings",
|
|
1650
1613
|
"declaration": {
|
|
1651
|
-
"name": "
|
|
1652
|
-
"module": "
|
|
1614
|
+
"name": "settings",
|
|
1615
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
1653
1616
|
}
|
|
1654
1617
|
},
|
|
1655
1618
|
{
|
|
1656
1619
|
"kind": "js",
|
|
1657
|
-
"name": "
|
|
1620
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1658
1621
|
"declaration": {
|
|
1659
|
-
"name": "
|
|
1660
|
-
"module": "
|
|
1622
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1623
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
1661
1624
|
}
|
|
1662
1625
|
},
|
|
1663
1626
|
{
|
|
1664
1627
|
"kind": "js",
|
|
1665
|
-
"name": "
|
|
1628
|
+
"name": "CARD_NUMBER",
|
|
1666
1629
|
"declaration": {
|
|
1667
|
-
"name": "
|
|
1668
|
-
"module": "
|
|
1630
|
+
"name": "CARD_NUMBER",
|
|
1631
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
1669
1632
|
}
|
|
1670
|
-
}
|
|
1671
|
-
]
|
|
1672
|
-
},
|
|
1673
|
-
{
|
|
1674
|
-
"kind": "javascript-module",
|
|
1675
|
-
"path": "dist/chunks/chunk.QMLIEEKM.js",
|
|
1676
|
-
"declarations": [
|
|
1677
|
-
{
|
|
1678
|
-
"kind": "variable",
|
|
1679
|
-
"name": "t",
|
|
1680
|
-
"type": {
|
|
1681
|
-
"text": "object"
|
|
1682
|
-
},
|
|
1683
|
-
"default": "{accountHolder:\"Account Holder\",accountHolderEmail:\"me@domain.com\",accountHolderEmailErrorInvalid:\"Provided email is not valid\",accountHolderEmailErrorRequired:\"Account holder email is required\",accountHolderName:\"Account holder name\",accountHolderNameErrorRequired:\"Account holder name is required\",accountHolderNameLabel:\"Account holder name\",accountHolderNamePlaceholder:\"Account holder name\",addCard:\"Add Card\",additionalCardFees:\"Additional card fees may apply\",address:\"Address\",addressLine1:\"Address line 1\",addressLine1ErrorRequired:\"Address line 1 is required\",addressLine1Placeholder:\"Address line 1\",addressLine2:\"Address line 2\",addressLine2ErrorRequired:\"Address line 2 is required\",addressLine2Placeholder:\"Address line 2\",amount:\"Amount\",applePayFailedToTokenize:\"Failed to tokenize\",applePayMissingFirstNameOrLastName:\"Missing first name or last name\",bankHolderNameErrorRequired:\"Account holder name is required\",bankListErrorRequired:\"Bank is required\",bankListLabel:\"List of banks\",bankNameErrorRequired:\"Bank name is required\",bankNameLabel:\"Select your bank from the list\",bankNetworkErrorButton:\"Load again\",bankNetworkErrorTitle:\"Failed to load banks. Check your connection and try again.\",bankSearchInputPlaceholder:\"Search bank\",bankSelectTitle:\"Select your bank\",billingAddressLabel:\"Billing address\",cancel:\"Cancel\",cardCVV:\"CVV\",cardDescription:\"Card description (optional)\",cardDescriptionPlaceholder:\"My favourite card\",cardEndingWith:\"Card ending with\",cardExpired:\"Card has expired\",cardExpiry:\"Expiry (MM/YY)\",cardExpiryPlaceholder:\"MM/YY\",cardholderName:\"Name on card\",cardholderNameErrorRequired:\"Name on card is required\",cardholderNameLabel:\"Name on card\",cardholderNamePlaceholder:\"Full name\",cardIncomplete:\"Card number is incomplete\",cardInvalid:\"Card number is invalid\",cardNameContainsNumbers:\"Name cannot contain numbers\",cardNameLength:\"Name must have between 2 and 45 characters\",cardNameRequired:\"Name on card is required\",cardNumber:\"Card number\",cardRequired:\"Card number is required\",checkSuccessTitle:\"Your payment was successful!\",checkoutWith:\"Checkout with\",chooseAnotherPaymentMethod:\"Choose another payment method\",city:\"City\",cityErrorRequired:\"City is required\",cityLabel:\"City\",cityPlaceholder:\"Cape Town\",completeYourPayment:\"Complete your payment\",completeYourPaymentInTheApp:\"Complete your payment in %s\",confirm:\"Confirm\",confirmCardDeletion:\"Confirm - Delete Card\",confirmPayPalDeletion:\"Confirm - Delete PayPal\",confirmVaultedPaymentMethodDeletion:\"Yes, delete it\",countryCodeErrorRequired:\"Country is required\",countryCodeLabel:\"Country code\",countryCodePlaceholder:\"Country code\",countrySelectPlaceholder:\"Select a country\",creditOrDebitCard:\"Credit or debit card\",creditTransfer:\"Credit Transfer\",cvvIncomplete:\"CVV number is incomplete\",cvvInvalid3:\"CVV must be 3 digits\",cvvInvalid4:\"CVV must be 4 digits\",cvvRequired:\"CVV number is required\",delete:\"Delete\",digits:\"digits\",directDebit:\"Direct debit\",directDebitMandateTitle:\"SEPA Core Direct Debit Mandate\",directDebitSmallPrint:\"By signing this mandate form, you authorise (A) {companyName} to send instructions to your bank to debit your account and (B) your bank to debit your account in accordance with the instruction from {companyName}\",directDebitSuccessDescription:\"{companyName} will appear on your bank statement when payments are taken against the Direct Debit\",directDebitSuccessReference:\"Reference\",directDebitSuccessTitle:\"Direct Debit set up successfully\",dueAt:\"Due at\",dummyApmDescription:\"This is a mocked flow for sandbox. Choose the result you want to test from the list below:\",duplicatePaymentMethodError:\"This payment method is already saved.\",editPaymentMethods:\"Edit saved payment methods\",email:\"Email\",entity:\"Entity\",expiresAt:\"Expires at\",expiryIncomplete:\"Expiry date is incomplete\",expiryInvalid:\"Expiry date is invalid\",expiryMonthInvalid:\"Expiry date month is invalid\",expiryRequired:\"Expiry date is required\",expiryYearInvalid:\"Expiry date year is invalid\",fee_label_fallback:\"Fee\",firstNameErrorRequired:\"First name is required\",firstNameLabel:\"First name\",firstNamePlaceholder:\"First name\",forgetPaymentMethods:\"Forget payment methods\",forgetPayPal:\"Forget PayPal account\",forgetSavedCard:\"Forget saved card ending in {last4Digits}\",fullName:\"First and last name\",getCodeFromBankingApp:\"Get the code from your banking app\",giftCard:\"Gift card\",iban:\"IBAN\",ibanErrorInvalid:\"IBAN is invalid\",ibanErrorRequired:\"IBAN is required\",ibanPlaceholder:\"e.g. GB60 BARC 2000 0055 7799 11\",invalid:\"Invalid\",item_label_fallback:\"Item\",lastNameErrorRequired:\"Last name is required\",lastNameLabel:\"Last name\",lastNamePlaceholder:\"Last name\",loading:\"Loading...\",managePaymentMethods:\"Manage your payment methods\",multibancoFirstStep:\"Payment details for a Multibanco Reference will be created.\",multibancoPayWith:\"Pay with Multibanco\",multibancoPleaseMakePayment:\"Please make the payment at a Multibanco ATM, or through your home banking app.\",multibancoSecondStep:\"Go to a Multibanco ATM or login to your home banking app, then select \\u201CPay for Services\\u201D.\",multibancoThirdStep:\"Enter the Entity, Reference and Amount.\",navigateToPaymentMethods:\"Show other ways to pay\",newPaymentMethod:\"Add a new payment method\",noAdditionalFees:\"No additional fees\",otherWaysToPay:\"Other ways to pay\",pay_with_ach:\"Pay with ACH\",pay_with:\"Pay with\",pay:\"Pay\",payByCard:\"Pay by card\",payByImmediateTransfer:\"Pay by Immediate transfer\",payBySmartTransfer:\"Pay by Bank transfer\",payInInstallments:\"Pay in installments\",paymentMethodPopupLoadingScreenText:\"Hold on! {paymentMethodName} is loading.\",paymentMethodPopupOverlayBringBackThePaymentPage:\"Bring back the payment page\",paymentMethodPopupOverlayClose:\"Close\",paymentMethodPopupOverlayDescription:\"Having trouble viewing the {paymentMethodName} payment page? We'll help you find it!\",paymentMethodPopupOverlayNonFocusDescription:\"Open the {paymentMethodName} payment page to review your payment.\",paymentMethodTypeKlarna:\"Pay later\",paymentMethodTypeKlarnaAccount:\"Pay over time\",paymentMethodTypeKlarnaPaynow:\"Pay now\",payViaBankTransfer:\"Pay via bank transfer\",payWithAch:\"Pay with ACH\",payWithCard:\"Or pay with card\",payWithCrypto:\"Pay with crypto\",pleaseTransferFunds:\"Please Transfer funds to the provided DBS bank account using your Singapore based bank account via FAST (preferred), MEPS or GIRO.\",postalCode:\"Postal code\",postalCodeErrorRequired:\"Postal code is required\",postalCodeLabel:\"Postal code\",postalCodePlaceholder:\"90210\",previouslyUsed:\"Previously used:\",qrCode:\"QR Code\",reference:\"Reference\",required:\"Required\",retry_button:\"Retry\",savedPaymentMethodsEmpty:\"Enter your card details below to add a new payment method\",savePaymentMethod:\"Save payment method\",scanToPay:\"Scan to pay or take a screenshot\",sepaCreditTransfer:\"SEPA Credit Transfer\",sepaDirectDebit:\"SEPA Direct Debit\",session_complete_payment_cancellation_title:\"Payment cancelled\",session_complete_payment_failure_title:\"Payment failed\",session_complete_payment_success_title:\"Payment authorized\",setUpDirectDebit:\"Set up Direct Debit\",shipping_address_unsupported_error:\"We do not ship to this address\",shipping:\"Shipping\",showPaymentDetails:\"Show payment details\",sixDigitCodeErrorNumeric:\"Six digit code should only contain numbers\",sixDigitCodeErrorRequired:\"Six digit code is required\",sixDigitCodeErrorTooShort:\"Code is too short\",sixDigitCodeLabel:\"Six digit code\",sixDigitCodePlaceholder:\"123456\",something_went_wrong_error:\"Something went wrong. Please try again.\",stateErrorRequired:\"State, Region or County is required\",stateLabel:\"State / Region / County\",statePlaceholder:\"State / Region / County\",street:\"Street\",streetPlaceholder:\"My street\",stripe_ach_mandate_accept_button:\"Accept\",stripe_ach_mandate_cancel_payment_button:\"Cancel payment\",stripe_ach_mandate_not_accepted_description:\"Mandate was not accepted\",stripe_ach_mandate_template_web:`By clicking Accept, you authorize {merchantName} to debit the selected bank account for any amount owed for charges arising from your use of {merchantName}\\u2019s services and/or purchase of products from {merchantName}, pursuant to {merchantName}\\u2019s website and terms, until this authorization is revoked. You may amend or cancel this authorization at any time by providing notice to {merchantName} with 30 (thirty) days notice. If you use {merchantName}\\u2019s services or purchase additional products periodically pursuant to {merchantName}\\u2019s terms, you authorize {merchantName} to debit your bank account periodically. Payments that fall outside the regular debits authorized above will only be debited after your authorization is obtained.`,stripe_ach_payment_request_cancelled:\"Please try again or select another bank\",stripe_ach_payment_request_completed_successfully:\"You have now authorized your bank account to be debited. You will be notified via email once the payment has been collected successfully.\",stripe_ach_user_details_collection_continue_button:\"Continue\",stripe_ach_user_details_collection_data_usage_label:\"We'll only use this to keep you updated about your payment\",stripe_ach_user_details_collection_email_address_label:\"Email address\",stripe_ach_user_details_collection_first_name_label:\"First name\",stripe_ach_user_details_collection_invalid_email_address:\"The email address you entered doesn't look like a real email address. Please make sure it includes an '@' and a domain (like '@example.com').\",stripe_ach_user_details_collection_invalid_first_name:\"Please enter a valid first name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_invalid_last_name:\"Please enter a valid last name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_last_name_label:\"Last name\",stripe_ach_user_details_collection_subtitle_label:\"Your personal details\",suburb:\"Suburb\",suburbPlaceholder:\"My suburb\",telephoneNumberErrorRequired:\"Phone number is required\",telephoneNumberErrorTooShort:\"Phone number is too short\",telephoneNumberLabel:\"Phone number\",telephoneNumberPlaceholder:\"123xxxxxx\",timeOnDate:\"{time} on {date}\",tokenizationError:\"Your payment could not be processed. Please try another payment method.\",unsupportedCardType:\"Unsupported card type\",uploadScreenshot:\"Upload the screenshot in your banking app\",yourBankDetails:\"Your bank details\"}"
|
|
1684
|
-
}
|
|
1685
|
-
],
|
|
1686
|
-
"exports": [
|
|
1633
|
+
},
|
|
1687
1634
|
{
|
|
1688
1635
|
"kind": "js",
|
|
1689
|
-
"name": "
|
|
1636
|
+
"name": "mockBinData",
|
|
1690
1637
|
"declaration": {
|
|
1691
|
-
"name": "
|
|
1692
|
-
"module": "
|
|
1638
|
+
"name": "mockBinData",
|
|
1639
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
1693
1640
|
}
|
|
1694
|
-
}
|
|
1695
|
-
]
|
|
1696
|
-
},
|
|
1697
|
-
{
|
|
1698
|
-
"kind": "javascript-module",
|
|
1699
|
-
"path": "dist/chunks/cs.FC4I5M3C.js",
|
|
1700
|
-
"declarations": [
|
|
1701
|
-
{
|
|
1702
|
-
"kind": "variable",
|
|
1703
|
-
"name": "n",
|
|
1704
|
-
"default": "e"
|
|
1705
|
-
}
|
|
1706
|
-
],
|
|
1707
|
-
"exports": [
|
|
1641
|
+
},
|
|
1708
1642
|
{
|
|
1709
1643
|
"kind": "js",
|
|
1710
|
-
"name": "
|
|
1644
|
+
"name": "mockPaymentInstruments",
|
|
1711
1645
|
"declaration": {
|
|
1712
|
-
"name": "
|
|
1713
|
-
"module": "
|
|
1646
|
+
"name": "mockPaymentInstruments",
|
|
1647
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
1714
1648
|
}
|
|
1715
|
-
}
|
|
1716
|
-
]
|
|
1717
|
-
},
|
|
1718
|
-
{
|
|
1719
|
-
"kind": "javascript-module",
|
|
1720
|
-
"path": "dist/chunks/da.YI32NZ7B.js",
|
|
1721
|
-
"declarations": [
|
|
1722
|
-
{
|
|
1723
|
-
"kind": "variable",
|
|
1724
|
-
"name": "a",
|
|
1725
|
-
"default": "e"
|
|
1726
|
-
}
|
|
1727
|
-
],
|
|
1728
|
-
"exports": [
|
|
1649
|
+
},
|
|
1729
1650
|
{
|
|
1730
1651
|
"kind": "js",
|
|
1731
|
-
"name": "
|
|
1652
|
+
"name": "mockPayments",
|
|
1732
1653
|
"declaration": {
|
|
1733
|
-
"name": "
|
|
1734
|
-
"module": "
|
|
1654
|
+
"name": "mockPayments",
|
|
1655
|
+
"module": "e2e/mocks/billing-address.ts"
|
|
1735
1656
|
}
|
|
1736
1657
|
}
|
|
1737
1658
|
]
|
|
1738
1659
|
},
|
|
1739
1660
|
{
|
|
1740
1661
|
"kind": "javascript-module",
|
|
1741
|
-
"path": "
|
|
1662
|
+
"path": "e2e/mocks/card-3ds.ts",
|
|
1742
1663
|
"declarations": [
|
|
1743
1664
|
{
|
|
1744
1665
|
"kind": "variable",
|
|
1745
|
-
"name": "
|
|
1746
|
-
"
|
|
1666
|
+
"name": "settings",
|
|
1667
|
+
"type": {
|
|
1668
|
+
"text": "string"
|
|
1669
|
+
},
|
|
1670
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI3NDUyNyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7InNka0NvcmUiOmZhbHNlfX0='"
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
"kind": "variable",
|
|
1674
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1675
|
+
"type": {
|
|
1676
|
+
"text": "object"
|
|
1677
|
+
},
|
|
1678
|
+
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'TAX_CALCULATION', requestUrl: '/sales-tax/calculate', }, { type: 'CARD_INFORMATION', }, ], clientSession: { clientSessionId: '0d5f31b6-5848-49ce-9625-3254d5dd8a78', order: { orderId: '74527', currencyCode: 'EUR', countryCode: 'DE', totalOrderAmount: 600, merchantAmount: 600, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 600, quantity: 1, }, ], fees: [ { type: 'SURCHARGE', amount: 0, }, ], }, customer: { customerId: 'Euler is the best', billingAddress: { firstName: 'Card', lastName: 'Holder Name', postalCode: '94043', addressLine1: '1600 Amphitheatre Parkway', countryCode: 'US', city: 'Mountain View', state: 'CA', }, }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '84100a01-523f-4347-ac44-e8a3e7083d9a', env: 'SANDBOX', paymentMethods: [ { id: 'e787b281-e4f9-4494-96e8-188917540654', type: 'ADYEN_IDEAL', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '4ad980f3-ccc7-5e8e-9a9c-81cd6f5214d4', }, processorConfigId: '9319ad4e-cd51-4517-9d46-bc7be244752a', implementationType: 'WEB_REDIRECT', name: 'iDeal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', }, backgroundColor: { colored: '#CC0066', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: 'e1b5e078-081c-4075-a3cc-5ebc779d36f2', type: 'KLARNA', options: { merchantId: 'Primer', merchantAccountId: 'b6902742-384a-5dfa-b1ff-7dcd02880dc3', clientId: 'Primer', }, processorConfigId: 'b70c2b11-e37f-41fe-9797-d3900f343a36', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4e9497d8-1503-4541-8ead-d88151ffa257', type: 'XFERS_PAYNOW', options: { merchantId: 'testi', merchantAccountId: '6fb12703-1795-55ac-875e-2e8476cb8390', }, processorConfigId: '545e5533-b575-4c61-aebe-dec49a836f1b', implementationType: 'NATIVE_SDK', name: 'Xfers', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-light@3x.png', }, backgroundColor: { colored: '#941C80', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#028BF4', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '9e407fb0-a2f8-4636-a5bc-f404ac757c68', type: 'PAYPAL', options: { merchantId: 'sb-iyjg882920702@business.example.com', merchantAccountId: 'e584f5c7-3c7f-5b58-b187-8e641b0cdce4', clientId: 'AXsZfsyf2jtpTpLQARwSeBurtfT6WiRjHQt1PodMf94gPH0iLwglSdSJ7ZAQT3tCHNZQL--VlrVfwscv', intent: 'authorize', }, processorConfigId: '573b0c98-d588-4223-973f-513a5b5a6177', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { id: 'c657ae04-c230-4be4-9615-9b822743e5e4', type: 'APPLE_PAY', options: { merchantId: '84100a01523f4347ac44e8a3e7083d9a', merchantName: 'DX QA Account', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { id: '527ee4ff-2c66-4234-829f-d20480f3aa09', type: 'GOOGLE_PAY', options: { merchantId: '06134396481468734566', merchantName: 'Primer', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
1747
1679
|
}
|
|
1748
1680
|
],
|
|
1749
1681
|
"exports": [
|
|
1750
1682
|
{
|
|
1751
1683
|
"kind": "js",
|
|
1752
|
-
"name": "
|
|
1684
|
+
"name": "settings",
|
|
1753
1685
|
"declaration": {
|
|
1754
|
-
"name": "
|
|
1755
|
-
"module": "
|
|
1686
|
+
"name": "settings",
|
|
1687
|
+
"module": "e2e/mocks/card-3ds.ts"
|
|
1756
1688
|
}
|
|
1757
|
-
}
|
|
1758
|
-
]
|
|
1759
|
-
},
|
|
1760
|
-
{
|
|
1761
|
-
"kind": "javascript-module",
|
|
1762
|
-
"path": "dist/chunks/el.XSGTYDZR.js",
|
|
1763
|
-
"declarations": [
|
|
1764
|
-
{
|
|
1765
|
-
"kind": "variable",
|
|
1766
|
-
"name": "o",
|
|
1767
|
-
"default": "e"
|
|
1768
|
-
}
|
|
1769
|
-
],
|
|
1770
|
-
"exports": [
|
|
1689
|
+
},
|
|
1771
1690
|
{
|
|
1772
1691
|
"kind": "js",
|
|
1773
|
-
"name": "
|
|
1692
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1774
1693
|
"declaration": {
|
|
1775
|
-
"name": "
|
|
1776
|
-
"module": "
|
|
1694
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1695
|
+
"module": "e2e/mocks/card-3ds.ts"
|
|
1777
1696
|
}
|
|
1778
1697
|
}
|
|
1779
1698
|
]
|
|
1780
1699
|
},
|
|
1781
1700
|
{
|
|
1782
1701
|
"kind": "javascript-module",
|
|
1783
|
-
"path": "
|
|
1702
|
+
"path": "e2e/mocks/card-basic.ts",
|
|
1784
1703
|
"declarations": [
|
|
1785
1704
|
{
|
|
1786
1705
|
"kind": "variable",
|
|
1787
|
-
"name": "
|
|
1788
|
-
"
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1706
|
+
"name": "settings",
|
|
1707
|
+
"type": {
|
|
1708
|
+
"text": "string"
|
|
1709
|
+
},
|
|
1710
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsic2RrQ29yZSI6ZmFsc2V9fQ=='"
|
|
1711
|
+
},
|
|
1792
1712
|
{
|
|
1793
|
-
"kind": "
|
|
1794
|
-
"name": "
|
|
1795
|
-
"
|
|
1796
|
-
"
|
|
1797
|
-
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
]
|
|
1801
|
-
},
|
|
1802
|
-
{
|
|
1803
|
-
"kind": "javascript-module",
|
|
1804
|
-
"path": "dist/chunks/en.MNFLVOE3.js",
|
|
1805
|
-
"declarations": [
|
|
1713
|
+
"kind": "variable",
|
|
1714
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1715
|
+
"type": {
|
|
1716
|
+
"text": "object"
|
|
1717
|
+
},
|
|
1718
|
+
"default": "{ coreUrl: 'https://api.staging.primer.io', pciUrl: 'https://sdk.api.staging.primer.io', binDataUrl: 'https://bin-data.api.staging.core.primer.io', assetsUrl: 'https://assets.staging.core.primer.io', checkoutModules: [ { type: 'CARD_INFORMATION', options: { cardHolderName: true, cardholderName: true, }, }, { type: 'TAX_CALCULATION', requestUrl: '/sales-tax/calculate', }, ], clientSession: { clientSessionId: '7430ecc6-a520-4353-bf03-030bb09ba4b7', order: { orderId: '34775', currencyCode: 'EUR', countryCode: 'GB', totalOrderAmount: 1000, merchantAmount: 1000, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 1000, quantity: 1, }, ], }, customer: { customerId: 'airwallex-customer-id-demo', }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: 'd634b2c6-17d8-4347-bac0-df642c2d6469', env: 'STAGING', paymentMethods: [ { id: 'd2862cfb-05a8-4304-9d80-6652450d19d7', type: 'AFTERPAY', options: { merchantId: 'wont-work', merchantAccountId: '04070052-bcd7-5d2f-92d0-70d1c9b30ce0', }, processorConfigId: '2805ab6e-6b0b-40e2-9d65-1e5c800a530e', implementationType: 'WEB_REDIRECT', name: 'Afterpay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/AFTERPAY/afterpay-cash-app-logo-dark@3x.png', dark: 'https://assets.staging.core.primer.io/AFTERPAY/afterpay-cash-app-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/AFTERPAY/afterpay-cash-app-logo-dark@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#000000', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#000000', dark: '#FFFFFF', light: '#000000', }, textColor: { dark: '#FFFFFF', light: '#FFFFFF', }, iconPositionRelativeToText: 'END', }, }, forceRedirect: false, implementation: {}, }, { id: 'f4105e92-bf54-4652-a7ac-63a2adf3a96d', type: 'ALMA', options: { merchantId: '9b7d77ef-4862-4900-902c-8ff623476826', merchantAccountId: 'e11ef8e1-10a8-542d-924d-ae0546a03d35', }, processorConfigId: '9b7d77ef-4862-4900-902c-8ff623476826', implementationType: 'WEB_REDIRECT', name: 'Alma', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/ALMA/alma-logo-dark@3x.png', dark: 'https://assets.staging.core.primer.io/ALMA/alma-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/ALMA/alma-logo@3x.png', }, backgroundColor: { colored: '#FA5022', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#FA5022', dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: '588df103-82e2-4888-bf49-63f0182e516e', type: 'BRAINTREE_VENMO', options: { merchantId: 'primer', merchantAccountId: '4dd30736-e360-5562-994a-b9de0dc2c2da', }, processorConfigId: '99b3dd12-2d18-48b4-a700-acd8f7943bcb', implementationType: 'WEB_REDIRECT', name: 'Venmo', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/VENMO/venmo-logo@3x.png', dark: 'https://assets.staging.core.primer.io/VENMO/venmo-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/VENMO/venmo-logo-light@3x.png', }, backgroundColor: { colored: '#008CFF', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4cc272a3-69eb-46b6-9938-cd672d7a7cbd', type: 'ADYEN_MULTIBANCO', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '2e2d6a59-730f-52da-8fa6-a3766f4fa1f0', }, processorConfigId: '254dd1d0-211a-4039-850f-a378dc3c3f5a', implementationType: 'NATIVE_SDK', name: 'Multibanco', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/MULTIBANCO/multibanco-logo@3x.png', dark: 'https://assets.staging.core.primer.io/MULTIBANCO/multibanco-logo@3x.png', light: 'https://assets.staging.core.primer.io/MULTIBANCO/multibanco-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: { headless: { supportedManagerCategories: ['RAW_DATA'], }, events: [ { eventType: 'ON_START', uiAction: { actionType: 'NAVIGATE', screenId: 'start_screen', }, }, { eventType: 'ON_REQUIRED_ACTION_RECEIVED', uiAction: { actionType: 'NAVIGATE', screenId: 'voucher_screen', }, }, { eventType: 'ON_ERROR', uiAction: { actionType: 'NAVIGATE', screenId: 'error_screen', }, }, ], screens: [ { screenId: 'start_screen', isBackButtonEnabled: true, isShareButtonEnabled: false, orientation: 'VERTICAL', components: [ { style: { margin: { top: 'S', }, textStyle: 'TITLE', }, }, {}, ], }, { screenId: 'voucher_screen', isBackButtonEnabled: true, isShareButtonEnabled: true, orientation: 'VERTICAL', components: [ { style: { margin: { top: 'S', }, textStyle: 'TITLE', }, }, { orientation: 'HORIZONTAL', components: [ { style: { margin: { top: 'S', }, alignmentInParent: 'RIGHT', textStyle: 'TITLE', }, }, { style: { margin: { top: 'S', }, alignmentInParent: 'LEFT', textStyle: 'TITLE', }, }, ], alignment: 'FILL', distribution: 'FILL', }, { orientation: 'HORIZONTAL', components: [ { style: { margin: { top: 'S', }, alignmentInParent: 'RIGHT', textStyle: 'TITLE', }, }, { style: { margin: { top: 'S', }, alignmentInParent: 'LEFT', textStyle: 'TITLE', }, }, {}, ], alignment: 'FILL', distribution: 'FILL', }, ], }, { screenId: 'error_screen', isBackButtonEnabled: false, isShareButtonEnabled: false, orientation: 'VERTICAL', components: [{}], }, ], }, }, { id: '642bb622-b133-4445-904e-0e844967d4bb', type: 'FINTECTURE_IMMEDIATE_TRANSFER', options: { merchantId: '15808a62-2ac5-458b-b1b6-0ca0bce2d690', merchantAccountId: '55bbc227-ddf7-57f9-a0e8-4ebde5505ce5', }, processorConfigId: '15808a62-2ac5-458b-b1b6-0ca0bce2d690', implementationType: 'WEB_REDIRECT', name: 'Fintecture Immediate Transfer', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/FINTECTURE/inverted@3x.png', light: 'https://assets.staging.core.primer.io/FINTECTURE/default@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by Immediate transfer', textColor: { dark: '#FFFFFF', light: '#000000', }, iconPositionRelativeToText: 'START', }, }, forceRedirect: true, implementation: {}, }, { id: '8f057fb9-2737-44f4-aca8-7021ca5689bc', type: 'APPLE_PAY', options: { merchantId: 'd634b2c617d84347bac0df642c2d6469', merchantName: 'Connections', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { id: '418673aa-954f-4f3e-89e9-d447574a1e14', type: 'SIPS_CPAY', options: { merchantId: '789b21f7-bd18-42f7-8ce8-a0d7320ec3ad', merchantAccountId: '946e95a0-63d0-5afd-9389-c4aea5a9b1fa', }, processorConfigId: '789b21f7-bd18-42f7-8ce8-a0d7320ec3ad', implementationType: 'WEB_REDIRECT', name: 'Cpay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/CPAY/cpay-logo@3x.png', dark: 'https://assets.staging.core.primer.io/CPAY/cpay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/CPAY/cpay-logo-light@3x.png', }, backgroundColor: { colored: '#FFFFFF', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, popup: { width: 830, height: 1000, }, }, forceRedirect: false, implementation: {}, }, { id: 'ba29b47f-bd66-46d6-a3e3-aa27c3b1d110', type: 'ADYEN_ALIPAY', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '2e2d6a59-730f-52da-8fa6-a3766f4fa1f0', }, processorConfigId: '254dd1d0-211a-4039-850f-a378dc3c3f5a', implementationType: 'WEB_REDIRECT', name: 'Alipay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/ALIPAY/alipay-logo@3x.png', dark: 'https://assets.staging.core.primer.io/ALIPAY/alipay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/ALIPAY/alipay-logo-light@3x.png', }, backgroundColor: { colored: '#31B1F0', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'd5b11ef6-c0da-4b85-9095-cc260ddeb009', type: 'ADYEN_VIPPS', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '2e2d6a59-730f-52da-8fa6-a3766f4fa1f0', }, processorConfigId: '254dd1d0-211a-4039-850f-a378dc3c3f5a', implementationType: 'WEB_REDIRECT', name: 'Vipps', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/VIPPS/vipps-logo@3x.png', dark: 'https://assets.staging.core.primer.io/VIPPS/vipps-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/VIPPS/vipps-logo-light@3x.png', }, backgroundColor: { colored: '#FF5B24', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'd180c74e-3616-4ada-b9ae-b9ad1c554efe', type: 'TRIPLE_A', options: { merchantId: '13eb240b-3da3-43a4-b8a8-1648d6c8cf99', merchantAccountId: 'ebac4f47-a9be-5523-94a9-6b381619ce07', }, processorConfigId: '13eb240b-3da3-43a4-b8a8-1648d6c8cf99', implementationType: 'WEB_REDIRECT', name: 'Triple-A', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/TRIPLE_A/triplea-logo@3x.png', light: 'https://assets.staging.core.primer.io/TRIPLE_A/triplea-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay with Crypto', textColor: { dark: '#FFFFFF', light: '#000000', }, iconPositionRelativeToText: 'END', }, popup: { width: 830, height: 1000, }, }, forceRedirect: false, implementation: {}, }, { id: 'fe2aa1da-6cad-41dc-885f-ea5483f49441', type: 'PAYPAL', options: { merchantId: 'sb-gmcgm25177732@business.example.com', merchantAccountId: 'bc5908a7-3b62-5696-804b-274eaa68fc3e', clientId: 'AcTGoAPNhwfbSPbiVYSlrUGwTBGijs6GvFGci2R3QI1jlu5ewofPFq0yZDm-Rka07c1FtY4DVnsRerPK', intent: 'authorize', }, processorConfigId: '0a5952b4-cbdf-49b6-a982-022bc0bd0f7f', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { id: '5f36bcaa-6479-4f4a-87ab-b526348c520f', type: 'GOOGLE_PAY', options: { merchantId: '06134396481468734566', merchantName: 'Primer', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.staging.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4bf74ad3-1d02-43f8-9d4e-f9825e5b48c5', type: 'PAYMENT_CARD', options: { merchantId: 'test', merchantAccountId: '46c7a690-924b-5b5e-a651-6a962f926b07', }, processorConfigId: 'e4dd8fc6-293f-4208-9160-fbfbfd6b0a4c', implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4bf74ad3-1d02-43f8-9d4e-f9825e5b48c5', type: 'PAYMENT_CARD', options: { merchantId: 'test', merchantAccountId: '46c7a690-924b-5b5e-a651-6a962f926b07', }, processorConfigId: 'e4dd8fc6-293f-4208-9160-fbfbfd6b0a4c', implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
1719
|
+
},
|
|
1806
1720
|
{
|
|
1807
1721
|
"kind": "variable",
|
|
1808
|
-
"name": "
|
|
1809
|
-
"
|
|
1722
|
+
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
1723
|
+
"type": {
|
|
1724
|
+
"text": "string"
|
|
1725
|
+
},
|
|
1726
|
+
"default": "'4035 5010 0000 0008'"
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
"kind": "variable",
|
|
1730
|
+
"name": "FAILURE_CARD_NUMBER",
|
|
1731
|
+
"type": {
|
|
1732
|
+
"text": "string"
|
|
1733
|
+
},
|
|
1734
|
+
"default": "'4242 4242 4242 4242'"
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
"kind": "function",
|
|
1738
|
+
"name": "mockPaymentInstruments",
|
|
1739
|
+
"parameters": [
|
|
1740
|
+
{
|
|
1741
|
+
"name": "page",
|
|
1742
|
+
"type": {
|
|
1743
|
+
"text": "Page"
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
]
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
"kind": "function",
|
|
1750
|
+
"name": "mockPayments",
|
|
1751
|
+
"parameters": [
|
|
1752
|
+
{
|
|
1753
|
+
"name": "page",
|
|
1754
|
+
"type": {
|
|
1755
|
+
"text": "Page"
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
]
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"kind": "function",
|
|
1762
|
+
"name": "mockPaymentInstrumentsFailure",
|
|
1763
|
+
"parameters": [
|
|
1764
|
+
{
|
|
1765
|
+
"name": "page",
|
|
1766
|
+
"type": {
|
|
1767
|
+
"text": "Page"
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
]
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
"kind": "function",
|
|
1774
|
+
"name": "mockPaymentsFailure",
|
|
1775
|
+
"parameters": [
|
|
1776
|
+
{
|
|
1777
|
+
"name": "page",
|
|
1778
|
+
"type": {
|
|
1779
|
+
"text": "Page"
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
]
|
|
1810
1783
|
}
|
|
1811
1784
|
],
|
|
1812
1785
|
"exports": [
|
|
1813
1786
|
{
|
|
1814
1787
|
"kind": "js",
|
|
1815
|
-
"name": "
|
|
1788
|
+
"name": "settings",
|
|
1816
1789
|
"declaration": {
|
|
1817
|
-
"name": "
|
|
1818
|
-
"module": "
|
|
1790
|
+
"name": "settings",
|
|
1791
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
1819
1792
|
}
|
|
1820
|
-
}
|
|
1821
|
-
]
|
|
1822
|
-
},
|
|
1823
|
-
{
|
|
1824
|
-
"kind": "javascript-module",
|
|
1825
|
-
"path": "dist/chunks/es-AR.TBWVUZEF.js",
|
|
1826
|
-
"declarations": [
|
|
1827
|
-
{
|
|
1828
|
-
"kind": "variable",
|
|
1829
|
-
"name": "i",
|
|
1830
|
-
"default": "e"
|
|
1831
|
-
}
|
|
1832
|
-
],
|
|
1833
|
-
"exports": [
|
|
1793
|
+
},
|
|
1834
1794
|
{
|
|
1835
1795
|
"kind": "js",
|
|
1836
|
-
"name": "
|
|
1796
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1837
1797
|
"declaration": {
|
|
1838
|
-
"name": "
|
|
1839
|
-
"module": "
|
|
1798
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1799
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
1840
1800
|
}
|
|
1841
|
-
}
|
|
1842
|
-
]
|
|
1843
|
-
},
|
|
1844
|
-
{
|
|
1845
|
-
"kind": "javascript-module",
|
|
1846
|
-
"path": "dist/chunks/es-MX.6EMWUABR.js",
|
|
1847
|
-
"declarations": [
|
|
1848
|
-
{
|
|
1849
|
-
"kind": "variable",
|
|
1850
|
-
"name": "i",
|
|
1851
|
-
"default": "e"
|
|
1852
|
-
}
|
|
1853
|
-
],
|
|
1854
|
-
"exports": [
|
|
1801
|
+
},
|
|
1855
1802
|
{
|
|
1856
1803
|
"kind": "js",
|
|
1857
|
-
"name": "
|
|
1804
|
+
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
1858
1805
|
"declaration": {
|
|
1859
|
-
"name": "
|
|
1860
|
-
"module": "
|
|
1806
|
+
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
1807
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
1861
1808
|
}
|
|
1862
|
-
}
|
|
1863
|
-
]
|
|
1864
|
-
},
|
|
1865
|
-
{
|
|
1866
|
-
"kind": "javascript-module",
|
|
1867
|
-
"path": "dist/chunks/es.XZLDFHYI.js",
|
|
1868
|
-
"declarations": [
|
|
1869
|
-
{
|
|
1870
|
-
"kind": "variable",
|
|
1871
|
-
"name": "i",
|
|
1872
|
-
"default": "e"
|
|
1873
|
-
}
|
|
1874
|
-
],
|
|
1875
|
-
"exports": [
|
|
1809
|
+
},
|
|
1876
1810
|
{
|
|
1877
1811
|
"kind": "js",
|
|
1878
|
-
"name": "
|
|
1812
|
+
"name": "FAILURE_CARD_NUMBER",
|
|
1879
1813
|
"declaration": {
|
|
1880
|
-
"name": "
|
|
1881
|
-
"module": "
|
|
1814
|
+
"name": "FAILURE_CARD_NUMBER",
|
|
1815
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
1882
1816
|
}
|
|
1883
|
-
}
|
|
1884
|
-
]
|
|
1885
|
-
},
|
|
1886
|
-
{
|
|
1887
|
-
"kind": "javascript-module",
|
|
1888
|
-
"path": "dist/chunks/et-EE.JBSFMKZ2.js",
|
|
1889
|
-
"declarations": [
|
|
1890
|
-
{
|
|
1891
|
-
"kind": "variable",
|
|
1892
|
-
"name": "r",
|
|
1893
|
-
"default": "e"
|
|
1894
|
-
}
|
|
1895
|
-
],
|
|
1896
|
-
"exports": [
|
|
1817
|
+
},
|
|
1897
1818
|
{
|
|
1898
1819
|
"kind": "js",
|
|
1899
|
-
"name": "
|
|
1820
|
+
"name": "mockPaymentInstruments",
|
|
1900
1821
|
"declaration": {
|
|
1901
|
-
"name": "
|
|
1902
|
-
"module": "
|
|
1822
|
+
"name": "mockPaymentInstruments",
|
|
1823
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
1903
1824
|
}
|
|
1904
|
-
}
|
|
1905
|
-
]
|
|
1906
|
-
},
|
|
1907
|
-
{
|
|
1908
|
-
"kind": "javascript-module",
|
|
1909
|
-
"path": "dist/chunks/fi-FI.I75VK2ID.js",
|
|
1910
|
-
"declarations": [
|
|
1911
|
-
{
|
|
1912
|
-
"kind": "variable",
|
|
1913
|
-
"name": "n",
|
|
1914
|
-
"default": "a"
|
|
1915
|
-
}
|
|
1916
|
-
],
|
|
1917
|
-
"exports": [
|
|
1825
|
+
},
|
|
1918
1826
|
{
|
|
1919
1827
|
"kind": "js",
|
|
1920
|
-
"name": "
|
|
1828
|
+
"name": "mockPayments",
|
|
1921
1829
|
"declaration": {
|
|
1922
|
-
"name": "
|
|
1923
|
-
"module": "
|
|
1830
|
+
"name": "mockPayments",
|
|
1831
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
1924
1832
|
}
|
|
1925
|
-
}
|
|
1926
|
-
]
|
|
1927
|
-
},
|
|
1928
|
-
{
|
|
1929
|
-
"kind": "javascript-module",
|
|
1930
|
-
"path": "dist/chunks/fr.JBNP6RXT.js",
|
|
1931
|
-
"declarations": [
|
|
1932
|
-
{
|
|
1933
|
-
"kind": "variable",
|
|
1934
|
-
"name": "i",
|
|
1935
|
-
"default": "e"
|
|
1936
|
-
}
|
|
1937
|
-
],
|
|
1938
|
-
"exports": [
|
|
1833
|
+
},
|
|
1939
1834
|
{
|
|
1940
1835
|
"kind": "js",
|
|
1941
|
-
"name": "
|
|
1836
|
+
"name": "mockPaymentInstrumentsFailure",
|
|
1942
1837
|
"declaration": {
|
|
1943
|
-
"name": "
|
|
1944
|
-
"module": "
|
|
1838
|
+
"name": "mockPaymentInstrumentsFailure",
|
|
1839
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
1945
1840
|
}
|
|
1946
|
-
}
|
|
1947
|
-
]
|
|
1948
|
-
},
|
|
1949
|
-
{
|
|
1950
|
-
"kind": "javascript-module",
|
|
1951
|
-
"path": "dist/chunks/he.PW253QAL.js",
|
|
1952
|
-
"declarations": [
|
|
1953
|
-
{
|
|
1954
|
-
"kind": "variable",
|
|
1955
|
-
"name": "o",
|
|
1956
|
-
"default": "e"
|
|
1957
|
-
}
|
|
1958
|
-
],
|
|
1959
|
-
"exports": [
|
|
1841
|
+
},
|
|
1960
1842
|
{
|
|
1961
1843
|
"kind": "js",
|
|
1962
|
-
"name": "
|
|
1844
|
+
"name": "mockPaymentsFailure",
|
|
1963
1845
|
"declaration": {
|
|
1964
|
-
"name": "
|
|
1965
|
-
"module": "
|
|
1846
|
+
"name": "mockPaymentsFailure",
|
|
1847
|
+
"module": "e2e/mocks/card-basic.ts"
|
|
1966
1848
|
}
|
|
1967
1849
|
}
|
|
1968
1850
|
]
|
|
1969
1851
|
},
|
|
1970
1852
|
{
|
|
1971
1853
|
"kind": "javascript-module",
|
|
1972
|
-
"path": "
|
|
1854
|
+
"path": "e2e/mocks/klarna.ts",
|
|
1973
1855
|
"declarations": [
|
|
1974
1856
|
{
|
|
1975
1857
|
"kind": "variable",
|
|
1976
|
-
"name": "
|
|
1977
|
-
"
|
|
1858
|
+
"name": "settings",
|
|
1859
|
+
"type": {
|
|
1860
|
+
"text": "string"
|
|
1861
|
+
},
|
|
1862
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI0NTg1OCIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJERSIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50Ijo2MDAsInF1YW50aXR5IjoxfV19LCJjdXN0b21lciI6e30sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7InNka0NvcmUiOmZhbHNlfX0='"
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
"kind": "variable",
|
|
1866
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1867
|
+
"type": {
|
|
1868
|
+
"text": "object"
|
|
1869
|
+
},
|
|
1870
|
+
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'TAX_CALCULATION', requestUrl: '/sales-tax/calculate', }, { type: 'CARD_INFORMATION', }, ], clientSession: { clientSessionId: 'ff9ecd24-537f-4928-a8e4-5534d2375200', order: { orderId: '45858', currencyCode: 'EUR', countryCode: 'DE', totalOrderAmount: 600, merchantAmount: 600, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 600, quantity: 1, }, ], }, customer: { customerId: 'Euler is the best', }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '84100a01-523f-4347-ac44-e8a3e7083d9a', env: 'SANDBOX', paymentMethods: [ { id: 'e787b281-e4f9-4494-96e8-188917540654', type: 'ADYEN_IDEAL', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '4ad980f3-ccc7-5e8e-9a9c-81cd6f5214d4', }, processorConfigId: '9319ad4e-cd51-4517-9d46-bc7be244752a', implementationType: 'WEB_REDIRECT', name: 'iDeal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', }, backgroundColor: { colored: '#CC0066', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: 'e1b5e078-081c-4075-a3cc-5ebc779d36f2', type: 'KLARNA', options: { merchantId: 'Primer', merchantAccountId: 'b6902742-384a-5dfa-b1ff-7dcd02880dc3', clientId: 'Primer', }, processorConfigId: 'b70c2b11-e37f-41fe-9797-d3900f343a36', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4e9497d8-1503-4541-8ead-d88151ffa257', type: 'XFERS_PAYNOW', options: { merchantId: 'testi', merchantAccountId: '6fb12703-1795-55ac-875e-2e8476cb8390', }, processorConfigId: '545e5533-b575-4c61-aebe-dec49a836f1b', implementationType: 'NATIVE_SDK', name: 'Xfers', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-light@3x.png', }, backgroundColor: { colored: '#941C80', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#028BF4', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '9e407fb0-a2f8-4636-a5bc-f404ac757c68', type: 'PAYPAL', options: { merchantId: 'sb-iyjg882920702@business.example.com', merchantAccountId: 'e584f5c7-3c7f-5b58-b187-8e641b0cdce4', clientId: 'AXsZfsyf2jtpTpLQARwSeBurtfT6WiRjHQt1PodMf94gPH0iLwglSdSJ7ZAQT3tCHNZQL--VlrVfwscv', intent: 'authorize', }, processorConfigId: '573b0c98-d588-4223-973f-513a5b5a6177', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { id: 'c657ae04-c230-4be4-9615-9b822743e5e4', type: 'APPLE_PAY', options: { merchantId: '84100a01523f4347ac44e8a3e7083d9a', merchantName: 'DX QA Account', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { id: '527ee4ff-2c66-4234-829f-d20480f3aa09', type: 'GOOGLE_PAY', options: { merchantId: '06134396481468734566', merchantName: 'Primer', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
1978
1871
|
}
|
|
1979
1872
|
],
|
|
1980
1873
|
"exports": [
|
|
1981
1874
|
{
|
|
1982
1875
|
"kind": "js",
|
|
1983
|
-
"name": "
|
|
1876
|
+
"name": "settings",
|
|
1984
1877
|
"declaration": {
|
|
1985
|
-
"name": "
|
|
1986
|
-
"module": "
|
|
1878
|
+
"name": "settings",
|
|
1879
|
+
"module": "e2e/mocks/klarna.ts"
|
|
1987
1880
|
}
|
|
1988
|
-
}
|
|
1989
|
-
]
|
|
1990
|
-
},
|
|
1991
|
-
{
|
|
1992
|
-
"kind": "javascript-module",
|
|
1993
|
-
"path": "dist/chunks/hu.JGCKQA6J.js",
|
|
1994
|
-
"declarations": [
|
|
1995
|
-
{
|
|
1996
|
-
"kind": "variable",
|
|
1997
|
-
"name": "s",
|
|
1998
|
-
"default": "e"
|
|
1999
|
-
}
|
|
2000
|
-
],
|
|
2001
|
-
"exports": [
|
|
1881
|
+
},
|
|
2002
1882
|
{
|
|
2003
1883
|
"kind": "js",
|
|
2004
|
-
"name": "
|
|
1884
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2005
1885
|
"declaration": {
|
|
2006
|
-
"name": "
|
|
2007
|
-
"module": "
|
|
1886
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1887
|
+
"module": "e2e/mocks/klarna.ts"
|
|
2008
1888
|
}
|
|
2009
1889
|
}
|
|
2010
1890
|
]
|
|
2011
1891
|
},
|
|
2012
1892
|
{
|
|
2013
1893
|
"kind": "javascript-module",
|
|
2014
|
-
"path": "
|
|
1894
|
+
"path": "e2e/mocks/shared.ts",
|
|
2015
1895
|
"declarations": [
|
|
2016
1896
|
{
|
|
2017
|
-
"kind": "
|
|
2018
|
-
"name": "
|
|
2019
|
-
"
|
|
1897
|
+
"kind": "function",
|
|
1898
|
+
"name": "mockConfigurationCallSBX",
|
|
1899
|
+
"parameters": [
|
|
1900
|
+
{
|
|
1901
|
+
"name": "page",
|
|
1902
|
+
"type": {
|
|
1903
|
+
"text": "Page"
|
|
1904
|
+
}
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
"name": "config",
|
|
1908
|
+
"type": {
|
|
1909
|
+
"text": "unknown"
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
]
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
"kind": "function",
|
|
1916
|
+
"name": "mockConfigurationCallSTG",
|
|
1917
|
+
"parameters": [
|
|
1918
|
+
{
|
|
1919
|
+
"name": "page",
|
|
1920
|
+
"type": {
|
|
1921
|
+
"text": "Page"
|
|
1922
|
+
}
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
"name": "config",
|
|
1926
|
+
"type": {
|
|
1927
|
+
"text": "unknown"
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
]
|
|
2020
1931
|
}
|
|
2021
1932
|
],
|
|
2022
1933
|
"exports": [
|
|
2023
1934
|
{
|
|
2024
1935
|
"kind": "js",
|
|
2025
|
-
"name": "
|
|
1936
|
+
"name": "mockConfigurationCallSBX",
|
|
2026
1937
|
"declaration": {
|
|
2027
|
-
"name": "
|
|
2028
|
-
"module": "
|
|
1938
|
+
"name": "mockConfigurationCallSBX",
|
|
1939
|
+
"module": "e2e/mocks/shared.ts"
|
|
2029
1940
|
}
|
|
2030
|
-
}
|
|
2031
|
-
]
|
|
2032
|
-
},
|
|
2033
|
-
{
|
|
2034
|
-
"kind": "javascript-module",
|
|
2035
|
-
"path": "dist/chunks/it.7Q6BFLDK.js",
|
|
2036
|
-
"declarations": [
|
|
2037
|
-
{
|
|
2038
|
-
"kind": "variable",
|
|
2039
|
-
"name": "r",
|
|
2040
|
-
"default": "e"
|
|
2041
|
-
}
|
|
2042
|
-
],
|
|
2043
|
-
"exports": [
|
|
1941
|
+
},
|
|
2044
1942
|
{
|
|
2045
1943
|
"kind": "js",
|
|
2046
|
-
"name": "
|
|
1944
|
+
"name": "mockConfigurationCallSTG",
|
|
2047
1945
|
"declaration": {
|
|
2048
|
-
"name": "
|
|
2049
|
-
"module": "
|
|
1946
|
+
"name": "mockConfigurationCallSTG",
|
|
1947
|
+
"module": "e2e/mocks/shared.ts"
|
|
2050
1948
|
}
|
|
2051
1949
|
}
|
|
2052
1950
|
]
|
|
2053
1951
|
},
|
|
2054
1952
|
{
|
|
2055
1953
|
"kind": "javascript-module",
|
|
2056
|
-
"path": "
|
|
1954
|
+
"path": "e2e/mocks/vaulted-paypal.ts",
|
|
2057
1955
|
"declarations": [
|
|
2058
1956
|
{
|
|
2059
1957
|
"kind": "variable",
|
|
2060
|
-
"name": "
|
|
2061
|
-
"
|
|
1958
|
+
"name": "settings",
|
|
1959
|
+
"type": {
|
|
1960
|
+
"text": "string"
|
|
1961
|
+
},
|
|
1962
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiIwODkzNTcwMTgyNTM2NyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwidmF1bHRPbkFncmVlbWVudCI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY2FyZCI6eyJwcmVmZXJyZWRGbG93IjoiRU1CRURERURfSU5fSE9NRSJ9LCJkaXJlY3REZWJpdCI6eyJjdXN0b21lckNvdW50cnlDb2RlIjoiRlIiLCJjb21wYW55TmFtZSI6IlByaW1lciBBUEkgTFREIiwiY29tcGFueUFkZHJlc3MiOiIxMjMgRmFrZSBTdCwgTG9uZG9uLCBFQzJBIDhYWSJ9LCJyZWRpcmVjdCI6eyJmb3JjZVJlZGlyZWN0IjpmYWxzZX0sImdvb2dsZVBheSI6eyJjYXB0dXJlQmlsbGluZ0FkZHJlc3MiOnRydWV9LCJwYXlwYWwiOnsicGF5bWVudEZsb3ciOiJQUkVGRVJfVkFVTFQifX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJmMzA4ODVmMC04MjljLTRmMGEtYjIyMi1iN2Y1OWQzNzZlYWYiLCJhcGlWZXJzaW9uIjoiMi40IiwiZW52IjoiQ1VTVE9NX1NBTkRCT1gifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsicGF5cGFsIjp7InBheW1lbnRGbG93IjoiUFJFRkVSX1ZBVUxUIn0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9LCJzZGtDb3JlIjpmYWxzZX19'"
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
"kind": "variable",
|
|
1966
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
1967
|
+
"type": {
|
|
1968
|
+
"text": "object"
|
|
1969
|
+
},
|
|
1970
|
+
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [], clientSession: { clientSessionId: '3b40a6e3-8fa9-4f2d-90b5-2691e644ff81', order: { orderId: '089357018253670', currencyCode: 'EUR', countryCode: 'DE', totalOrderAmount: 600, merchantAmount: 600, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 600, quantity: 1, }, ], fees: [ { type: 'SURCHARGE', amount: 0, }, ], }, customer: { customerId: 'Euler is the best', billingAddress: { firstName: 'Card', lastName: 'Holder Name', postalCode: '94043', addressLine1: '1600 Amphitheatre Parkway', countryCode: 'US', city: 'Mountain View', state: 'CA', }, }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '166fd38f-d8a6-4f39-805f-62a6bbd64bee', env: 'SANDBOX', paymentMethods: [ { id: 'd3ced3db-ca91-44bb-889d-d1a687c2db17', type: 'RAPYD_GRABPAY', options: { merchantId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', merchantAccountId: 'e59b7dae-0cff-5fa9-8548-9fed83c1d5ec', }, processorConfigId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', implementationType: 'WEB_REDIRECT', name: 'GrabPay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GRABPAY/grabpay-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/GRABPAY/grabpay-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/GRABPAY/grabpay-logo-light@3x.png', }, backgroundColor: { colored: '#01B14E', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'f37f1a42-1270-476e-a8d8-3698215596c2', type: 'RAPYD_GCASH', options: { merchantId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', merchantAccountId: 'e59b7dae-0cff-5fa9-8548-9fed83c1d5ec', }, processorConfigId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', implementationType: 'WEB_REDIRECT', name: 'GCash', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GCASH/gcash-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/GCASH/gcash-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/GCASH/gcash-logo-light@3x.png', }, backgroundColor: { colored: '#297BFA', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '1bde0ef5-9ae7-41f8-b627-4ecaaddc76a5', type: 'RAPYD_PROMPTPAY', options: { merchantId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', merchantAccountId: 'e59b7dae-0cff-5fa9-8548-9fed83c1d5ec', }, processorConfigId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', implementationType: 'NATIVE_SDK', name: 'PromptPay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PROMPTPAY/promptpay-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/PROMPTPAY/promptpay-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/PROMPTPAY/promptpay-logo-light@3x.png', }, backgroundColor: { colored: '#023C68', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '2b0b7149-a4c2-4bf4-adb3-a56ec6e2f09f', type: 'ADYEN_IDEAL', options: { merchantId: 'Primerio254_SECOND_TEST', merchantAccountId: 'ddeca4e9-6cee-55f0-ae0d-ddb8d1100977', }, processorConfigId: 'af152714-66c6-48b9-a67e-314f5eb3ab15', implementationType: 'WEB_REDIRECT', name: 'iDeal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', }, backgroundColor: { colored: '#CC0066', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: '6e7a8a26-7737-45dc-b4e5-721f0b180f2f', type: 'GOOGLE_PAY', options: { merchantId: 'test', merchantName: 'test', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '2f32f120-d2a9-49d2-96d0-6b21546dec34', type: 'KLARNA', options: { merchantId: 'EG100723', merchantAccountId: '5cdd4a63-9762-5364-8ab8-30aa082a03b5', clientId: 'EG100723', }, processorConfigId: 'c65b140d-3faf-43af-ae3b-8d278b7d7221', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '9e550cea-749e-46d2-b01d-6867b34eec9a', type: 'PAYPAL', options: { merchantId: 'sb-gmcgm25177732@business.example.com', merchantAccountId: 'fc6c22da-065a-5a44-8c39-a4a1fcaf5723', clientId: 'AcTGoAPNhwfbSPbiVYSlrUGwTBGijs6GvFGci2R3QI1jlu5ewofPFq0yZDm-Rka07c1FtY4DVnsRerPK', intent: 'authorize', }, processorConfigId: '6b506d09-48b0-495c-ba32-49c6d2016cb0', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
"kind": "function",
|
|
1974
|
+
"name": "mockExchangeCall",
|
|
1975
|
+
"parameters": [
|
|
1976
|
+
{
|
|
1977
|
+
"name": "page",
|
|
1978
|
+
"type": {
|
|
1979
|
+
"text": "Page"
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
]
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
"kind": "function",
|
|
1986
|
+
"name": "mockPaymentsCall",
|
|
1987
|
+
"parameters": [
|
|
1988
|
+
{
|
|
1989
|
+
"name": "page",
|
|
1990
|
+
"type": {
|
|
1991
|
+
"text": "Page"
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
]
|
|
2062
1995
|
}
|
|
2063
1996
|
],
|
|
2064
1997
|
"exports": [
|
|
2065
1998
|
{
|
|
2066
1999
|
"kind": "js",
|
|
2067
|
-
"name": "
|
|
2000
|
+
"name": "settings",
|
|
2068
2001
|
"declaration": {
|
|
2069
|
-
"name": "
|
|
2070
|
-
"module": "
|
|
2002
|
+
"name": "settings",
|
|
2003
|
+
"module": "e2e/mocks/vaulted-paypal.ts"
|
|
2071
2004
|
}
|
|
2072
|
-
}
|
|
2073
|
-
]
|
|
2074
|
-
},
|
|
2075
|
-
{
|
|
2076
|
-
"kind": "javascript-module",
|
|
2077
|
-
"path": "dist/chunks/ko.BANZIFNH.js",
|
|
2078
|
-
"declarations": [
|
|
2005
|
+
},
|
|
2079
2006
|
{
|
|
2080
|
-
"kind": "
|
|
2081
|
-
"name": "
|
|
2082
|
-
"
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2007
|
+
"kind": "js",
|
|
2008
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2009
|
+
"declaration": {
|
|
2010
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2011
|
+
"module": "e2e/mocks/vaulted-paypal.ts"
|
|
2012
|
+
}
|
|
2013
|
+
},
|
|
2086
2014
|
{
|
|
2087
2015
|
"kind": "js",
|
|
2088
|
-
"name": "
|
|
2016
|
+
"name": "mockExchangeCall",
|
|
2089
2017
|
"declaration": {
|
|
2090
|
-
"name": "
|
|
2091
|
-
"module": "
|
|
2018
|
+
"name": "mockExchangeCall",
|
|
2019
|
+
"module": "e2e/mocks/vaulted-paypal.ts"
|
|
2020
|
+
}
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
"kind": "js",
|
|
2024
|
+
"name": "mockPaymentsCall",
|
|
2025
|
+
"declaration": {
|
|
2026
|
+
"name": "mockPaymentsCall",
|
|
2027
|
+
"module": "e2e/mocks/vaulted-paypal.ts"
|
|
2092
2028
|
}
|
|
2093
2029
|
}
|
|
2094
2030
|
]
|
|
2095
2031
|
},
|
|
2096
2032
|
{
|
|
2097
2033
|
"kind": "javascript-module",
|
|
2098
|
-
"path": "
|
|
2034
|
+
"path": "e2e/mocks/vaulting-card.ts",
|
|
2099
2035
|
"declarations": [
|
|
2100
2036
|
{
|
|
2101
2037
|
"kind": "variable",
|
|
2102
|
-
"name": "
|
|
2103
|
-
"
|
|
2038
|
+
"name": "settings",
|
|
2039
|
+
"type": {
|
|
2040
|
+
"text": "string"
|
|
2041
|
+
},
|
|
2042
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJjdXN0b21lcklkIiwib3JkZXJJZCI6IjM4NjYyIiwiYW1vdW50Ijo1MDAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6e30sIm9yZGVyIjp7ImNvdW50cnlDb2RlIjoiRlIiLCJsaW5lSXRlbXMiOlt7Iml0ZW1JZCI6InByaW1lci1ob29kaWUtZ3JheSIsImRlc2NyaXB0aW9uIjoiUHJpbWVyIEhvb2RpZSIsImFtb3VudCI6NTAwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImNvdW50cnlDb2RlIjoiRlIifSwibmF0aW9uYWxEb2N1bWVudElkIjoiOTAxMTIxMTIzNDU2NyJ9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjp0cnVlLCJwYXltZW50VHlwZSI6IkZJUlNUX1BBWU1FTlQiLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlNRU5UX0NBUkQiOnsiY2FwdHVyZVZhdWx0ZWRDYXJkQ3Z2Ijp0cnVlfX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY2FyZCI6eyJwcmVmZXJyZWRGbG93IjoiRU1CRURERURfSU5fSE9NRSJ9LCJkaXJlY3REZWJpdCI6eyJjdXN0b21lckNvdW50cnlDb2RlIjoiRlIiLCJjb21wYW55TmFtZSI6IlByaW1lciBBUEkgTFREIiwiY29tcGFueUFkZHJlc3MiOiIxMjMgRmFrZSBTdCwgTG9uZG9uLCBFQzJBIDhYWSJ9LCJyZWRpcmVjdCI6eyJmb3JjZVJlZGlyZWN0IjpmYWxzZX0sImdvb2dsZVBheSI6eyJjYXB0dXJlQmlsbGluZ0FkZHJlc3MiOnRydWV9LCJwYXlwYWwiOnsicGF5bWVudEZsb3ciOiJQUkVGRVJfVkFVTFQifX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJmZTRkNzFiMi1mNzJmLTQ4NGItYjlkMS1hNDBkMDM0ZGRmNmMiLCJhcGlWZXJzaW9uIjoiMi4zIiwiZW52IjoiQ1VTVE9NX1NBTkRCT1gifSwiaGVhZGxlc3NPcHRpb25zIjp7InN0cmlwZSI6eyJwdWJsaXNoYWJsZUtleSI6InBrX3Rlc3RfNTFPOHpmUUtVSzZiWElkQzJ4UHZTUzZVdnJpRTlrd3B2dHR3QjdIOVBBemhOQVpvR3pMZ2lET3lkNFdvb296ZVdIeG9ScktvNmIyVmpaWXhOQ01YM1c3YmswMHJNRGl2amF1In0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsicGF5cGFsIjp7InBheW1lbnRGbG93IjoiUFJFRkVSX1ZBVUxUIn0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9LCJzZGtDb3JlIjpmYWxzZX19'"
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
"kind": "variable",
|
|
2046
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2047
|
+
"type": {
|
|
2048
|
+
"text": "object"
|
|
2049
|
+
},
|
|
2050
|
+
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [], clientSession: { clientSessionId: '73195f20-be41-43ac-abad-d6fdf786c4cb', order: { orderId: '38662', currencyCode: 'EUR', countryCode: 'FR', totalOrderAmount: 5000, merchantAmount: 5000, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 5000, quantity: 1, }, ], }, customer: { customerId: 'customerId', billingAddress: { countryCode: 'FR', }, nationalDocumentId: '9011211234567', }, paymentMethod: { vaultOnSuccess: true, options: [ { type: 'PAYMENT_CARD', }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '6723b06a-37c5-4b93-87bf-9dadf4aa62f8', env: 'SANDBOX', paymentMethods: [ { id: '0b4775b8-4c43-4261-88ec-24d4f891912a', type: 'STRIPE_ACH', options: { merchantId: '7804d409-4caa-4fa8-8adb-ab34217d6c4e', merchantAccountId: '42dd7bba-3c06-5c50-b009-d1aafdd18a51', }, processorConfigId: '7804d409-4caa-4fa8-8adb-ab34217d6c4e', implementationType: 'NATIVE_SDK', name: 'Automated Clearing House (ACH)', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/BANK_TRANSFER/bank-transfer-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/BANK_TRANSFER/bank-transfer-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay with ACH', textColor: { dark: '#FFFFFF', light: '#000000', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: 'f7e3b1d5-9922-4269-8d69-98a021c3c7ab', type: 'PRIMER_TEST_KLARNA', options: { merchantId: 'acct_primer-test_1', merchantAccountId: 'f49628b3-fc15-5e89-a710-1ad4a78a1b3b', }, processorConfigId: '7799d7a0-21b3-4778-bac4-de4bb302a702', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'f43bbce8-2d0c-497e-b35c-7eeb647e0f9f', type: 'NOL_PAY', options: { merchantId: 'b89640a1-f1fd-47ca-857a-dac21d52f778', merchantAccountId: 'a3b4cecc-2305-54db-86f5-9670e237ed2d', appId: '1301', }, processorConfigId: 'b89640a1-f1fd-47ca-857a-dac21d52f778', implementationType: 'NATIVE_SDK', name: 'Nol Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/NOL_PAY/nol-pay-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/NOL_PAY/nol-pay-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/NOL_PAY/nol-pay-logo-light@3x.png', }, backgroundColor: { colored: '#171e90', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFFFFF', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, captureVaultedCardCvv: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"kind": "variable",
|
|
2054
|
+
"name": "SUCCESSFUL_CARD_TO_VAULT",
|
|
2055
|
+
"type": {
|
|
2056
|
+
"text": "string"
|
|
2057
|
+
},
|
|
2058
|
+
"default": "'4000002500001001'"
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
"kind": "function",
|
|
2062
|
+
"name": "mockPaymentInstruments",
|
|
2063
|
+
"parameters": [
|
|
2064
|
+
{
|
|
2065
|
+
"name": "page",
|
|
2066
|
+
"type": {
|
|
2067
|
+
"text": "Page"
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
]
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
"kind": "function",
|
|
2074
|
+
"name": "mockPayments",
|
|
2075
|
+
"parameters": [
|
|
2076
|
+
{
|
|
2077
|
+
"name": "page",
|
|
2078
|
+
"type": {
|
|
2079
|
+
"text": "Page"
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
]
|
|
2104
2083
|
}
|
|
2105
2084
|
],
|
|
2106
2085
|
"exports": [
|
|
2107
2086
|
{
|
|
2108
2087
|
"kind": "js",
|
|
2109
|
-
"name": "
|
|
2088
|
+
"name": "settings",
|
|
2110
2089
|
"declaration": {
|
|
2111
|
-
"name": "
|
|
2112
|
-
"module": "
|
|
2090
|
+
"name": "settings",
|
|
2091
|
+
"module": "e2e/mocks/vaulting-card.ts"
|
|
2113
2092
|
}
|
|
2114
|
-
}
|
|
2115
|
-
]
|
|
2116
|
-
},
|
|
2117
|
-
{
|
|
2118
|
-
"kind": "javascript-module",
|
|
2119
|
-
"path": "dist/chunks/lt.XMNFEN5T.js",
|
|
2120
|
-
"declarations": [
|
|
2093
|
+
},
|
|
2121
2094
|
{
|
|
2122
|
-
"kind": "
|
|
2123
|
-
"name": "
|
|
2124
|
-
"
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2095
|
+
"kind": "js",
|
|
2096
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2097
|
+
"declaration": {
|
|
2098
|
+
"name": "CONFIGURATION_RESPONSE",
|
|
2099
|
+
"module": "e2e/mocks/vaulting-card.ts"
|
|
2100
|
+
}
|
|
2101
|
+
},
|
|
2128
2102
|
{
|
|
2129
2103
|
"kind": "js",
|
|
2130
|
-
"name": "
|
|
2104
|
+
"name": "SUCCESSFUL_CARD_TO_VAULT",
|
|
2131
2105
|
"declaration": {
|
|
2132
|
-
"name": "
|
|
2133
|
-
"module": "
|
|
2106
|
+
"name": "SUCCESSFUL_CARD_TO_VAULT",
|
|
2107
|
+
"module": "e2e/mocks/vaulting-card.ts"
|
|
2108
|
+
}
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
"kind": "js",
|
|
2112
|
+
"name": "mockPaymentInstruments",
|
|
2113
|
+
"declaration": {
|
|
2114
|
+
"name": "mockPaymentInstruments",
|
|
2115
|
+
"module": "e2e/mocks/vaulting-card.ts"
|
|
2116
|
+
}
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
"kind": "js",
|
|
2120
|
+
"name": "mockPayments",
|
|
2121
|
+
"declaration": {
|
|
2122
|
+
"name": "mockPayments",
|
|
2123
|
+
"module": "e2e/mocks/vaulting-card.ts"
|
|
2134
2124
|
}
|
|
2135
2125
|
}
|
|
2136
2126
|
]
|
|
2137
2127
|
},
|
|
2138
2128
|
{
|
|
2139
2129
|
"kind": "javascript-module",
|
|
2140
|
-
"path": "
|
|
2130
|
+
"path": "e2e/tests/card-3ds.spec.ts",
|
|
2131
|
+
"declarations": [],
|
|
2132
|
+
"exports": []
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"kind": "javascript-module",
|
|
2136
|
+
"path": "e2e/tests/card-basic.spec.ts",
|
|
2137
|
+
"declarations": [],
|
|
2138
|
+
"exports": []
|
|
2139
|
+
},
|
|
2140
|
+
{
|
|
2141
|
+
"kind": "javascript-module",
|
|
2142
|
+
"path": "e2e/tests/card-form-billing-address.spec.ts",
|
|
2143
|
+
"declarations": [],
|
|
2144
|
+
"exports": []
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
"kind": "javascript-module",
|
|
2148
|
+
"path": "e2e/tests/disabled-payments.spec.ts",
|
|
2141
2149
|
"declarations": [
|
|
2142
2150
|
{
|
|
2143
2151
|
"kind": "variable",
|
|
2144
|
-
"name": "
|
|
2145
|
-
"
|
|
2152
|
+
"name": "settingsEnabled",
|
|
2153
|
+
"type": {
|
|
2154
|
+
"text": "string"
|
|
2155
|
+
},
|
|
2156
|
+
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsiZGlzYWJsZWRQYXltZW50cyI6ZmFsc2UsInNka0NvcmUiOmZhbHNlfX0='"
|
|
2146
2157
|
}
|
|
2147
2158
|
],
|
|
2148
2159
|
"exports": [
|
|
2149
2160
|
{
|
|
2150
2161
|
"kind": "js",
|
|
2151
|
-
"name": "
|
|
2162
|
+
"name": "settingsEnabled",
|
|
2152
2163
|
"declaration": {
|
|
2153
|
-
"name": "
|
|
2154
|
-
"module": "
|
|
2164
|
+
"name": "settingsEnabled",
|
|
2165
|
+
"module": "e2e/tests/disabled-payments.spec.ts"
|
|
2155
2166
|
}
|
|
2156
2167
|
}
|
|
2157
2168
|
]
|
|
2158
2169
|
},
|
|
2159
2170
|
{
|
|
2160
2171
|
"kind": "javascript-module",
|
|
2161
|
-
"path": "
|
|
2172
|
+
"path": "e2e/tests/klarna.spec.ts",
|
|
2173
|
+
"declarations": [],
|
|
2174
|
+
"exports": []
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
"kind": "javascript-module",
|
|
2178
|
+
"path": "e2e/tests/vaulted-paypal.spec.ts",
|
|
2179
|
+
"declarations": [],
|
|
2180
|
+
"exports": []
|
|
2181
|
+
},
|
|
2182
|
+
{
|
|
2183
|
+
"kind": "javascript-module",
|
|
2184
|
+
"path": "e2e/tests/vaulting-card.spec.ts",
|
|
2185
|
+
"declarations": [],
|
|
2186
|
+
"exports": []
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
"kind": "javascript-module",
|
|
2190
|
+
"path": "dist/chunks/ar.KRXB3WQO.js",
|
|
2162
2191
|
"declarations": [
|
|
2163
2192
|
{
|
|
2164
2193
|
"kind": "variable",
|
|
2165
|
-
"name": "
|
|
2166
|
-
"default": "
|
|
2194
|
+
"name": "o",
|
|
2195
|
+
"default": "e"
|
|
2167
2196
|
}
|
|
2168
2197
|
],
|
|
2169
2198
|
"exports": [
|
|
@@ -2171,20 +2200,20 @@
|
|
|
2171
2200
|
"kind": "js",
|
|
2172
2201
|
"name": "templates",
|
|
2173
2202
|
"declaration": {
|
|
2174
|
-
"name": "
|
|
2175
|
-
"module": "dist/chunks/
|
|
2203
|
+
"name": "o",
|
|
2204
|
+
"module": "dist/chunks/ar.KRXB3WQO.js"
|
|
2176
2205
|
}
|
|
2177
2206
|
}
|
|
2178
2207
|
]
|
|
2179
2208
|
},
|
|
2180
2209
|
{
|
|
2181
2210
|
"kind": "javascript-module",
|
|
2182
|
-
"path": "dist/chunks/
|
|
2211
|
+
"path": "dist/chunks/bg.6SKJRXIR.js",
|
|
2183
2212
|
"declarations": [
|
|
2184
2213
|
{
|
|
2185
2214
|
"kind": "variable",
|
|
2186
|
-
"name": "
|
|
2187
|
-
"default": "
|
|
2215
|
+
"name": "o",
|
|
2216
|
+
"default": "e"
|
|
2188
2217
|
}
|
|
2189
2218
|
],
|
|
2190
2219
|
"exports": [
|
|
@@ -2192,19 +2221,19 @@
|
|
|
2192
2221
|
"kind": "js",
|
|
2193
2222
|
"name": "templates",
|
|
2194
2223
|
"declaration": {
|
|
2195
|
-
"name": "
|
|
2196
|
-
"module": "dist/chunks/
|
|
2224
|
+
"name": "o",
|
|
2225
|
+
"module": "dist/chunks/bg.6SKJRXIR.js"
|
|
2197
2226
|
}
|
|
2198
2227
|
}
|
|
2199
2228
|
]
|
|
2200
2229
|
},
|
|
2201
2230
|
{
|
|
2202
2231
|
"kind": "javascript-module",
|
|
2203
|
-
"path": "dist/chunks/
|
|
2232
|
+
"path": "dist/chunks/ca.SANDLFEK.js",
|
|
2204
2233
|
"declarations": [
|
|
2205
2234
|
{
|
|
2206
2235
|
"kind": "variable",
|
|
2207
|
-
"name": "
|
|
2236
|
+
"name": "i",
|
|
2208
2237
|
"default": "e"
|
|
2209
2238
|
}
|
|
2210
2239
|
],
|
|
@@ -2213,36 +2242,118 @@
|
|
|
2213
2242
|
"kind": "js",
|
|
2214
2243
|
"name": "templates",
|
|
2215
2244
|
"declaration": {
|
|
2216
|
-
"name": "
|
|
2217
|
-
"module": "dist/chunks/
|
|
2245
|
+
"name": "i",
|
|
2246
|
+
"module": "dist/chunks/ca.SANDLFEK.js"
|
|
2218
2247
|
}
|
|
2219
2248
|
}
|
|
2220
2249
|
]
|
|
2221
2250
|
},
|
|
2222
2251
|
{
|
|
2223
2252
|
"kind": "javascript-module",
|
|
2224
|
-
"path": "dist/chunks/
|
|
2253
|
+
"path": "dist/chunks/chunk.DV3REKZU.js",
|
|
2225
2254
|
"declarations": [
|
|
2255
|
+
{
|
|
2256
|
+
"kind": "function",
|
|
2257
|
+
"name": "k",
|
|
2258
|
+
"parameters": [
|
|
2259
|
+
{
|
|
2260
|
+
"name": "c"
|
|
2261
|
+
}
|
|
2262
|
+
]
|
|
2263
|
+
},
|
|
2226
2264
|
{
|
|
2227
2265
|
"kind": "variable",
|
|
2228
|
-
"name": "
|
|
2229
|
-
"default": "
|
|
2266
|
+
"name": "b",
|
|
2267
|
+
"default": "c[a]"
|
|
2268
|
+
},
|
|
2269
|
+
{
|
|
2270
|
+
"kind": "function",
|
|
2271
|
+
"name": "l",
|
|
2272
|
+
"parameters": [
|
|
2273
|
+
{
|
|
2274
|
+
"name": "c"
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
"name": "a"
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
"name": "b"
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
"name": "e"
|
|
2284
|
+
}
|
|
2285
|
+
]
|
|
2286
|
+
},
|
|
2287
|
+
{
|
|
2288
|
+
"kind": "function",
|
|
2289
|
+
"name": "m",
|
|
2290
|
+
"parameters": [
|
|
2291
|
+
{
|
|
2292
|
+
"name": "c"
|
|
2293
|
+
},
|
|
2294
|
+
{
|
|
2295
|
+
"name": "a"
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
"name": "b"
|
|
2299
|
+
}
|
|
2300
|
+
]
|
|
2230
2301
|
}
|
|
2231
2302
|
],
|
|
2232
2303
|
"exports": [
|
|
2233
2304
|
{
|
|
2234
2305
|
"kind": "js",
|
|
2235
|
-
"name": "
|
|
2306
|
+
"name": "a",
|
|
2236
2307
|
"declaration": {
|
|
2237
|
-
"name": "
|
|
2238
|
-
"module": "dist/chunks/
|
|
2308
|
+
"name": "k",
|
|
2309
|
+
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
2310
|
+
}
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
"kind": "js",
|
|
2314
|
+
"name": "b",
|
|
2315
|
+
"declaration": {
|
|
2316
|
+
"name": "l",
|
|
2317
|
+
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
2318
|
+
}
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
"kind": "js",
|
|
2322
|
+
"name": "c",
|
|
2323
|
+
"declaration": {
|
|
2324
|
+
"name": "m",
|
|
2325
|
+
"module": "dist/chunks/chunk.DV3REKZU.js"
|
|
2239
2326
|
}
|
|
2240
2327
|
}
|
|
2241
2328
|
]
|
|
2242
2329
|
},
|
|
2243
2330
|
{
|
|
2244
2331
|
"kind": "javascript-module",
|
|
2245
|
-
"path": "dist/chunks/
|
|
2332
|
+
"path": "dist/chunks/chunk.QMLIEEKM.js",
|
|
2333
|
+
"declarations": [
|
|
2334
|
+
{
|
|
2335
|
+
"kind": "variable",
|
|
2336
|
+
"name": "t",
|
|
2337
|
+
"type": {
|
|
2338
|
+
"text": "object"
|
|
2339
|
+
},
|
|
2340
|
+
"default": "{accountHolder:\"Account Holder\",accountHolderEmail:\"me@domain.com\",accountHolderEmailErrorInvalid:\"Provided email is not valid\",accountHolderEmailErrorRequired:\"Account holder email is required\",accountHolderName:\"Account holder name\",accountHolderNameErrorRequired:\"Account holder name is required\",accountHolderNameLabel:\"Account holder name\",accountHolderNamePlaceholder:\"Account holder name\",addCard:\"Add Card\",additionalCardFees:\"Additional card fees may apply\",address:\"Address\",addressLine1:\"Address line 1\",addressLine1ErrorRequired:\"Address line 1 is required\",addressLine1Placeholder:\"Address line 1\",addressLine2:\"Address line 2\",addressLine2ErrorRequired:\"Address line 2 is required\",addressLine2Placeholder:\"Address line 2\",amount:\"Amount\",applePayFailedToTokenize:\"Failed to tokenize\",applePayMissingFirstNameOrLastName:\"Missing first name or last name\",bankHolderNameErrorRequired:\"Account holder name is required\",bankListErrorRequired:\"Bank is required\",bankListLabel:\"List of banks\",bankNameErrorRequired:\"Bank name is required\",bankNameLabel:\"Select your bank from the list\",bankNetworkErrorButton:\"Load again\",bankNetworkErrorTitle:\"Failed to load banks. Check your connection and try again.\",bankSearchInputPlaceholder:\"Search bank\",bankSelectTitle:\"Select your bank\",billingAddressLabel:\"Billing address\",cancel:\"Cancel\",cardCVV:\"CVV\",cardDescription:\"Card description (optional)\",cardDescriptionPlaceholder:\"My favourite card\",cardEndingWith:\"Card ending with\",cardExpired:\"Card has expired\",cardExpiry:\"Expiry (MM/YY)\",cardExpiryPlaceholder:\"MM/YY\",cardholderName:\"Name on card\",cardholderNameErrorRequired:\"Name on card is required\",cardholderNameLabel:\"Name on card\",cardholderNamePlaceholder:\"Full name\",cardIncomplete:\"Card number is incomplete\",cardInvalid:\"Card number is invalid\",cardNameContainsNumbers:\"Name cannot contain numbers\",cardNameLength:\"Name must have between 2 and 45 characters\",cardNameRequired:\"Name on card is required\",cardNumber:\"Card number\",cardRequired:\"Card number is required\",checkSuccessTitle:\"Your payment was successful!\",checkoutWith:\"Checkout with\",chooseAnotherPaymentMethod:\"Choose another payment method\",city:\"City\",cityErrorRequired:\"City is required\",cityLabel:\"City\",cityPlaceholder:\"Cape Town\",completeYourPayment:\"Complete your payment\",completeYourPaymentInTheApp:\"Complete your payment in %s\",confirm:\"Confirm\",confirmCardDeletion:\"Confirm - Delete Card\",confirmPayPalDeletion:\"Confirm - Delete PayPal\",confirmVaultedPaymentMethodDeletion:\"Yes, delete it\",countryCodeErrorRequired:\"Country is required\",countryCodeLabel:\"Country code\",countryCodePlaceholder:\"Country code\",countrySelectPlaceholder:\"Select a country\",creditOrDebitCard:\"Credit or debit card\",creditTransfer:\"Credit Transfer\",cvvIncomplete:\"CVV number is incomplete\",cvvInvalid3:\"CVV must be 3 digits\",cvvInvalid4:\"CVV must be 4 digits\",cvvRequired:\"CVV number is required\",delete:\"Delete\",digits:\"digits\",directDebit:\"Direct debit\",directDebitMandateTitle:\"SEPA Core Direct Debit Mandate\",directDebitSmallPrint:\"By signing this mandate form, you authorise (A) {companyName} to send instructions to your bank to debit your account and (B) your bank to debit your account in accordance with the instruction from {companyName}\",directDebitSuccessDescription:\"{companyName} will appear on your bank statement when payments are taken against the Direct Debit\",directDebitSuccessReference:\"Reference\",directDebitSuccessTitle:\"Direct Debit set up successfully\",dueAt:\"Due at\",dummyApmDescription:\"This is a mocked flow for sandbox. Choose the result you want to test from the list below:\",duplicatePaymentMethodError:\"This payment method is already saved.\",editPaymentMethods:\"Edit saved payment methods\",email:\"Email\",entity:\"Entity\",expiresAt:\"Expires at\",expiryIncomplete:\"Expiry date is incomplete\",expiryInvalid:\"Expiry date is invalid\",expiryMonthInvalid:\"Expiry date month is invalid\",expiryRequired:\"Expiry date is required\",expiryYearInvalid:\"Expiry date year is invalid\",fee_label_fallback:\"Fee\",firstNameErrorRequired:\"First name is required\",firstNameLabel:\"First name\",firstNamePlaceholder:\"First name\",forgetPaymentMethods:\"Forget payment methods\",forgetPayPal:\"Forget PayPal account\",forgetSavedCard:\"Forget saved card ending in {last4Digits}\",fullName:\"First and last name\",getCodeFromBankingApp:\"Get the code from your banking app\",giftCard:\"Gift card\",iban:\"IBAN\",ibanErrorInvalid:\"IBAN is invalid\",ibanErrorRequired:\"IBAN is required\",ibanPlaceholder:\"e.g. GB60 BARC 2000 0055 7799 11\",invalid:\"Invalid\",item_label_fallback:\"Item\",lastNameErrorRequired:\"Last name is required\",lastNameLabel:\"Last name\",lastNamePlaceholder:\"Last name\",loading:\"Loading...\",managePaymentMethods:\"Manage your payment methods\",multibancoFirstStep:\"Payment details for a Multibanco Reference will be created.\",multibancoPayWith:\"Pay with Multibanco\",multibancoPleaseMakePayment:\"Please make the payment at a Multibanco ATM, or through your home banking app.\",multibancoSecondStep:\"Go to a Multibanco ATM or login to your home banking app, then select \\u201CPay for Services\\u201D.\",multibancoThirdStep:\"Enter the Entity, Reference and Amount.\",navigateToPaymentMethods:\"Show other ways to pay\",newPaymentMethod:\"Add a new payment method\",noAdditionalFees:\"No additional fees\",otherWaysToPay:\"Other ways to pay\",pay_with_ach:\"Pay with ACH\",pay_with:\"Pay with\",pay:\"Pay\",payByCard:\"Pay by card\",payByImmediateTransfer:\"Pay by Immediate transfer\",payBySmartTransfer:\"Pay by Bank transfer\",payInInstallments:\"Pay in installments\",paymentMethodPopupLoadingScreenText:\"Hold on! {paymentMethodName} is loading.\",paymentMethodPopupOverlayBringBackThePaymentPage:\"Bring back the payment page\",paymentMethodPopupOverlayClose:\"Close\",paymentMethodPopupOverlayDescription:\"Having trouble viewing the {paymentMethodName} payment page? We'll help you find it!\",paymentMethodPopupOverlayNonFocusDescription:\"Open the {paymentMethodName} payment page to review your payment.\",paymentMethodTypeKlarna:\"Pay later\",paymentMethodTypeKlarnaAccount:\"Pay over time\",paymentMethodTypeKlarnaPaynow:\"Pay now\",payViaBankTransfer:\"Pay via bank transfer\",payWithAch:\"Pay with ACH\",payWithCard:\"Or pay with card\",payWithCrypto:\"Pay with crypto\",pleaseTransferFunds:\"Please Transfer funds to the provided DBS bank account using your Singapore based bank account via FAST (preferred), MEPS or GIRO.\",postalCode:\"Postal code\",postalCodeErrorRequired:\"Postal code is required\",postalCodeLabel:\"Postal code\",postalCodePlaceholder:\"90210\",previouslyUsed:\"Previously used:\",qrCode:\"QR Code\",reference:\"Reference\",required:\"Required\",retry_button:\"Retry\",savedPaymentMethodsEmpty:\"Enter your card details below to add a new payment method\",savePaymentMethod:\"Save payment method\",scanToPay:\"Scan to pay or take a screenshot\",sepaCreditTransfer:\"SEPA Credit Transfer\",sepaDirectDebit:\"SEPA Direct Debit\",session_complete_payment_cancellation_title:\"Payment cancelled\",session_complete_payment_failure_title:\"Payment failed\",session_complete_payment_success_title:\"Payment authorized\",setUpDirectDebit:\"Set up Direct Debit\",shipping_address_unsupported_error:\"We do not ship to this address\",shipping:\"Shipping\",showPaymentDetails:\"Show payment details\",sixDigitCodeErrorNumeric:\"Six digit code should only contain numbers\",sixDigitCodeErrorRequired:\"Six digit code is required\",sixDigitCodeErrorTooShort:\"Code is too short\",sixDigitCodeLabel:\"Six digit code\",sixDigitCodePlaceholder:\"123456\",something_went_wrong_error:\"Something went wrong. Please try again.\",stateErrorRequired:\"State, Region or County is required\",stateLabel:\"State / Region / County\",statePlaceholder:\"State / Region / County\",street:\"Street\",streetPlaceholder:\"My street\",stripe_ach_mandate_accept_button:\"Accept\",stripe_ach_mandate_cancel_payment_button:\"Cancel payment\",stripe_ach_mandate_not_accepted_description:\"Mandate was not accepted\",stripe_ach_mandate_template_web:`By clicking Accept, you authorize {merchantName} to debit the selected bank account for any amount owed for charges arising from your use of {merchantName}\\u2019s services and/or purchase of products from {merchantName}, pursuant to {merchantName}\\u2019s website and terms, until this authorization is revoked. You may amend or cancel this authorization at any time by providing notice to {merchantName} with 30 (thirty) days notice. If you use {merchantName}\\u2019s services or purchase additional products periodically pursuant to {merchantName}\\u2019s terms, you authorize {merchantName} to debit your bank account periodically. Payments that fall outside the regular debits authorized above will only be debited after your authorization is obtained.`,stripe_ach_payment_request_cancelled:\"Please try again or select another bank\",stripe_ach_payment_request_completed_successfully:\"You have now authorized your bank account to be debited. You will be notified via email once the payment has been collected successfully.\",stripe_ach_user_details_collection_continue_button:\"Continue\",stripe_ach_user_details_collection_data_usage_label:\"We'll only use this to keep you updated about your payment\",stripe_ach_user_details_collection_email_address_label:\"Email address\",stripe_ach_user_details_collection_first_name_label:\"First name\",stripe_ach_user_details_collection_invalid_email_address:\"The email address you entered doesn't look like a real email address. Please make sure it includes an '@' and a domain (like '@example.com').\",stripe_ach_user_details_collection_invalid_first_name:\"Please enter a valid first name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_invalid_last_name:\"Please enter a valid last name. Avoid using numbers or special characters.\",stripe_ach_user_details_collection_last_name_label:\"Last name\",stripe_ach_user_details_collection_subtitle_label:\"Your personal details\",suburb:\"Suburb\",suburbPlaceholder:\"My suburb\",telephoneNumberErrorRequired:\"Phone number is required\",telephoneNumberErrorTooShort:\"Phone number is too short\",telephoneNumberLabel:\"Phone number\",telephoneNumberPlaceholder:\"123xxxxxx\",timeOnDate:\"{time} on {date}\",tokenizationError:\"Your payment could not be processed. Please try another payment method.\",unsupportedCardType:\"Unsupported card type\",uploadScreenshot:\"Upload the screenshot in your banking app\",yourBankDetails:\"Your bank details\"}"
|
|
2341
|
+
}
|
|
2342
|
+
],
|
|
2343
|
+
"exports": [
|
|
2344
|
+
{
|
|
2345
|
+
"kind": "js",
|
|
2346
|
+
"name": "a",
|
|
2347
|
+
"declaration": {
|
|
2348
|
+
"name": "t",
|
|
2349
|
+
"module": "dist/chunks/chunk.QMLIEEKM.js"
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
]
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
"kind": "javascript-module",
|
|
2356
|
+
"path": "dist/chunks/cs.FC4I5M3C.js",
|
|
2246
2357
|
"declarations": [
|
|
2247
2358
|
{
|
|
2248
2359
|
"kind": "variable",
|
|
@@ -2256,19 +2367,19 @@
|
|
|
2256
2367
|
"name": "templates",
|
|
2257
2368
|
"declaration": {
|
|
2258
2369
|
"name": "n",
|
|
2259
|
-
"module": "dist/chunks/
|
|
2370
|
+
"module": "dist/chunks/cs.FC4I5M3C.js"
|
|
2260
2371
|
}
|
|
2261
2372
|
}
|
|
2262
2373
|
]
|
|
2263
2374
|
},
|
|
2264
2375
|
{
|
|
2265
2376
|
"kind": "javascript-module",
|
|
2266
|
-
"path": "dist/chunks/
|
|
2377
|
+
"path": "dist/chunks/da.YI32NZ7B.js",
|
|
2267
2378
|
"declarations": [
|
|
2268
2379
|
{
|
|
2269
2380
|
"kind": "variable",
|
|
2270
|
-
"name": "
|
|
2271
|
-
"default": "
|
|
2381
|
+
"name": "a",
|
|
2382
|
+
"default": "e"
|
|
2272
2383
|
}
|
|
2273
2384
|
],
|
|
2274
2385
|
"exports": [
|
|
@@ -2276,15 +2387,15 @@
|
|
|
2276
2387
|
"kind": "js",
|
|
2277
2388
|
"name": "templates",
|
|
2278
2389
|
"declaration": {
|
|
2279
|
-
"name": "
|
|
2280
|
-
"module": "dist/chunks/
|
|
2390
|
+
"name": "a",
|
|
2391
|
+
"module": "dist/chunks/da.YI32NZ7B.js"
|
|
2281
2392
|
}
|
|
2282
2393
|
}
|
|
2283
2394
|
]
|
|
2284
2395
|
},
|
|
2285
2396
|
{
|
|
2286
2397
|
"kind": "javascript-module",
|
|
2287
|
-
"path": "dist/chunks/
|
|
2398
|
+
"path": "dist/chunks/de.7M7UFQB7.js",
|
|
2288
2399
|
"declarations": [
|
|
2289
2400
|
{
|
|
2290
2401
|
"kind": "variable",
|
|
@@ -2298,18 +2409,18 @@
|
|
|
2298
2409
|
"name": "templates",
|
|
2299
2410
|
"declaration": {
|
|
2300
2411
|
"name": "t",
|
|
2301
|
-
"module": "dist/chunks/
|
|
2412
|
+
"module": "dist/chunks/de.7M7UFQB7.js"
|
|
2302
2413
|
}
|
|
2303
2414
|
}
|
|
2304
2415
|
]
|
|
2305
2416
|
},
|
|
2306
2417
|
{
|
|
2307
2418
|
"kind": "javascript-module",
|
|
2308
|
-
"path": "dist/chunks/
|
|
2419
|
+
"path": "dist/chunks/el.XSGTYDZR.js",
|
|
2309
2420
|
"declarations": [
|
|
2310
2421
|
{
|
|
2311
2422
|
"kind": "variable",
|
|
2312
|
-
"name": "
|
|
2423
|
+
"name": "o",
|
|
2313
2424
|
"default": "e"
|
|
2314
2425
|
}
|
|
2315
2426
|
],
|
|
@@ -2318,20 +2429,20 @@
|
|
|
2318
2429
|
"kind": "js",
|
|
2319
2430
|
"name": "templates",
|
|
2320
2431
|
"declaration": {
|
|
2321
|
-
"name": "
|
|
2322
|
-
"module": "dist/chunks/
|
|
2432
|
+
"name": "o",
|
|
2433
|
+
"module": "dist/chunks/el.XSGTYDZR.js"
|
|
2323
2434
|
}
|
|
2324
2435
|
}
|
|
2325
2436
|
]
|
|
2326
2437
|
},
|
|
2327
2438
|
{
|
|
2328
2439
|
"kind": "javascript-module",
|
|
2329
|
-
"path": "dist/chunks/
|
|
2440
|
+
"path": "dist/chunks/en-GB.VO4GDE3X.js",
|
|
2330
2441
|
"declarations": [
|
|
2331
2442
|
{
|
|
2332
2443
|
"kind": "variable",
|
|
2333
|
-
"name": "
|
|
2334
|
-
"default": "
|
|
2444
|
+
"name": "o",
|
|
2445
|
+
"default": "t"
|
|
2335
2446
|
}
|
|
2336
2447
|
],
|
|
2337
2448
|
"exports": [
|
|
@@ -2339,20 +2450,20 @@
|
|
|
2339
2450
|
"kind": "js",
|
|
2340
2451
|
"name": "templates",
|
|
2341
2452
|
"declaration": {
|
|
2342
|
-
"name": "
|
|
2343
|
-
"module": "dist/chunks/
|
|
2453
|
+
"name": "o",
|
|
2454
|
+
"module": "dist/chunks/en-GB.VO4GDE3X.js"
|
|
2344
2455
|
}
|
|
2345
2456
|
}
|
|
2346
2457
|
]
|
|
2347
2458
|
},
|
|
2348
2459
|
{
|
|
2349
2460
|
"kind": "javascript-module",
|
|
2350
|
-
"path": "dist/chunks/
|
|
2461
|
+
"path": "dist/chunks/en.MNFLVOE3.js",
|
|
2351
2462
|
"declarations": [
|
|
2352
2463
|
{
|
|
2353
2464
|
"kind": "variable",
|
|
2354
2465
|
"name": "o",
|
|
2355
|
-
"default": "
|
|
2466
|
+
"default": "t"
|
|
2356
2467
|
}
|
|
2357
2468
|
],
|
|
2358
2469
|
"exports": [
|
|
@@ -2361,18 +2472,18 @@
|
|
|
2361
2472
|
"name": "templates",
|
|
2362
2473
|
"declaration": {
|
|
2363
2474
|
"name": "o",
|
|
2364
|
-
"module": "dist/chunks/
|
|
2475
|
+
"module": "dist/chunks/en.MNFLVOE3.js"
|
|
2365
2476
|
}
|
|
2366
2477
|
}
|
|
2367
2478
|
]
|
|
2368
2479
|
},
|
|
2369
2480
|
{
|
|
2370
2481
|
"kind": "javascript-module",
|
|
2371
|
-
"path": "dist/chunks/
|
|
2482
|
+
"path": "dist/chunks/es-AR.TBWVUZEF.js",
|
|
2372
2483
|
"declarations": [
|
|
2373
2484
|
{
|
|
2374
2485
|
"kind": "variable",
|
|
2375
|
-
"name": "
|
|
2486
|
+
"name": "i",
|
|
2376
2487
|
"default": "e"
|
|
2377
2488
|
}
|
|
2378
2489
|
],
|
|
@@ -2381,19 +2492,19 @@
|
|
|
2381
2492
|
"kind": "js",
|
|
2382
2493
|
"name": "templates",
|
|
2383
2494
|
"declaration": {
|
|
2384
|
-
"name": "
|
|
2385
|
-
"module": "dist/chunks/
|
|
2495
|
+
"name": "i",
|
|
2496
|
+
"module": "dist/chunks/es-AR.TBWVUZEF.js"
|
|
2386
2497
|
}
|
|
2387
2498
|
}
|
|
2388
2499
|
]
|
|
2389
2500
|
},
|
|
2390
2501
|
{
|
|
2391
2502
|
"kind": "javascript-module",
|
|
2392
|
-
"path": "dist/chunks/
|
|
2503
|
+
"path": "dist/chunks/es-MX.6EMWUABR.js",
|
|
2393
2504
|
"declarations": [
|
|
2394
2505
|
{
|
|
2395
2506
|
"kind": "variable",
|
|
2396
|
-
"name": "
|
|
2507
|
+
"name": "i",
|
|
2397
2508
|
"default": "e"
|
|
2398
2509
|
}
|
|
2399
2510
|
],
|
|
@@ -2402,19 +2513,19 @@
|
|
|
2402
2513
|
"kind": "js",
|
|
2403
2514
|
"name": "templates",
|
|
2404
2515
|
"declaration": {
|
|
2405
|
-
"name": "
|
|
2406
|
-
"module": "dist/chunks/
|
|
2516
|
+
"name": "i",
|
|
2517
|
+
"module": "dist/chunks/es-MX.6EMWUABR.js"
|
|
2407
2518
|
}
|
|
2408
2519
|
}
|
|
2409
2520
|
]
|
|
2410
2521
|
},
|
|
2411
2522
|
{
|
|
2412
2523
|
"kind": "javascript-module",
|
|
2413
|
-
"path": "dist/chunks/
|
|
2524
|
+
"path": "dist/chunks/es.XZLDFHYI.js",
|
|
2414
2525
|
"declarations": [
|
|
2415
2526
|
{
|
|
2416
2527
|
"kind": "variable",
|
|
2417
|
-
"name": "
|
|
2528
|
+
"name": "i",
|
|
2418
2529
|
"default": "e"
|
|
2419
2530
|
}
|
|
2420
2531
|
],
|
|
@@ -2423,19 +2534,19 @@
|
|
|
2423
2534
|
"kind": "js",
|
|
2424
2535
|
"name": "templates",
|
|
2425
2536
|
"declaration": {
|
|
2426
|
-
"name": "
|
|
2427
|
-
"module": "dist/chunks/
|
|
2537
|
+
"name": "i",
|
|
2538
|
+
"module": "dist/chunks/es.XZLDFHYI.js"
|
|
2428
2539
|
}
|
|
2429
2540
|
}
|
|
2430
2541
|
]
|
|
2431
2542
|
},
|
|
2432
2543
|
{
|
|
2433
2544
|
"kind": "javascript-module",
|
|
2434
|
-
"path": "dist/chunks/
|
|
2545
|
+
"path": "dist/chunks/et-EE.JBSFMKZ2.js",
|
|
2435
2546
|
"declarations": [
|
|
2436
2547
|
{
|
|
2437
2548
|
"kind": "variable",
|
|
2438
|
-
"name": "
|
|
2549
|
+
"name": "r",
|
|
2439
2550
|
"default": "e"
|
|
2440
2551
|
}
|
|
2441
2552
|
],
|
|
@@ -2444,20 +2555,20 @@
|
|
|
2444
2555
|
"kind": "js",
|
|
2445
2556
|
"name": "templates",
|
|
2446
2557
|
"declaration": {
|
|
2447
|
-
"name": "
|
|
2448
|
-
"module": "dist/chunks/
|
|
2558
|
+
"name": "r",
|
|
2559
|
+
"module": "dist/chunks/et-EE.JBSFMKZ2.js"
|
|
2449
2560
|
}
|
|
2450
2561
|
}
|
|
2451
2562
|
]
|
|
2452
2563
|
},
|
|
2453
2564
|
{
|
|
2454
2565
|
"kind": "javascript-module",
|
|
2455
|
-
"path": "dist/chunks/
|
|
2566
|
+
"path": "dist/chunks/fi-FI.I75VK2ID.js",
|
|
2456
2567
|
"declarations": [
|
|
2457
2568
|
{
|
|
2458
2569
|
"kind": "variable",
|
|
2459
|
-
"name": "
|
|
2460
|
-
"default": "
|
|
2570
|
+
"name": "n",
|
|
2571
|
+
"default": "a"
|
|
2461
2572
|
}
|
|
2462
2573
|
],
|
|
2463
2574
|
"exports": [
|
|
@@ -2465,19 +2576,19 @@
|
|
|
2465
2576
|
"kind": "js",
|
|
2466
2577
|
"name": "templates",
|
|
2467
2578
|
"declaration": {
|
|
2468
|
-
"name": "
|
|
2469
|
-
"module": "dist/chunks/
|
|
2579
|
+
"name": "n",
|
|
2580
|
+
"module": "dist/chunks/fi-FI.I75VK2ID.js"
|
|
2470
2581
|
}
|
|
2471
2582
|
}
|
|
2472
2583
|
]
|
|
2473
2584
|
},
|
|
2474
2585
|
{
|
|
2475
2586
|
"kind": "javascript-module",
|
|
2476
|
-
"path": "dist/chunks/
|
|
2587
|
+
"path": "dist/chunks/fr.JBNP6RXT.js",
|
|
2477
2588
|
"declarations": [
|
|
2478
2589
|
{
|
|
2479
2590
|
"kind": "variable",
|
|
2480
|
-
"name": "
|
|
2591
|
+
"name": "i",
|
|
2481
2592
|
"default": "e"
|
|
2482
2593
|
}
|
|
2483
2594
|
],
|
|
@@ -2486,15 +2597,15 @@
|
|
|
2486
2597
|
"kind": "js",
|
|
2487
2598
|
"name": "templates",
|
|
2488
2599
|
"declaration": {
|
|
2489
|
-
"name": "
|
|
2490
|
-
"module": "dist/chunks/
|
|
2600
|
+
"name": "i",
|
|
2601
|
+
"module": "dist/chunks/fr.JBNP6RXT.js"
|
|
2491
2602
|
}
|
|
2492
2603
|
}
|
|
2493
2604
|
]
|
|
2494
2605
|
},
|
|
2495
2606
|
{
|
|
2496
2607
|
"kind": "javascript-module",
|
|
2497
|
-
"path": "dist/chunks/
|
|
2608
|
+
"path": "dist/chunks/he.PW253QAL.js",
|
|
2498
2609
|
"declarations": [
|
|
2499
2610
|
{
|
|
2500
2611
|
"kind": "variable",
|
|
@@ -2508,19 +2619,19 @@
|
|
|
2508
2619
|
"name": "templates",
|
|
2509
2620
|
"declaration": {
|
|
2510
2621
|
"name": "o",
|
|
2511
|
-
"module": "dist/chunks/
|
|
2622
|
+
"module": "dist/chunks/he.PW253QAL.js"
|
|
2512
2623
|
}
|
|
2513
2624
|
}
|
|
2514
2625
|
]
|
|
2515
2626
|
},
|
|
2516
2627
|
{
|
|
2517
2628
|
"kind": "javascript-module",
|
|
2518
|
-
"path": "dist/chunks/
|
|
2629
|
+
"path": "dist/chunks/hr.LM4RITYJ.js",
|
|
2519
2630
|
"declarations": [
|
|
2520
2631
|
{
|
|
2521
2632
|
"kind": "variable",
|
|
2522
|
-
"name": "
|
|
2523
|
-
"default": "
|
|
2633
|
+
"name": "t",
|
|
2634
|
+
"default": "e"
|
|
2524
2635
|
}
|
|
2525
2636
|
],
|
|
2526
2637
|
"exports": [
|
|
@@ -2528,20 +2639,20 @@
|
|
|
2528
2639
|
"kind": "js",
|
|
2529
2640
|
"name": "templates",
|
|
2530
2641
|
"declaration": {
|
|
2531
|
-
"name": "
|
|
2532
|
-
"module": "dist/chunks/
|
|
2642
|
+
"name": "t",
|
|
2643
|
+
"module": "dist/chunks/hr.LM4RITYJ.js"
|
|
2533
2644
|
}
|
|
2534
2645
|
}
|
|
2535
2646
|
]
|
|
2536
2647
|
},
|
|
2537
2648
|
{
|
|
2538
2649
|
"kind": "javascript-module",
|
|
2539
|
-
"path": "dist/chunks/
|
|
2650
|
+
"path": "dist/chunks/hu.JGCKQA6J.js",
|
|
2540
2651
|
"declarations": [
|
|
2541
2652
|
{
|
|
2542
2653
|
"kind": "variable",
|
|
2543
|
-
"name": "
|
|
2544
|
-
"default": "
|
|
2654
|
+
"name": "s",
|
|
2655
|
+
"default": "e"
|
|
2545
2656
|
}
|
|
2546
2657
|
],
|
|
2547
2658
|
"exports": [
|
|
@@ -2549,19 +2660,40 @@
|
|
|
2549
2660
|
"kind": "js",
|
|
2550
2661
|
"name": "templates",
|
|
2551
2662
|
"declaration": {
|
|
2552
|
-
"name": "
|
|
2553
|
-
"module": "dist/chunks/
|
|
2663
|
+
"name": "s",
|
|
2664
|
+
"module": "dist/chunks/hu.JGCKQA6J.js"
|
|
2554
2665
|
}
|
|
2555
2666
|
}
|
|
2556
2667
|
]
|
|
2557
2668
|
},
|
|
2558
2669
|
{
|
|
2559
2670
|
"kind": "javascript-module",
|
|
2560
|
-
"path": "dist/chunks/
|
|
2671
|
+
"path": "dist/chunks/id.VBXULDDY.js",
|
|
2561
2672
|
"declarations": [
|
|
2562
2673
|
{
|
|
2563
2674
|
"kind": "variable",
|
|
2564
|
-
"name": "
|
|
2675
|
+
"name": "r",
|
|
2676
|
+
"default": "a"
|
|
2677
|
+
}
|
|
2678
|
+
],
|
|
2679
|
+
"exports": [
|
|
2680
|
+
{
|
|
2681
|
+
"kind": "js",
|
|
2682
|
+
"name": "templates",
|
|
2683
|
+
"declaration": {
|
|
2684
|
+
"name": "r",
|
|
2685
|
+
"module": "dist/chunks/id.VBXULDDY.js"
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
]
|
|
2689
|
+
},
|
|
2690
|
+
{
|
|
2691
|
+
"kind": "javascript-module",
|
|
2692
|
+
"path": "dist/chunks/it.7Q6BFLDK.js",
|
|
2693
|
+
"declarations": [
|
|
2694
|
+
{
|
|
2695
|
+
"kind": "variable",
|
|
2696
|
+
"name": "r",
|
|
2565
2697
|
"default": "e"
|
|
2566
2698
|
}
|
|
2567
2699
|
],
|
|
@@ -2570,15 +2702,15 @@
|
|
|
2570
2702
|
"kind": "js",
|
|
2571
2703
|
"name": "templates",
|
|
2572
2704
|
"declaration": {
|
|
2573
|
-
"name": "
|
|
2574
|
-
"module": "dist/chunks/
|
|
2705
|
+
"name": "r",
|
|
2706
|
+
"module": "dist/chunks/it.7Q6BFLDK.js"
|
|
2575
2707
|
}
|
|
2576
2708
|
}
|
|
2577
2709
|
]
|
|
2578
2710
|
},
|
|
2579
2711
|
{
|
|
2580
2712
|
"kind": "javascript-module",
|
|
2581
|
-
"path": "dist/chunks/
|
|
2713
|
+
"path": "dist/chunks/ja.QOC76SSC.js",
|
|
2582
2714
|
"declarations": [
|
|
2583
2715
|
{
|
|
2584
2716
|
"kind": "variable",
|
|
@@ -2592,14 +2724,14 @@
|
|
|
2592
2724
|
"name": "templates",
|
|
2593
2725
|
"declaration": {
|
|
2594
2726
|
"name": "o",
|
|
2595
|
-
"module": "dist/chunks/
|
|
2727
|
+
"module": "dist/chunks/ja.QOC76SSC.js"
|
|
2596
2728
|
}
|
|
2597
2729
|
}
|
|
2598
2730
|
]
|
|
2599
2731
|
},
|
|
2600
2732
|
{
|
|
2601
2733
|
"kind": "javascript-module",
|
|
2602
|
-
"path": "dist/chunks/
|
|
2734
|
+
"path": "dist/chunks/ko.BANZIFNH.js",
|
|
2603
2735
|
"declarations": [
|
|
2604
2736
|
{
|
|
2605
2737
|
"kind": "variable",
|
|
@@ -2613,654 +2745,535 @@
|
|
|
2613
2745
|
"name": "templates",
|
|
2614
2746
|
"declaration": {
|
|
2615
2747
|
"name": "o",
|
|
2616
|
-
"module": "dist/chunks/
|
|
2748
|
+
"module": "dist/chunks/ko.BANZIFNH.js"
|
|
2617
2749
|
}
|
|
2618
2750
|
}
|
|
2619
2751
|
]
|
|
2620
2752
|
},
|
|
2621
2753
|
{
|
|
2622
2754
|
"kind": "javascript-module",
|
|
2623
|
-
"path": "
|
|
2755
|
+
"path": "dist/chunks/lt-LT.Q2SRJOKH.js",
|
|
2624
2756
|
"declarations": [
|
|
2625
2757
|
{
|
|
2626
2758
|
"kind": "variable",
|
|
2627
|
-
"name": "
|
|
2628
|
-
"
|
|
2629
|
-
"text": "string"
|
|
2630
|
-
},
|
|
2631
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJDdXN0b21lcjEyMyIsIm9yZGVySWQiOiIxMjU3NyIsImFtb3VudCI6MTA1MCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsiZXhwcmVzc0NoZWNrb3V0IjoidHJ1ZSJ9LCJvcmRlciI6eyJzaGlwcGluZyI6eyJhbW91bnQiOjUwLCJtZXRob2RJZCI6IlJlZ3VsYXIiLCJtZXRob2ROYW1lIjoiUmVndWxhciA1MCIsIm1ldGhvZERlc2NyaXB0aW9uIjoiUmVndWxhciJ9LCJjb3VudHJ5Q29kZSI6IkZSIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjk1MCwicXVhbnRpdHkiOjF9LHsiaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ibHVlIiwiZGVzY3JpcHRpb24iOiJQcmltZXIgQmx1ZSIsImFtb3VudCI6NTAsInF1YW50aXR5IjoxfV19LCJjdXN0b21lciI6eyJiaWxsaW5nQWRkcmVzcyI6eyJmaXJzdE5hbWUiOiJ0ZXN0dCIsImxhc3ROYW1lIjoidGVzdCIsInBvc3RhbENvZGUiOiI1MTY2MiIsImFkZHJlc3NMaW5lMSI6ImFrc2psa2FqbCIsImFkZHJlc3NMaW5lMiI6ImpmamthaGsiLCJjb3VudHJ5Q29kZSI6IlBMIiwiY2l0eSI6Indyb2NsYXciLCJzdGF0ZSI6InRlc3QifSwic2hpcHBpbmdBZGRyZXNzIjp7fSwibmF0aW9uYWxEb2N1bWVudElkIjoiOTAxMTIxMTIzNDU2NyJ9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsInZhdWx0T25BZ3JlZW1lbnQiOmZhbHNlLCJvcmRlcmVkQWxsb3dlZENhcmROZXR3b3JrcyI6WyJWSVNBIiwiTUFTVEVSQ0FSRCIsIkFNRVgiLCJNQUVTVFJPIiwiVU5JT05QQVkiLCJDQVJURVNfQkFOQ0FJUkVTIiwiREFOS09SVCIsIkRJTkVSU19DTFVCIiwiRElTQ09WRVIiLCJFTlJPVVRFIiwiRUxPIiwiSElQRVIiLCJJTlRFUkFDIiwiSkNCIiwiTUlSIiwiT1RIRVIiXX19LCJjbGllbnRPcHRpb25zIjp7ImxvY2FsZSI6ImVuIiwiYXBpVmVyc2lvbiI6IjIuNCIsInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwidmF1bHQiOnsidmlzaWJsZSI6ZmFsc2V9LCJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiZXlKMGVYQWlPaUpLVjFRaUxDSmhiR2NpT2lKSVV6STFOaUo5LmV5SnpkV0lpT2lJM05XUmpOekF4TWkwM09EVmpMVFEwTTJFdE9EQmlNUzB3WlRGbU9EaG1aRFJtWVdRaUxDSnBZWFFpT2pFM05UazBPRGd4TkRJc0ltdHBaQ0k2SW5ZeElpd2lhblJwSWpvaVlXWXhZemcxWW1VdE16UmhOaTAwWWpGakxUa3pObVl0WWpnME5tVXlOV1k1TnpFeEluMC5CaElodFpBcGotdWJJckJ3bW1zR1U4dGlCdWNEMU93WFpySmcxdXRRRzZjIiwiYXBpVmVyc2lvbiI6IjIuNCIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6eyJsb2NhbGUiOiJmci1GUiIsInN0cmlwZSI6eyJwdWJsaXNoYWJsZUtleSI6InBrX3Rlc3RfNTFPOHpmUUtVSzZiWElkQzJ4UHZTUzZVdnJpRTlrd3B2dHR3QjdIOVBBemhOQVpvR3pMZ2lET3lkNFdvb296ZVdIeG9ScktvNmIyVmpaWXhOQ01YM1c3YmswMHJNRGl2amF1In0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsic2RrQ29yZSI6dHJ1ZX19'"
|
|
2632
|
-
},
|
|
2633
|
-
{
|
|
2634
|
-
"kind": "variable",
|
|
2635
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2636
|
-
"type": {
|
|
2637
|
-
"text": "object"
|
|
2638
|
-
},
|
|
2639
|
-
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'BILLING_ADDRESS', options: { firstName: false, lastName: false, city: true, countryCode: true, postalCode: true, addressLine1: true, addressLine2: true, state: false, }, }, ], clientSession: { clientSessionId: '0ad5b471-5b80-436b-ad03-57850585e3fd', order: { orderId: '12577', currencyCode: 'EUR', countryCode: 'FR', totalOrderAmount: 1050, merchantAmount: 1050, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 950, quantity: 1, }, { itemId: 'primer-hoodie-blue', description: 'Primer Blue', amount: 50, quantity: 1, }, ], shipping: { amount: 50, methodId: 'Regular', methodName: 'Regular 50', methodDescription: 'Regular', }, }, customer: { customerId: 'Customer123', billingAddress: { firstName: 'testt', lastName: 'test', postalCode: '51662', addressLine1: 'aksjlkajl', addressLine2: 'jfjkahk', countryCode: 'PL', city: 'wroclaw', state: 'test', }, shippingAddress: {}, nationalDocumentId: '9011211234567', }, paymentMethod: { vaultOnSuccess: false, orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '75dc7012-785c-443a-80b1-0e1f88fd4fad', env: 'SANDBOX', paymentMethods: [ { id: '42e32c6e-7faa-4f5a-97d0-9c4f7b848ae1', type: 'APPLE_PAY', options: { merchantId: '75dc7012785c443a80b10e1f88fd4fad', merchantName: 'Primer', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
2640
|
-
},
|
|
2641
|
-
{
|
|
2642
|
-
"kind": "variable",
|
|
2643
|
-
"name": "CARD_NUMBER",
|
|
2644
|
-
"type": {
|
|
2645
|
-
"text": "string"
|
|
2646
|
-
},
|
|
2647
|
-
"default": "'4242 4242 4242 4242'"
|
|
2648
|
-
},
|
|
2649
|
-
{
|
|
2650
|
-
"kind": "function",
|
|
2651
|
-
"name": "mockBinData",
|
|
2652
|
-
"parameters": [
|
|
2653
|
-
{
|
|
2654
|
-
"name": "page",
|
|
2655
|
-
"type": {
|
|
2656
|
-
"text": "Page"
|
|
2657
|
-
}
|
|
2658
|
-
}
|
|
2659
|
-
]
|
|
2660
|
-
},
|
|
2661
|
-
{
|
|
2662
|
-
"kind": "function",
|
|
2663
|
-
"name": "mockPaymentInstruments",
|
|
2664
|
-
"parameters": [
|
|
2665
|
-
{
|
|
2666
|
-
"name": "page",
|
|
2667
|
-
"type": {
|
|
2668
|
-
"text": "Page"
|
|
2669
|
-
}
|
|
2670
|
-
}
|
|
2671
|
-
]
|
|
2672
|
-
},
|
|
2673
|
-
{
|
|
2674
|
-
"kind": "function",
|
|
2675
|
-
"name": "mockPayments",
|
|
2676
|
-
"parameters": [
|
|
2677
|
-
{
|
|
2678
|
-
"name": "page",
|
|
2679
|
-
"type": {
|
|
2680
|
-
"text": "Page"
|
|
2681
|
-
}
|
|
2682
|
-
}
|
|
2683
|
-
]
|
|
2759
|
+
"name": "t",
|
|
2760
|
+
"default": "a"
|
|
2684
2761
|
}
|
|
2685
2762
|
],
|
|
2686
2763
|
"exports": [
|
|
2687
2764
|
{
|
|
2688
2765
|
"kind": "js",
|
|
2689
|
-
"name": "
|
|
2690
|
-
"declaration": {
|
|
2691
|
-
"name": "settings",
|
|
2692
|
-
"module": "e2e/mocks/billing-address.ts"
|
|
2693
|
-
}
|
|
2694
|
-
},
|
|
2695
|
-
{
|
|
2696
|
-
"kind": "js",
|
|
2697
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2766
|
+
"name": "templates",
|
|
2698
2767
|
"declaration": {
|
|
2699
|
-
"name": "
|
|
2700
|
-
"module": "
|
|
2768
|
+
"name": "t",
|
|
2769
|
+
"module": "dist/chunks/lt-LT.Q2SRJOKH.js"
|
|
2701
2770
|
}
|
|
2702
|
-
}
|
|
2771
|
+
}
|
|
2772
|
+
]
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
"kind": "javascript-module",
|
|
2776
|
+
"path": "dist/chunks/lt.XMNFEN5T.js",
|
|
2777
|
+
"declarations": [
|
|
2703
2778
|
{
|
|
2704
|
-
"kind": "
|
|
2705
|
-
"name": "
|
|
2706
|
-
"
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
},
|
|
2779
|
+
"kind": "variable",
|
|
2780
|
+
"name": "o",
|
|
2781
|
+
"default": "a"
|
|
2782
|
+
}
|
|
2783
|
+
],
|
|
2784
|
+
"exports": [
|
|
2711
2785
|
{
|
|
2712
2786
|
"kind": "js",
|
|
2713
|
-
"name": "
|
|
2787
|
+
"name": "templates",
|
|
2714
2788
|
"declaration": {
|
|
2715
|
-
"name": "
|
|
2716
|
-
"module": "
|
|
2789
|
+
"name": "o",
|
|
2790
|
+
"module": "dist/chunks/lt.XMNFEN5T.js"
|
|
2717
2791
|
}
|
|
2718
|
-
}
|
|
2792
|
+
}
|
|
2793
|
+
]
|
|
2794
|
+
},
|
|
2795
|
+
{
|
|
2796
|
+
"kind": "javascript-module",
|
|
2797
|
+
"path": "dist/chunks/lv-LV.3AJDTMU5.js",
|
|
2798
|
+
"declarations": [
|
|
2719
2799
|
{
|
|
2720
|
-
"kind": "
|
|
2721
|
-
"name": "
|
|
2722
|
-
"
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
},
|
|
2800
|
+
"kind": "variable",
|
|
2801
|
+
"name": "t",
|
|
2802
|
+
"default": "a"
|
|
2803
|
+
}
|
|
2804
|
+
],
|
|
2805
|
+
"exports": [
|
|
2727
2806
|
{
|
|
2728
2807
|
"kind": "js",
|
|
2729
|
-
"name": "
|
|
2808
|
+
"name": "templates",
|
|
2730
2809
|
"declaration": {
|
|
2731
|
-
"name": "
|
|
2732
|
-
"module": "
|
|
2810
|
+
"name": "t",
|
|
2811
|
+
"module": "dist/chunks/lv-LV.3AJDTMU5.js"
|
|
2733
2812
|
}
|
|
2734
2813
|
}
|
|
2735
2814
|
]
|
|
2736
2815
|
},
|
|
2737
2816
|
{
|
|
2738
2817
|
"kind": "javascript-module",
|
|
2739
|
-
"path": "
|
|
2818
|
+
"path": "dist/chunks/lv.TFPDXNEV.js",
|
|
2740
2819
|
"declarations": [
|
|
2741
2820
|
{
|
|
2742
2821
|
"kind": "variable",
|
|
2743
|
-
"name": "
|
|
2744
|
-
"
|
|
2745
|
-
"text": "string"
|
|
2746
|
-
},
|
|
2747
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI3NDUyNyIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiZmVlcyI6W3sidHlwZSI6IlNVUkNIQVJHRSIsImFtb3VudCI6MH1dLCJjb3VudHJ5Q29kZSI6IkRFIiwibGluZUl0ZW1zIjpbeyJpdGVtSWQiOiJwcmltZXItaG9vZGllLWdyYXkiLCJkZXNjcmlwdGlvbiI6IlByaW1lciBIb29kaWUiLCJhbW91bnQiOjYwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImZpcnN0TmFtZSI6IkNhcmQiLCJsYXN0TmFtZSI6IkhvbGRlciBOYW1lIiwicG9zdGFsQ29kZSI6Ijk0MDQzIiwiYWRkcmVzc0xpbmUxIjoiMTYwMCBBbXBoaXRoZWF0cmUgUGFya3dheSIsImNvdW50cnlDb2RlIjoiVVMiLCJjaXR5IjoiTW91bnRhaW4gVmlldyIsInN0YXRlIjoiQ0EifX0sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7InNka0NvcmUiOmZhbHNlfX0='"
|
|
2748
|
-
},
|
|
2749
|
-
{
|
|
2750
|
-
"kind": "variable",
|
|
2751
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2752
|
-
"type": {
|
|
2753
|
-
"text": "object"
|
|
2754
|
-
},
|
|
2755
|
-
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'TAX_CALCULATION', requestUrl: '/sales-tax/calculate', }, { type: 'CARD_INFORMATION', }, ], clientSession: { clientSessionId: '0d5f31b6-5848-49ce-9625-3254d5dd8a78', order: { orderId: '74527', currencyCode: 'EUR', countryCode: 'DE', totalOrderAmount: 600, merchantAmount: 600, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 600, quantity: 1, }, ], fees: [ { type: 'SURCHARGE', amount: 0, }, ], }, customer: { customerId: 'Euler is the best', billingAddress: { firstName: 'Card', lastName: 'Holder Name', postalCode: '94043', addressLine1: '1600 Amphitheatre Parkway', countryCode: 'US', city: 'Mountain View', state: 'CA', }, }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '84100a01-523f-4347-ac44-e8a3e7083d9a', env: 'SANDBOX', paymentMethods: [ { id: 'e787b281-e4f9-4494-96e8-188917540654', type: 'ADYEN_IDEAL', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '4ad980f3-ccc7-5e8e-9a9c-81cd6f5214d4', }, processorConfigId: '9319ad4e-cd51-4517-9d46-bc7be244752a', implementationType: 'WEB_REDIRECT', name: 'iDeal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', }, backgroundColor: { colored: '#CC0066', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: 'e1b5e078-081c-4075-a3cc-5ebc779d36f2', type: 'KLARNA', options: { merchantId: 'Primer', merchantAccountId: 'b6902742-384a-5dfa-b1ff-7dcd02880dc3', clientId: 'Primer', }, processorConfigId: 'b70c2b11-e37f-41fe-9797-d3900f343a36', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4e9497d8-1503-4541-8ead-d88151ffa257', type: 'XFERS_PAYNOW', options: { merchantId: 'testi', merchantAccountId: '6fb12703-1795-55ac-875e-2e8476cb8390', }, processorConfigId: '545e5533-b575-4c61-aebe-dec49a836f1b', implementationType: 'NATIVE_SDK', name: 'Xfers', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-light@3x.png', }, backgroundColor: { colored: '#941C80', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#028BF4', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '9e407fb0-a2f8-4636-a5bc-f404ac757c68', type: 'PAYPAL', options: { merchantId: 'sb-iyjg882920702@business.example.com', merchantAccountId: 'e584f5c7-3c7f-5b58-b187-8e641b0cdce4', clientId: 'AXsZfsyf2jtpTpLQARwSeBurtfT6WiRjHQt1PodMf94gPH0iLwglSdSJ7ZAQT3tCHNZQL--VlrVfwscv', intent: 'authorize', }, processorConfigId: '573b0c98-d588-4223-973f-513a5b5a6177', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { id: 'c657ae04-c230-4be4-9615-9b822743e5e4', type: 'APPLE_PAY', options: { merchantId: '84100a01523f4347ac44e8a3e7083d9a', merchantName: 'DX QA Account', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { id: '527ee4ff-2c66-4234-829f-d20480f3aa09', type: 'GOOGLE_PAY', options: { merchantId: '06134396481468734566', merchantName: 'Primer', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
2822
|
+
"name": "t",
|
|
2823
|
+
"default": "a"
|
|
2756
2824
|
}
|
|
2757
2825
|
],
|
|
2758
2826
|
"exports": [
|
|
2759
2827
|
{
|
|
2760
2828
|
"kind": "js",
|
|
2761
|
-
"name": "
|
|
2762
|
-
"declaration": {
|
|
2763
|
-
"name": "settings",
|
|
2764
|
-
"module": "e2e/mocks/card-3ds.ts"
|
|
2765
|
-
}
|
|
2766
|
-
},
|
|
2767
|
-
{
|
|
2768
|
-
"kind": "js",
|
|
2769
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2829
|
+
"name": "templates",
|
|
2770
2830
|
"declaration": {
|
|
2771
|
-
"name": "
|
|
2772
|
-
"module": "
|
|
2831
|
+
"name": "t",
|
|
2832
|
+
"module": "dist/chunks/lv.TFPDXNEV.js"
|
|
2773
2833
|
}
|
|
2774
2834
|
}
|
|
2775
2835
|
]
|
|
2776
2836
|
},
|
|
2777
2837
|
{
|
|
2778
2838
|
"kind": "javascript-module",
|
|
2779
|
-
"path": "
|
|
2839
|
+
"path": "dist/chunks/ms.FPTX4NM4.js",
|
|
2780
2840
|
"declarations": [
|
|
2781
2841
|
{
|
|
2782
2842
|
"kind": "variable",
|
|
2783
|
-
"name": "
|
|
2784
|
-
"
|
|
2785
|
-
"text": "string"
|
|
2786
|
-
},
|
|
2787
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsic2RrQ29yZSI6ZmFsc2V9fQ=='"
|
|
2788
|
-
},
|
|
2789
|
-
{
|
|
2790
|
-
"kind": "variable",
|
|
2791
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2792
|
-
"type": {
|
|
2793
|
-
"text": "object"
|
|
2794
|
-
},
|
|
2795
|
-
"default": "{ coreUrl: 'https://api.staging.primer.io', pciUrl: 'https://sdk.api.staging.primer.io', binDataUrl: 'https://bin-data.api.staging.core.primer.io', assetsUrl: 'https://assets.staging.core.primer.io', checkoutModules: [ { type: 'CARD_INFORMATION', options: { cardHolderName: true, cardholderName: true, }, }, { type: 'TAX_CALCULATION', requestUrl: '/sales-tax/calculate', }, ], clientSession: { clientSessionId: '7430ecc6-a520-4353-bf03-030bb09ba4b7', order: { orderId: '34775', currencyCode: 'EUR', countryCode: 'GB', totalOrderAmount: 1000, merchantAmount: 1000, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 1000, quantity: 1, }, ], }, customer: { customerId: 'airwallex-customer-id-demo', }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: 'd634b2c6-17d8-4347-bac0-df642c2d6469', env: 'STAGING', paymentMethods: [ { id: 'd2862cfb-05a8-4304-9d80-6652450d19d7', type: 'AFTERPAY', options: { merchantId: 'wont-work', merchantAccountId: '04070052-bcd7-5d2f-92d0-70d1c9b30ce0', }, processorConfigId: '2805ab6e-6b0b-40e2-9d65-1e5c800a530e', implementationType: 'WEB_REDIRECT', name: 'Afterpay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/AFTERPAY/afterpay-cash-app-logo-dark@3x.png', dark: 'https://assets.staging.core.primer.io/AFTERPAY/afterpay-cash-app-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/AFTERPAY/afterpay-cash-app-logo-dark@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#000000', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#000000', dark: '#FFFFFF', light: '#000000', }, textColor: { dark: '#FFFFFF', light: '#FFFFFF', }, iconPositionRelativeToText: 'END', }, }, forceRedirect: false, implementation: {}, }, { id: 'f4105e92-bf54-4652-a7ac-63a2adf3a96d', type: 'ALMA', options: { merchantId: '9b7d77ef-4862-4900-902c-8ff623476826', merchantAccountId: 'e11ef8e1-10a8-542d-924d-ae0546a03d35', }, processorConfigId: '9b7d77ef-4862-4900-902c-8ff623476826', implementationType: 'WEB_REDIRECT', name: 'Alma', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/ALMA/alma-logo-dark@3x.png', dark: 'https://assets.staging.core.primer.io/ALMA/alma-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/ALMA/alma-logo@3x.png', }, backgroundColor: { colored: '#FA5022', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#FA5022', dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: '588df103-82e2-4888-bf49-63f0182e516e', type: 'BRAINTREE_VENMO', options: { merchantId: 'primer', merchantAccountId: '4dd30736-e360-5562-994a-b9de0dc2c2da', }, processorConfigId: '99b3dd12-2d18-48b4-a700-acd8f7943bcb', implementationType: 'WEB_REDIRECT', name: 'Venmo', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/VENMO/venmo-logo@3x.png', dark: 'https://assets.staging.core.primer.io/VENMO/venmo-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/VENMO/venmo-logo-light@3x.png', }, backgroundColor: { colored: '#008CFF', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4cc272a3-69eb-46b6-9938-cd672d7a7cbd', type: 'ADYEN_MULTIBANCO', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '2e2d6a59-730f-52da-8fa6-a3766f4fa1f0', }, processorConfigId: '254dd1d0-211a-4039-850f-a378dc3c3f5a', implementationType: 'NATIVE_SDK', name: 'Multibanco', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/MULTIBANCO/multibanco-logo@3x.png', dark: 'https://assets.staging.core.primer.io/MULTIBANCO/multibanco-logo@3x.png', light: 'https://assets.staging.core.primer.io/MULTIBANCO/multibanco-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: { headless: { supportedManagerCategories: ['RAW_DATA'], }, events: [ { eventType: 'ON_START', uiAction: { actionType: 'NAVIGATE', screenId: 'start_screen', }, }, { eventType: 'ON_REQUIRED_ACTION_RECEIVED', uiAction: { actionType: 'NAVIGATE', screenId: 'voucher_screen', }, }, { eventType: 'ON_ERROR', uiAction: { actionType: 'NAVIGATE', screenId: 'error_screen', }, }, ], screens: [ { screenId: 'start_screen', isBackButtonEnabled: true, isShareButtonEnabled: false, orientation: 'VERTICAL', components: [ { style: { margin: { top: 'S', }, textStyle: 'TITLE', }, }, {}, ], }, { screenId: 'voucher_screen', isBackButtonEnabled: true, isShareButtonEnabled: true, orientation: 'VERTICAL', components: [ { style: { margin: { top: 'S', }, textStyle: 'TITLE', }, }, { orientation: 'HORIZONTAL', components: [ { style: { margin: { top: 'S', }, alignmentInParent: 'RIGHT', textStyle: 'TITLE', }, }, { style: { margin: { top: 'S', }, alignmentInParent: 'LEFT', textStyle: 'TITLE', }, }, ], alignment: 'FILL', distribution: 'FILL', }, { orientation: 'HORIZONTAL', components: [ { style: { margin: { top: 'S', }, alignmentInParent: 'RIGHT', textStyle: 'TITLE', }, }, { style: { margin: { top: 'S', }, alignmentInParent: 'LEFT', textStyle: 'TITLE', }, }, {}, ], alignment: 'FILL', distribution: 'FILL', }, ], }, { screenId: 'error_screen', isBackButtonEnabled: false, isShareButtonEnabled: false, orientation: 'VERTICAL', components: [{}], }, ], }, }, { id: '642bb622-b133-4445-904e-0e844967d4bb', type: 'FINTECTURE_IMMEDIATE_TRANSFER', options: { merchantId: '15808a62-2ac5-458b-b1b6-0ca0bce2d690', merchantAccountId: '55bbc227-ddf7-57f9-a0e8-4ebde5505ce5', }, processorConfigId: '15808a62-2ac5-458b-b1b6-0ca0bce2d690', implementationType: 'WEB_REDIRECT', name: 'Fintecture Immediate Transfer', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/FINTECTURE/inverted@3x.png', light: 'https://assets.staging.core.primer.io/FINTECTURE/default@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by Immediate transfer', textColor: { dark: '#FFFFFF', light: '#000000', }, iconPositionRelativeToText: 'START', }, }, forceRedirect: true, implementation: {}, }, { id: '8f057fb9-2737-44f4-aca8-7021ca5689bc', type: 'APPLE_PAY', options: { merchantId: 'd634b2c617d84347bac0df642c2d6469', merchantName: 'Connections', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { id: '418673aa-954f-4f3e-89e9-d447574a1e14', type: 'SIPS_CPAY', options: { merchantId: '789b21f7-bd18-42f7-8ce8-a0d7320ec3ad', merchantAccountId: '946e95a0-63d0-5afd-9389-c4aea5a9b1fa', }, processorConfigId: '789b21f7-bd18-42f7-8ce8-a0d7320ec3ad', implementationType: 'WEB_REDIRECT', name: 'Cpay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/CPAY/cpay-logo@3x.png', dark: 'https://assets.staging.core.primer.io/CPAY/cpay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/CPAY/cpay-logo-light@3x.png', }, backgroundColor: { colored: '#FFFFFF', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, popup: { width: 830, height: 1000, }, }, forceRedirect: false, implementation: {}, }, { id: 'ba29b47f-bd66-46d6-a3e3-aa27c3b1d110', type: 'ADYEN_ALIPAY', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '2e2d6a59-730f-52da-8fa6-a3766f4fa1f0', }, processorConfigId: '254dd1d0-211a-4039-850f-a378dc3c3f5a', implementationType: 'WEB_REDIRECT', name: 'Alipay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/ALIPAY/alipay-logo@3x.png', dark: 'https://assets.staging.core.primer.io/ALIPAY/alipay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/ALIPAY/alipay-logo-light@3x.png', }, backgroundColor: { colored: '#31B1F0', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'd5b11ef6-c0da-4b85-9095-cc260ddeb009', type: 'ADYEN_VIPPS', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '2e2d6a59-730f-52da-8fa6-a3766f4fa1f0', }, processorConfigId: '254dd1d0-211a-4039-850f-a378dc3c3f5a', implementationType: 'WEB_REDIRECT', name: 'Vipps', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/VIPPS/vipps-logo@3x.png', dark: 'https://assets.staging.core.primer.io/VIPPS/vipps-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/VIPPS/vipps-logo-light@3x.png', }, backgroundColor: { colored: '#FF5B24', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'd180c74e-3616-4ada-b9ae-b9ad1c554efe', type: 'TRIPLE_A', options: { merchantId: '13eb240b-3da3-43a4-b8a8-1648d6c8cf99', merchantAccountId: 'ebac4f47-a9be-5523-94a9-6b381619ce07', }, processorConfigId: '13eb240b-3da3-43a4-b8a8-1648d6c8cf99', implementationType: 'WEB_REDIRECT', name: 'Triple-A', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/TRIPLE_A/triplea-logo@3x.png', light: 'https://assets.staging.core.primer.io/TRIPLE_A/triplea-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay with Crypto', textColor: { dark: '#FFFFFF', light: '#000000', }, iconPositionRelativeToText: 'END', }, popup: { width: 830, height: 1000, }, }, forceRedirect: false, implementation: {}, }, { id: 'fe2aa1da-6cad-41dc-885f-ea5483f49441', type: 'PAYPAL', options: { merchantId: 'sb-gmcgm25177732@business.example.com', merchantAccountId: 'bc5908a7-3b62-5696-804b-274eaa68fc3e', clientId: 'AcTGoAPNhwfbSPbiVYSlrUGwTBGijs6GvFGci2R3QI1jlu5ewofPFq0yZDm-Rka07c1FtY4DVnsRerPK', intent: 'authorize', }, processorConfigId: '0a5952b4-cbdf-49b6-a982-022bc0bd0f7f', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { id: '5f36bcaa-6479-4f4a-87ab-b526348c520f', type: 'GOOGLE_PAY', options: { merchantId: '06134396481468734566', merchantName: 'Primer', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.staging.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.staging.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4bf74ad3-1d02-43f8-9d4e-f9825e5b48c5', type: 'PAYMENT_CARD', options: { merchantId: 'test', merchantAccountId: '46c7a690-924b-5b5e-a651-6a962f926b07', }, processorConfigId: 'e4dd8fc6-293f-4208-9160-fbfbfd6b0a4c', implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4bf74ad3-1d02-43f8-9d4e-f9825e5b48c5', type: 'PAYMENT_CARD', options: { merchantId: 'test', merchantAccountId: '46c7a690-924b-5b5e-a651-6a962f926b07', }, processorConfigId: 'e4dd8fc6-293f-4208-9160-fbfbfd6b0a4c', implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.staging.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
2796
|
-
},
|
|
2797
|
-
{
|
|
2798
|
-
"kind": "variable",
|
|
2799
|
-
"name": "SUCCESSFUL_CARD_NUMBER",
|
|
2800
|
-
"type": {
|
|
2801
|
-
"text": "string"
|
|
2802
|
-
},
|
|
2803
|
-
"default": "'4035 5010 0000 0008'"
|
|
2804
|
-
},
|
|
2805
|
-
{
|
|
2806
|
-
"kind": "variable",
|
|
2807
|
-
"name": "FAILURE_CARD_NUMBER",
|
|
2808
|
-
"type": {
|
|
2809
|
-
"text": "string"
|
|
2810
|
-
},
|
|
2811
|
-
"default": "'4242 4242 4242 4242'"
|
|
2812
|
-
},
|
|
2813
|
-
{
|
|
2814
|
-
"kind": "function",
|
|
2815
|
-
"name": "mockPaymentInstruments",
|
|
2816
|
-
"parameters": [
|
|
2817
|
-
{
|
|
2818
|
-
"name": "page",
|
|
2819
|
-
"type": {
|
|
2820
|
-
"text": "Page"
|
|
2821
|
-
}
|
|
2822
|
-
}
|
|
2823
|
-
]
|
|
2824
|
-
},
|
|
2825
|
-
{
|
|
2826
|
-
"kind": "function",
|
|
2827
|
-
"name": "mockPayments",
|
|
2828
|
-
"parameters": [
|
|
2829
|
-
{
|
|
2830
|
-
"name": "page",
|
|
2831
|
-
"type": {
|
|
2832
|
-
"text": "Page"
|
|
2833
|
-
}
|
|
2834
|
-
}
|
|
2835
|
-
]
|
|
2836
|
-
},
|
|
2837
|
-
{
|
|
2838
|
-
"kind": "function",
|
|
2839
|
-
"name": "mockPaymentInstrumentsFailure",
|
|
2840
|
-
"parameters": [
|
|
2841
|
-
{
|
|
2842
|
-
"name": "page",
|
|
2843
|
-
"type": {
|
|
2844
|
-
"text": "Page"
|
|
2845
|
-
}
|
|
2846
|
-
}
|
|
2847
|
-
]
|
|
2848
|
-
},
|
|
2849
|
-
{
|
|
2850
|
-
"kind": "function",
|
|
2851
|
-
"name": "mockPaymentsFailure",
|
|
2852
|
-
"parameters": [
|
|
2853
|
-
{
|
|
2854
|
-
"name": "page",
|
|
2855
|
-
"type": {
|
|
2856
|
-
"text": "Page"
|
|
2857
|
-
}
|
|
2858
|
-
}
|
|
2859
|
-
]
|
|
2843
|
+
"name": "i",
|
|
2844
|
+
"default": "a"
|
|
2860
2845
|
}
|
|
2861
2846
|
],
|
|
2862
2847
|
"exports": [
|
|
2863
2848
|
{
|
|
2864
2849
|
"kind": "js",
|
|
2865
|
-
"name": "
|
|
2850
|
+
"name": "templates",
|
|
2866
2851
|
"declaration": {
|
|
2867
|
-
"name": "
|
|
2868
|
-
"module": "
|
|
2852
|
+
"name": "i",
|
|
2853
|
+
"module": "dist/chunks/ms.FPTX4NM4.js"
|
|
2869
2854
|
}
|
|
2870
|
-
}
|
|
2855
|
+
}
|
|
2856
|
+
]
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
"kind": "javascript-module",
|
|
2860
|
+
"path": "dist/chunks/nb.CAFSKRQ2.js",
|
|
2861
|
+
"declarations": [
|
|
2871
2862
|
{
|
|
2872
|
-
"kind": "
|
|
2873
|
-
"name": "
|
|
2874
|
-
"
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
},
|
|
2863
|
+
"kind": "variable",
|
|
2864
|
+
"name": "a",
|
|
2865
|
+
"default": "e"
|
|
2866
|
+
}
|
|
2867
|
+
],
|
|
2868
|
+
"exports": [
|
|
2879
2869
|
{
|
|
2880
2870
|
"kind": "js",
|
|
2881
|
-
"name": "
|
|
2871
|
+
"name": "templates",
|
|
2882
2872
|
"declaration": {
|
|
2883
|
-
"name": "
|
|
2884
|
-
"module": "
|
|
2873
|
+
"name": "a",
|
|
2874
|
+
"module": "dist/chunks/nb.CAFSKRQ2.js"
|
|
2885
2875
|
}
|
|
2886
|
-
}
|
|
2876
|
+
}
|
|
2877
|
+
]
|
|
2878
|
+
},
|
|
2879
|
+
{
|
|
2880
|
+
"kind": "javascript-module",
|
|
2881
|
+
"path": "dist/chunks/nl.7BPSDYTC.js",
|
|
2882
|
+
"declarations": [
|
|
2883
|
+
{
|
|
2884
|
+
"kind": "variable",
|
|
2885
|
+
"name": "n",
|
|
2886
|
+
"default": "e"
|
|
2887
|
+
}
|
|
2888
|
+
],
|
|
2889
|
+
"exports": [
|
|
2887
2890
|
{
|
|
2888
2891
|
"kind": "js",
|
|
2889
|
-
"name": "
|
|
2892
|
+
"name": "templates",
|
|
2890
2893
|
"declaration": {
|
|
2891
|
-
"name": "
|
|
2892
|
-
"module": "
|
|
2894
|
+
"name": "n",
|
|
2895
|
+
"module": "dist/chunks/nl.7BPSDYTC.js"
|
|
2893
2896
|
}
|
|
2894
|
-
}
|
|
2897
|
+
}
|
|
2898
|
+
]
|
|
2899
|
+
},
|
|
2900
|
+
{
|
|
2901
|
+
"kind": "javascript-module",
|
|
2902
|
+
"path": "dist/chunks/nl_NL.6ZVCFPVW.js",
|
|
2903
|
+
"declarations": [
|
|
2904
|
+
{
|
|
2905
|
+
"kind": "variable",
|
|
2906
|
+
"name": "n",
|
|
2907
|
+
"default": "e"
|
|
2908
|
+
}
|
|
2909
|
+
],
|
|
2910
|
+
"exports": [
|
|
2895
2911
|
{
|
|
2896
2912
|
"kind": "js",
|
|
2897
|
-
"name": "
|
|
2913
|
+
"name": "templates",
|
|
2898
2914
|
"declaration": {
|
|
2899
|
-
"name": "
|
|
2900
|
-
"module": "
|
|
2915
|
+
"name": "n",
|
|
2916
|
+
"module": "dist/chunks/nl_NL.6ZVCFPVW.js"
|
|
2901
2917
|
}
|
|
2902
|
-
}
|
|
2918
|
+
}
|
|
2919
|
+
]
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
"kind": "javascript-module",
|
|
2923
|
+
"path": "dist/chunks/pl.RF34QM23.js",
|
|
2924
|
+
"declarations": [
|
|
2925
|
+
{
|
|
2926
|
+
"kind": "variable",
|
|
2927
|
+
"name": "i",
|
|
2928
|
+
"default": "a"
|
|
2929
|
+
}
|
|
2930
|
+
],
|
|
2931
|
+
"exports": [
|
|
2903
2932
|
{
|
|
2904
2933
|
"kind": "js",
|
|
2905
|
-
"name": "
|
|
2934
|
+
"name": "templates",
|
|
2906
2935
|
"declaration": {
|
|
2907
|
-
"name": "
|
|
2908
|
-
"module": "
|
|
2936
|
+
"name": "i",
|
|
2937
|
+
"module": "dist/chunks/pl.RF34QM23.js"
|
|
2909
2938
|
}
|
|
2910
|
-
}
|
|
2939
|
+
}
|
|
2940
|
+
]
|
|
2941
|
+
},
|
|
2942
|
+
{
|
|
2943
|
+
"kind": "javascript-module",
|
|
2944
|
+
"path": "dist/chunks/pt-BR.AKDHLRUA.js",
|
|
2945
|
+
"declarations": [
|
|
2946
|
+
{
|
|
2947
|
+
"kind": "variable",
|
|
2948
|
+
"name": "t",
|
|
2949
|
+
"default": "e"
|
|
2950
|
+
}
|
|
2951
|
+
],
|
|
2952
|
+
"exports": [
|
|
2911
2953
|
{
|
|
2912
2954
|
"kind": "js",
|
|
2913
|
-
"name": "
|
|
2955
|
+
"name": "templates",
|
|
2914
2956
|
"declaration": {
|
|
2915
|
-
"name": "
|
|
2916
|
-
"module": "
|
|
2957
|
+
"name": "t",
|
|
2958
|
+
"module": "dist/chunks/pt-BR.AKDHLRUA.js"
|
|
2917
2959
|
}
|
|
2918
|
-
}
|
|
2960
|
+
}
|
|
2961
|
+
]
|
|
2962
|
+
},
|
|
2963
|
+
{
|
|
2964
|
+
"kind": "javascript-module",
|
|
2965
|
+
"path": "dist/chunks/pt.VBALOWHZ.js",
|
|
2966
|
+
"declarations": [
|
|
2967
|
+
{
|
|
2968
|
+
"kind": "variable",
|
|
2969
|
+
"name": "t",
|
|
2970
|
+
"default": "e"
|
|
2971
|
+
}
|
|
2972
|
+
],
|
|
2973
|
+
"exports": [
|
|
2919
2974
|
{
|
|
2920
2975
|
"kind": "js",
|
|
2921
|
-
"name": "
|
|
2976
|
+
"name": "templates",
|
|
2922
2977
|
"declaration": {
|
|
2923
|
-
"name": "
|
|
2924
|
-
"module": "
|
|
2978
|
+
"name": "t",
|
|
2979
|
+
"module": "dist/chunks/pt.VBALOWHZ.js"
|
|
2925
2980
|
}
|
|
2926
2981
|
}
|
|
2927
2982
|
]
|
|
2928
2983
|
},
|
|
2929
2984
|
{
|
|
2930
2985
|
"kind": "javascript-module",
|
|
2931
|
-
"path": "
|
|
2986
|
+
"path": "dist/chunks/ro.WN7VCF27.js",
|
|
2932
2987
|
"declarations": [
|
|
2933
2988
|
{
|
|
2934
2989
|
"kind": "variable",
|
|
2935
|
-
"name": "
|
|
2936
|
-
"
|
|
2937
|
-
"text": "string"
|
|
2938
|
-
},
|
|
2939
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJFdWxlciBpcyB0aGUgYmVzdCIsIm9yZGVySWQiOiI0NTg1OCIsImFtb3VudCI6NjAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6eyJzY2VuYXJpbyI6IkdPT0dMRV9QQVkifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJERSIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50Ijo2MDAsInF1YW50aXR5IjoxfV19LCJjdXN0b21lciI6e30sInBheW1lbnRNZXRob2QiOnsidmF1bHRPblN1Y2Nlc3MiOmZhbHNlLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJQQVlNRU5UX0NBUkQiOnsibmV0d29ya3MiOnsiVklTQSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIk1BU1RFUkNBUkQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fX0sIkFEWUVOX0lERUFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZX05MX1BBWVBBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFQUExFX1BBWSI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkFEWUVOX1NPRk9SVCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIkdPT0dMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19fSwib3JkZXJlZEFsbG93ZWRDYXJkTmV0d29ya3MiOlsiVklTQSIsIk1BU1RFUkNBUkQiLCJBTUVYIiwiTUFFU1RSTyIsIlVOSU9OUEFZIiwiQ0FSVEVTX0JBTkNBSVJFUyIsIkRBTktPUlQiLCJESU5FUlNfQ0xVQiIsIkRJU0NPVkVSIiwiRU5ST1VURSIsIkVMTyIsIkhJUEVSIiwiSU5URVJBQyIsIkpDQiIsIk1JUiIsIk9USEVSIl19fSwiY2xpZW50T3B0aW9ucyI6eyJjYXJkIjp7InByZWZlcnJlZEZsb3ciOiJFTUJFRERFRF9JTl9IT01FIn0sImRpcmVjdERlYml0Ijp7ImN1c3RvbWVyQ291bnRyeUNvZGUiOiJGUiIsImNvbXBhbnlOYW1lIjoiUHJpbWVyIEFQSSBMVEQiLCJjb21wYW55QWRkcmVzcyI6IjEyMyBGYWtlIFN0LCBMb25kb24sIEVDMkEgOFhZIn0sInJlZGlyZWN0Ijp7ImZvcmNlUmVkaXJlY3QiOmZhbHNlfSwiZ29vZ2xlUGF5Ijp7ImNhcHR1cmVCaWxsaW5nQWRkcmVzcyI6dHJ1ZX19LCJhcGlDb25maWciOnsiYXBpS2V5IjoiMmI4NTM3YjItNDc4Yy00MzE1LTg4ZmItZjE5NTQ1MDBiNWZhIiwiYXBpVmVyc2lvbiI6IjIuMyIsImVudiI6IkNVU1RPTV9TQU5EQk9YIn0sImhlYWRsZXNzT3B0aW9ucyI6e30sImxpdENvbXBvbmVudHNPcHRpb25zIjp7InNka0NvcmUiOmZhbHNlfX0='"
|
|
2940
|
-
},
|
|
2941
|
-
{
|
|
2942
|
-
"kind": "variable",
|
|
2943
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
2944
|
-
"type": {
|
|
2945
|
-
"text": "object"
|
|
2946
|
-
},
|
|
2947
|
-
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [ { type: 'TAX_CALCULATION', requestUrl: '/sales-tax/calculate', }, { type: 'CARD_INFORMATION', }, ], clientSession: { clientSessionId: 'ff9ecd24-537f-4928-a8e4-5534d2375200', order: { orderId: '45858', currencyCode: 'EUR', countryCode: 'DE', totalOrderAmount: 600, merchantAmount: 600, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 600, quantity: 1, }, ], }, customer: { customerId: 'Euler is the best', }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '84100a01-523f-4347-ac44-e8a3e7083d9a', env: 'SANDBOX', paymentMethods: [ { id: 'e787b281-e4f9-4494-96e8-188917540654', type: 'ADYEN_IDEAL', options: { merchantId: 'PrimerJbTestECOM', merchantAccountId: '4ad980f3-ccc7-5e8e-9a9c-81cd6f5214d4', }, processorConfigId: '9319ad4e-cd51-4517-9d46-bc7be244752a', implementationType: 'WEB_REDIRECT', name: 'iDeal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', }, backgroundColor: { colored: '#CC0066', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: 'e1b5e078-081c-4075-a3cc-5ebc779d36f2', type: 'KLARNA', options: { merchantId: 'Primer', merchantAccountId: 'b6902742-384a-5dfa-b1ff-7dcd02880dc3', clientId: 'Primer', }, processorConfigId: 'b70c2b11-e37f-41fe-9797-d3900f343a36', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '4e9497d8-1503-4541-8ead-d88151ffa257', type: 'XFERS_PAYNOW', options: { merchantId: 'testi', merchantAccountId: '6fb12703-1795-55ac-875e-2e8476cb8390', }, processorConfigId: '545e5533-b575-4c61-aebe-dec49a836f1b', implementationType: 'NATIVE_SDK', name: 'Xfers', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/XFERS/xfers-logo-light@3x.png', }, backgroundColor: { colored: '#941C80', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#028BF4', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '9e407fb0-a2f8-4636-a5bc-f404ac757c68', type: 'PAYPAL', options: { merchantId: 'sb-iyjg882920702@business.example.com', merchantAccountId: 'e584f5c7-3c7f-5b58-b187-8e641b0cdce4', clientId: 'AXsZfsyf2jtpTpLQARwSeBurtfT6WiRjHQt1PodMf94gPH0iLwglSdSJ7ZAQT3tCHNZQL--VlrVfwscv', intent: 'authorize', }, processorConfigId: '573b0c98-d588-4223-973f-513a5b5a6177', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { id: 'c657ae04-c230-4be4-9615-9b822743e5e4', type: 'APPLE_PAY', options: { merchantId: '84100a01523f4347ac44e8a3e7083d9a', merchantName: 'DX QA Account', merchantDomains: [], }, implementationType: 'NATIVE_SDK', name: 'Apple Pay', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/APPLE_PAY/apple-pay-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, implementation: {}, }, { id: '527ee4ff-2c66-4234-829f-d20480f3aa09', type: 'GOOGLE_PAY', options: { merchantId: '06134396481468734566', merchantName: 'Primer', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
2990
|
+
"name": "i",
|
|
2991
|
+
"default": "e"
|
|
2948
2992
|
}
|
|
2949
2993
|
],
|
|
2950
2994
|
"exports": [
|
|
2951
2995
|
{
|
|
2952
2996
|
"kind": "js",
|
|
2953
|
-
"name": "
|
|
2997
|
+
"name": "templates",
|
|
2954
2998
|
"declaration": {
|
|
2955
|
-
"name": "
|
|
2956
|
-
"module": "
|
|
2999
|
+
"name": "i",
|
|
3000
|
+
"module": "dist/chunks/ro.WN7VCF27.js"
|
|
2957
3001
|
}
|
|
2958
|
-
}
|
|
3002
|
+
}
|
|
3003
|
+
]
|
|
3004
|
+
},
|
|
3005
|
+
{
|
|
3006
|
+
"kind": "javascript-module",
|
|
3007
|
+
"path": "dist/chunks/ru.ICXGVGRR.js",
|
|
3008
|
+
"declarations": [
|
|
3009
|
+
{
|
|
3010
|
+
"kind": "variable",
|
|
3011
|
+
"name": "o",
|
|
3012
|
+
"default": "e"
|
|
3013
|
+
}
|
|
3014
|
+
],
|
|
3015
|
+
"exports": [
|
|
2959
3016
|
{
|
|
2960
3017
|
"kind": "js",
|
|
2961
|
-
"name": "
|
|
3018
|
+
"name": "templates",
|
|
2962
3019
|
"declaration": {
|
|
2963
|
-
"name": "
|
|
2964
|
-
"module": "
|
|
3020
|
+
"name": "o",
|
|
3021
|
+
"module": "dist/chunks/ru.ICXGVGRR.js"
|
|
2965
3022
|
}
|
|
2966
3023
|
}
|
|
2967
3024
|
]
|
|
2968
3025
|
},
|
|
2969
3026
|
{
|
|
2970
3027
|
"kind": "javascript-module",
|
|
2971
|
-
"path": "
|
|
3028
|
+
"path": "dist/chunks/sk.SIP5JIOX.js",
|
|
2972
3029
|
"declarations": [
|
|
2973
3030
|
{
|
|
2974
|
-
"kind": "
|
|
2975
|
-
"name": "
|
|
2976
|
-
"
|
|
2977
|
-
{
|
|
2978
|
-
"name": "page",
|
|
2979
|
-
"type": {
|
|
2980
|
-
"text": "Page"
|
|
2981
|
-
}
|
|
2982
|
-
},
|
|
2983
|
-
{
|
|
2984
|
-
"name": "config",
|
|
2985
|
-
"type": {
|
|
2986
|
-
"text": "unknown"
|
|
2987
|
-
}
|
|
2988
|
-
}
|
|
2989
|
-
]
|
|
2990
|
-
},
|
|
2991
|
-
{
|
|
2992
|
-
"kind": "function",
|
|
2993
|
-
"name": "mockConfigurationCallSTG",
|
|
2994
|
-
"parameters": [
|
|
2995
|
-
{
|
|
2996
|
-
"name": "page",
|
|
2997
|
-
"type": {
|
|
2998
|
-
"text": "Page"
|
|
2999
|
-
}
|
|
3000
|
-
},
|
|
3001
|
-
{
|
|
3002
|
-
"name": "config",
|
|
3003
|
-
"type": {
|
|
3004
|
-
"text": "unknown"
|
|
3005
|
-
}
|
|
3006
|
-
}
|
|
3007
|
-
]
|
|
3031
|
+
"kind": "variable",
|
|
3032
|
+
"name": "r",
|
|
3033
|
+
"default": "e"
|
|
3008
3034
|
}
|
|
3009
3035
|
],
|
|
3010
3036
|
"exports": [
|
|
3011
3037
|
{
|
|
3012
3038
|
"kind": "js",
|
|
3013
|
-
"name": "
|
|
3039
|
+
"name": "templates",
|
|
3014
3040
|
"declaration": {
|
|
3015
|
-
"name": "
|
|
3016
|
-
"module": "
|
|
3041
|
+
"name": "r",
|
|
3042
|
+
"module": "dist/chunks/sk.SIP5JIOX.js"
|
|
3017
3043
|
}
|
|
3018
|
-
}
|
|
3044
|
+
}
|
|
3045
|
+
]
|
|
3046
|
+
},
|
|
3047
|
+
{
|
|
3048
|
+
"kind": "javascript-module",
|
|
3049
|
+
"path": "dist/chunks/sl.R77UEKCA.js",
|
|
3050
|
+
"declarations": [
|
|
3051
|
+
{
|
|
3052
|
+
"kind": "variable",
|
|
3053
|
+
"name": "r",
|
|
3054
|
+
"default": "e"
|
|
3055
|
+
}
|
|
3056
|
+
],
|
|
3057
|
+
"exports": [
|
|
3019
3058
|
{
|
|
3020
3059
|
"kind": "js",
|
|
3021
|
-
"name": "
|
|
3060
|
+
"name": "templates",
|
|
3022
3061
|
"declaration": {
|
|
3023
|
-
"name": "
|
|
3024
|
-
"module": "
|
|
3062
|
+
"name": "r",
|
|
3063
|
+
"module": "dist/chunks/sl.R77UEKCA.js"
|
|
3025
3064
|
}
|
|
3026
3065
|
}
|
|
3027
3066
|
]
|
|
3028
3067
|
},
|
|
3029
3068
|
{
|
|
3030
3069
|
"kind": "javascript-module",
|
|
3031
|
-
"path": "
|
|
3070
|
+
"path": "dist/chunks/sr-RS.6M2YSTDX.js",
|
|
3032
3071
|
"declarations": [
|
|
3033
3072
|
{
|
|
3034
3073
|
"kind": "variable",
|
|
3035
|
-
"name": "
|
|
3036
|
-
"
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
},
|
|
3041
|
-
{
|
|
3042
|
-
"kind": "variable",
|
|
3043
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
3044
|
-
"type": {
|
|
3045
|
-
"text": "object"
|
|
3046
|
-
},
|
|
3047
|
-
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [], clientSession: { clientSessionId: '3b40a6e3-8fa9-4f2d-90b5-2691e644ff81', order: { orderId: '089357018253670', currencyCode: 'EUR', countryCode: 'DE', totalOrderAmount: 600, merchantAmount: 600, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 600, quantity: 1, }, ], fees: [ { type: 'SURCHARGE', amount: 0, }, ], }, customer: { customerId: 'Euler is the best', billingAddress: { firstName: 'Card', lastName: 'Holder Name', postalCode: '94043', addressLine1: '1600 Amphitheatre Parkway', countryCode: 'US', city: 'Mountain View', state: 'CA', }, }, paymentMethod: { vaultOnSuccess: false, options: [ { type: 'PAYPAL', surcharge: 0, }, { type: 'PAYMENT_CARD', networks: [ { type: 'VISA', surcharge: 0, }, { type: 'MASTERCARD', surcharge: 0, }, ], }, { type: 'ADYEN_IDEAL', surcharge: 0, }, { type: 'PAY_NL_PAYPAL', surcharge: 0, }, { type: 'APPLE_PAY', surcharge: 0, }, { type: 'ADYEN_SOFORT', surcharge: 0, }, { type: 'GOOGLE_PAY', surcharge: 0, }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '166fd38f-d8a6-4f39-805f-62a6bbd64bee', env: 'SANDBOX', paymentMethods: [ { id: 'd3ced3db-ca91-44bb-889d-d1a687c2db17', type: 'RAPYD_GRABPAY', options: { merchantId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', merchantAccountId: 'e59b7dae-0cff-5fa9-8548-9fed83c1d5ec', }, processorConfigId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', implementationType: 'WEB_REDIRECT', name: 'GrabPay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GRABPAY/grabpay-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/GRABPAY/grabpay-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/GRABPAY/grabpay-logo-light@3x.png', }, backgroundColor: { colored: '#01B14E', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'f37f1a42-1270-476e-a8d8-3698215596c2', type: 'RAPYD_GCASH', options: { merchantId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', merchantAccountId: 'e59b7dae-0cff-5fa9-8548-9fed83c1d5ec', }, processorConfigId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', implementationType: 'WEB_REDIRECT', name: 'GCash', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GCASH/gcash-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/GCASH/gcash-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/GCASH/gcash-logo-light@3x.png', }, backgroundColor: { colored: '#297BFA', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '1bde0ef5-9ae7-41f8-b627-4ecaaddc76a5', type: 'RAPYD_PROMPTPAY', options: { merchantId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', merchantAccountId: 'e59b7dae-0cff-5fa9-8548-9fed83c1d5ec', }, processorConfigId: 'ffef08c0-5294-47d7-a103-dd5706f17b6c', implementationType: 'NATIVE_SDK', name: 'PromptPay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PROMPTPAY/promptpay-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/PROMPTPAY/promptpay-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/PROMPTPAY/promptpay-logo-light@3x.png', }, backgroundColor: { colored: '#023C68', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '2b0b7149-a4c2-4bf4-adb3-a56ec6e2f09f', type: 'ADYEN_IDEAL', options: { merchantId: 'Primerio254_SECOND_TEST', merchantAccountId: 'ddeca4e9-6cee-55f0-ae0d-ddb8d1100977', }, processorConfigId: 'af152714-66c6-48b9-a67e-314f5eb3ab15', implementationType: 'WEB_REDIRECT', name: 'iDeal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/IDEAL/ideal-logo@3x.png', }, backgroundColor: { colored: '#CC0066', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: '6e7a8a26-7737-45dc-b4e5-721f0b180f2f', type: 'GOOGLE_PAY', options: { merchantId: 'test', merchantName: 'test', type: 'GOOGLE_PAY', }, implementationType: 'NATIVE_SDK', name: 'Google Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', dark: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/GOOGLE_PAY/google-pay-logo-light@3x.png', }, backgroundColor: { colored: '#000000', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 1, dark: 1, light: 1, }, borderColor: { colored: '#8E8E93', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '2f32f120-d2a9-49d2-96d0-6b21546dec34', type: 'KLARNA', options: { merchantId: 'EG100723', merchantAccountId: '5cdd4a63-9762-5364-8ab8-30aa082a03b5', clientId: 'EG100723', }, processorConfigId: 'c65b140d-3faf-43af-ae3b-8d278b7d7221', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: '9e550cea-749e-46d2-b01d-6867b34eec9a', type: 'PAYPAL', options: { merchantId: 'sb-gmcgm25177732@business.example.com', merchantAccountId: 'fc6c22da-065a-5a44-8c39-a4a1fcaf5723', clientId: 'AcTGoAPNhwfbSPbiVYSlrUGwTBGijs6GvFGci2R3QI1jlu5ewofPFq0yZDm-Rka07c1FtY4DVnsRerPK', intent: 'authorize', }, processorConfigId: '6b506d09-48b0-495c-ba32-49c6d2016cb0', implementationType: 'NATIVE_SDK', name: 'PayPal', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/PAYPAL/paypal-logo@3x.png', }, backgroundColor: { colored: '#0070BA', }, cornerRadius: 4, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
3048
|
-
},
|
|
3074
|
+
"name": "o",
|
|
3075
|
+
"default": "e"
|
|
3076
|
+
}
|
|
3077
|
+
],
|
|
3078
|
+
"exports": [
|
|
3049
3079
|
{
|
|
3050
|
-
"kind": "
|
|
3051
|
-
"name": "
|
|
3052
|
-
"
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3080
|
+
"kind": "js",
|
|
3081
|
+
"name": "templates",
|
|
3082
|
+
"declaration": {
|
|
3083
|
+
"name": "o",
|
|
3084
|
+
"module": "dist/chunks/sr-RS.6M2YSTDX.js"
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
]
|
|
3088
|
+
},
|
|
3089
|
+
{
|
|
3090
|
+
"kind": "javascript-module",
|
|
3091
|
+
"path": "dist/chunks/sv.33ZY4CDS.js",
|
|
3092
|
+
"declarations": [
|
|
3061
3093
|
{
|
|
3062
|
-
"kind": "
|
|
3063
|
-
"name": "
|
|
3064
|
-
"
|
|
3065
|
-
{
|
|
3066
|
-
"name": "page",
|
|
3067
|
-
"type": {
|
|
3068
|
-
"text": "Page"
|
|
3069
|
-
}
|
|
3070
|
-
}
|
|
3071
|
-
]
|
|
3094
|
+
"kind": "variable",
|
|
3095
|
+
"name": "n",
|
|
3096
|
+
"default": "e"
|
|
3072
3097
|
}
|
|
3073
3098
|
],
|
|
3074
3099
|
"exports": [
|
|
3075
3100
|
{
|
|
3076
3101
|
"kind": "js",
|
|
3077
|
-
"name": "
|
|
3102
|
+
"name": "templates",
|
|
3078
3103
|
"declaration": {
|
|
3079
|
-
"name": "
|
|
3080
|
-
"module": "
|
|
3104
|
+
"name": "n",
|
|
3105
|
+
"module": "dist/chunks/sv.33ZY4CDS.js"
|
|
3081
3106
|
}
|
|
3082
|
-
}
|
|
3107
|
+
}
|
|
3108
|
+
]
|
|
3109
|
+
},
|
|
3110
|
+
{
|
|
3111
|
+
"kind": "javascript-module",
|
|
3112
|
+
"path": "dist/chunks/th.M27YUIZC.js",
|
|
3113
|
+
"declarations": [
|
|
3083
3114
|
{
|
|
3084
|
-
"kind": "
|
|
3085
|
-
"name": "
|
|
3086
|
-
"
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
},
|
|
3115
|
+
"kind": "variable",
|
|
3116
|
+
"name": "o",
|
|
3117
|
+
"default": "e"
|
|
3118
|
+
}
|
|
3119
|
+
],
|
|
3120
|
+
"exports": [
|
|
3091
3121
|
{
|
|
3092
3122
|
"kind": "js",
|
|
3093
|
-
"name": "
|
|
3123
|
+
"name": "templates",
|
|
3094
3124
|
"declaration": {
|
|
3095
|
-
"name": "
|
|
3096
|
-
"module": "
|
|
3125
|
+
"name": "o",
|
|
3126
|
+
"module": "dist/chunks/th.M27YUIZC.js"
|
|
3097
3127
|
}
|
|
3098
|
-
}
|
|
3128
|
+
}
|
|
3129
|
+
]
|
|
3130
|
+
},
|
|
3131
|
+
{
|
|
3132
|
+
"kind": "javascript-module",
|
|
3133
|
+
"path": "dist/chunks/tr.Q2SIY6NA.js",
|
|
3134
|
+
"declarations": [
|
|
3135
|
+
{
|
|
3136
|
+
"kind": "variable",
|
|
3137
|
+
"name": "n",
|
|
3138
|
+
"default": "e"
|
|
3139
|
+
}
|
|
3140
|
+
],
|
|
3141
|
+
"exports": [
|
|
3099
3142
|
{
|
|
3100
3143
|
"kind": "js",
|
|
3101
|
-
"name": "
|
|
3144
|
+
"name": "templates",
|
|
3102
3145
|
"declaration": {
|
|
3103
|
-
"name": "
|
|
3104
|
-
"module": "
|
|
3146
|
+
"name": "n",
|
|
3147
|
+
"module": "dist/chunks/tr.Q2SIY6NA.js"
|
|
3105
3148
|
}
|
|
3106
3149
|
}
|
|
3107
3150
|
]
|
|
3108
3151
|
},
|
|
3109
3152
|
{
|
|
3110
3153
|
"kind": "javascript-module",
|
|
3111
|
-
"path": "
|
|
3154
|
+
"path": "dist/chunks/uk-UA.EJZOGSJR.js",
|
|
3112
3155
|
"declarations": [
|
|
3113
3156
|
{
|
|
3114
3157
|
"kind": "variable",
|
|
3115
|
-
"name": "
|
|
3116
|
-
"
|
|
3117
|
-
"text": "string"
|
|
3118
|
-
},
|
|
3119
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJjdXN0b21lcklkIiwib3JkZXJJZCI6IjM4NjYyIiwiYW1vdW50Ijo1MDAwLCJjdXJyZW5jeUNvZGUiOiJFVVIiLCJtZXRhZGF0YSI6e30sIm9yZGVyIjp7ImNvdW50cnlDb2RlIjoiRlIiLCJsaW5lSXRlbXMiOlt7Iml0ZW1JZCI6InByaW1lci1ob29kaWUtZ3JheSIsImRlc2NyaXB0aW9uIjoiUHJpbWVyIEhvb2RpZSIsImFtb3VudCI6NTAwMCwicXVhbnRpdHkiOjF9XX0sImN1c3RvbWVyIjp7ImJpbGxpbmdBZGRyZXNzIjp7ImNvdW50cnlDb2RlIjoiRlIifSwibmF0aW9uYWxEb2N1bWVudElkIjoiOTAxMTIxMTIzNDU2NyJ9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjp0cnVlLCJwYXltZW50VHlwZSI6IkZJUlNUX1BBWU1FTlQiLCJ2YXVsdE9uM0RTIjpmYWxzZSwib3B0aW9ucyI6eyJQQVlNRU5UX0NBUkQiOnsiY2FwdHVyZVZhdWx0ZWRDYXJkQ3Z2Ijp0cnVlfX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY2FyZCI6eyJwcmVmZXJyZWRGbG93IjoiRU1CRURERURfSU5fSE9NRSJ9LCJkaXJlY3REZWJpdCI6eyJjdXN0b21lckNvdW50cnlDb2RlIjoiRlIiLCJjb21wYW55TmFtZSI6IlByaW1lciBBUEkgTFREIiwiY29tcGFueUFkZHJlc3MiOiIxMjMgRmFrZSBTdCwgTG9uZG9uLCBFQzJBIDhYWSJ9LCJyZWRpcmVjdCI6eyJmb3JjZVJlZGlyZWN0IjpmYWxzZX0sImdvb2dsZVBheSI6eyJjYXB0dXJlQmlsbGluZ0FkZHJlc3MiOnRydWV9LCJwYXlwYWwiOnsicGF5bWVudEZsb3ciOiJQUkVGRVJfVkFVTFQifX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJmZTRkNzFiMi1mNzJmLTQ4NGItYjlkMS1hNDBkMDM0ZGRmNmMiLCJhcGlWZXJzaW9uIjoiMi4zIiwiZW52IjoiQ1VTVE9NX1NBTkRCT1gifSwiaGVhZGxlc3NPcHRpb25zIjp7InN0cmlwZSI6eyJwdWJsaXNoYWJsZUtleSI6InBrX3Rlc3RfNTFPOHpmUUtVSzZiWElkQzJ4UHZTUzZVdnJpRTlrd3B2dHR3QjdIOVBBemhOQVpvR3pMZ2lET3lkNFdvb296ZVdIeG9ScktvNmIyVmpaWXhOQ01YM1c3YmswMHJNRGl2amF1In0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsicGF5cGFsIjp7InBheW1lbnRGbG93IjoiUFJFRkVSX1ZBVUxUIn0sInZhdWx0Ijp7ImVuYWJsZWQiOnRydWV9LCJzZGtDb3JlIjpmYWxzZX19'"
|
|
3120
|
-
},
|
|
3121
|
-
{
|
|
3122
|
-
"kind": "variable",
|
|
3123
|
-
"name": "CONFIGURATION_RESPONSE",
|
|
3124
|
-
"type": {
|
|
3125
|
-
"text": "object"
|
|
3126
|
-
},
|
|
3127
|
-
"default": "{ coreUrl: 'https://api.sandbox.primer.io', pciUrl: 'https://sdk.api.sandbox.primer.io', binDataUrl: 'https://bin-data.api.sandbox.core.primer.io', assetsUrl: 'https://assets.sandbox.core.primer.io', checkoutModules: [], clientSession: { clientSessionId: '73195f20-be41-43ac-abad-d6fdf786c4cb', order: { orderId: '38662', currencyCode: 'EUR', countryCode: 'FR', totalOrderAmount: 5000, merchantAmount: 5000, lineItems: [ { itemId: 'primer-hoodie-gray', description: 'Primer Hoodie', amount: 5000, quantity: 1, }, ], }, customer: { customerId: 'customerId', billingAddress: { countryCode: 'FR', }, nationalDocumentId: '9011211234567', }, paymentMethod: { vaultOnSuccess: true, options: [ { type: 'PAYMENT_CARD', }, ], orderedAllowedCardNetworks: [ 'VISA', 'MASTERCARD', 'AMEX', 'MAESTRO', 'UNIONPAY', 'CARTES_BANCAIRES', 'DANKORT', 'DINERS_CLUB', 'DISCOVER', 'ENROUTE', 'ELO', 'HIPER', 'INTERAC', 'JCB', 'MIR', 'OTHER', ], vaultOnAgreement: false, }, }, primerAccountId: '6723b06a-37c5-4b93-87bf-9dadf4aa62f8', env: 'SANDBOX', paymentMethods: [ { id: '0b4775b8-4c43-4261-88ec-24d4f891912a', type: 'STRIPE_ACH', options: { merchantId: '7804d409-4caa-4fa8-8adb-ab34217d6c4e', merchantAccountId: '42dd7bba-3c06-5c50-b009-d1aafdd18a51', }, processorConfigId: '7804d409-4caa-4fa8-8adb-ab34217d6c4e', implementationType: 'NATIVE_SDK', name: 'Automated Clearing House (ACH)', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/BANK_TRANSFER/bank-transfer-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/BANK_TRANSFER/bank-transfer-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay with ACH', textColor: { dark: '#FFFFFF', light: '#000000', }, }, popup: { width: 1050, height: 1300, }, }, forceRedirect: false, implementation: {}, }, { id: 'f7e3b1d5-9922-4269-8d69-98a021c3c7ab', type: 'PRIMER_TEST_KLARNA', options: { merchantId: 'acct_primer-test_1', merchantAccountId: 'f49628b3-fc15-5e89-a710-1ad4a78a1b3b', }, processorConfigId: '7799d7a0-21b3-4778-bac4-de4bb302a702', implementationType: 'NATIVE_SDK', name: 'Klarna', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/KLARNA/klarna-logo-light@3x.png', }, backgroundColor: { colored: '#FFB3C7', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFB3C7', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { id: 'f43bbce8-2d0c-497e-b35c-7eeb647e0f9f', type: 'NOL_PAY', options: { merchantId: 'b89640a1-f1fd-47ca-857a-dac21d52f778', merchantAccountId: 'a3b4cecc-2305-54db-86f5-9670e237ed2d', appId: '1301', }, processorConfigId: 'b89640a1-f1fd-47ca-857a-dac21d52f778', implementationType: 'NATIVE_SDK', name: 'Nol Pay', displayMetadata: { button: { iconUrl: { colored: 'https://assets.sandbox.core.primer.io/NOL_PAY/nol-pay-logo@3x.png', dark: 'https://assets.sandbox.core.primer.io/NOL_PAY/nol-pay-logo@3x.png', light: 'https://assets.sandbox.core.primer.io/NOL_PAY/nol-pay-logo-light@3x.png', }, backgroundColor: { colored: '#171e90', dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { colored: '#FFFFFF', dark: '#FFFFFF', light: '#212121', }, }, }, forceRedirect: false, implementation: {}, }, { type: 'PAYMENT_CARD', options: { threeDSecureProvider: '3DSECUREIO', threeDSecureEnabled: true, captureVaultedCardCvv: true, }, implementationType: 'NATIVE_SDK', name: 'Card', displayMetadata: { button: { iconUrl: { dark: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-dark@3x.png', light: 'https://assets.sandbox.core.primer.io/PAYMENT_CARD/payment-card-logo-light@3x.png', }, backgroundColor: { dark: '#000000', light: '#FFFFFF', }, cornerRadius: 4, borderWidth: { colored: 0, dark: 1, light: 1, }, borderColor: { dark: '#FFFFFF', light: '#212121', }, text: 'Pay by card', textColor: { dark: '#FFFFFF', light: '#000000', }, }, }, forceRedirect: false, implementation: {}, }, ], styleDefaults: {}, }"
|
|
3128
|
-
},
|
|
3129
|
-
{
|
|
3130
|
-
"kind": "variable",
|
|
3131
|
-
"name": "SUCCESSFUL_CARD_TO_VAULT",
|
|
3132
|
-
"type": {
|
|
3133
|
-
"text": "string"
|
|
3134
|
-
},
|
|
3135
|
-
"default": "'4000002500001001'"
|
|
3136
|
-
},
|
|
3137
|
-
{
|
|
3138
|
-
"kind": "function",
|
|
3139
|
-
"name": "mockPaymentInstruments",
|
|
3140
|
-
"parameters": [
|
|
3141
|
-
{
|
|
3142
|
-
"name": "page",
|
|
3143
|
-
"type": {
|
|
3144
|
-
"text": "Page"
|
|
3145
|
-
}
|
|
3146
|
-
}
|
|
3147
|
-
]
|
|
3148
|
-
},
|
|
3149
|
-
{
|
|
3150
|
-
"kind": "function",
|
|
3151
|
-
"name": "mockPayments",
|
|
3152
|
-
"parameters": [
|
|
3153
|
-
{
|
|
3154
|
-
"name": "page",
|
|
3155
|
-
"type": {
|
|
3156
|
-
"text": "Page"
|
|
3157
|
-
}
|
|
3158
|
-
}
|
|
3159
|
-
]
|
|
3158
|
+
"name": "o",
|
|
3159
|
+
"default": "e"
|
|
3160
3160
|
}
|
|
3161
3161
|
],
|
|
3162
3162
|
"exports": [
|
|
3163
3163
|
{
|
|
3164
3164
|
"kind": "js",
|
|
3165
|
-
"name": "
|
|
3165
|
+
"name": "templates",
|
|
3166
3166
|
"declaration": {
|
|
3167
|
-
"name": "
|
|
3168
|
-
"module": "
|
|
3167
|
+
"name": "o",
|
|
3168
|
+
"module": "dist/chunks/uk-UA.EJZOGSJR.js"
|
|
3169
3169
|
}
|
|
3170
|
-
}
|
|
3170
|
+
}
|
|
3171
|
+
]
|
|
3172
|
+
},
|
|
3173
|
+
{
|
|
3174
|
+
"kind": "javascript-module",
|
|
3175
|
+
"path": "dist/chunks/vi.3RROGLXM.js",
|
|
3176
|
+
"declarations": [
|
|
3171
3177
|
{
|
|
3172
|
-
"kind": "
|
|
3173
|
-
"name": "
|
|
3174
|
-
"
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
},
|
|
3178
|
+
"kind": "variable",
|
|
3179
|
+
"name": "a",
|
|
3180
|
+
"default": "n"
|
|
3181
|
+
}
|
|
3182
|
+
],
|
|
3183
|
+
"exports": [
|
|
3179
3184
|
{
|
|
3180
3185
|
"kind": "js",
|
|
3181
|
-
"name": "
|
|
3186
|
+
"name": "templates",
|
|
3182
3187
|
"declaration": {
|
|
3183
|
-
"name": "
|
|
3184
|
-
"module": "
|
|
3188
|
+
"name": "a",
|
|
3189
|
+
"module": "dist/chunks/vi.3RROGLXM.js"
|
|
3185
3190
|
}
|
|
3186
|
-
}
|
|
3191
|
+
}
|
|
3192
|
+
]
|
|
3193
|
+
},
|
|
3194
|
+
{
|
|
3195
|
+
"kind": "javascript-module",
|
|
3196
|
+
"path": "dist/chunks/zf.GGWFQ3Y7.js",
|
|
3197
|
+
"declarations": [
|
|
3187
3198
|
{
|
|
3188
|
-
"kind": "
|
|
3189
|
-
"name": "
|
|
3190
|
-
"
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
},
|
|
3199
|
+
"kind": "variable",
|
|
3200
|
+
"name": "a",
|
|
3201
|
+
"default": "t"
|
|
3202
|
+
}
|
|
3203
|
+
],
|
|
3204
|
+
"exports": [
|
|
3195
3205
|
{
|
|
3196
3206
|
"kind": "js",
|
|
3197
|
-
"name": "
|
|
3207
|
+
"name": "templates",
|
|
3198
3208
|
"declaration": {
|
|
3199
|
-
"name": "
|
|
3200
|
-
"module": "
|
|
3209
|
+
"name": "a",
|
|
3210
|
+
"module": "dist/chunks/zf.GGWFQ3Y7.js"
|
|
3201
3211
|
}
|
|
3202
3212
|
}
|
|
3203
3213
|
]
|
|
3204
3214
|
},
|
|
3205
3215
|
{
|
|
3206
3216
|
"kind": "javascript-module",
|
|
3207
|
-
"path": "
|
|
3208
|
-
"declarations": [],
|
|
3209
|
-
"exports": []
|
|
3210
|
-
},
|
|
3211
|
-
{
|
|
3212
|
-
"kind": "javascript-module",
|
|
3213
|
-
"path": "e2e/tests/card-basic.spec.ts",
|
|
3214
|
-
"declarations": [],
|
|
3215
|
-
"exports": []
|
|
3216
|
-
},
|
|
3217
|
-
{
|
|
3218
|
-
"kind": "javascript-module",
|
|
3219
|
-
"path": "e2e/tests/card-form-billing-address.spec.ts",
|
|
3220
|
-
"declarations": [],
|
|
3221
|
-
"exports": []
|
|
3222
|
-
},
|
|
3223
|
-
{
|
|
3224
|
-
"kind": "javascript-module",
|
|
3225
|
-
"path": "e2e/tests/disabled-payments.spec.ts",
|
|
3217
|
+
"path": "dist/chunks/zh-CN.MQHNRMN4.js",
|
|
3226
3218
|
"declarations": [
|
|
3227
3219
|
{
|
|
3228
3220
|
"kind": "variable",
|
|
3229
|
-
"name": "
|
|
3230
|
-
"
|
|
3231
|
-
"text": "string"
|
|
3232
|
-
},
|
|
3233
|
-
"default": "'?settings=eyJjbGllbnRTZXNzaW9uQ29uZmlnIjp7ImN1c3RvbWVySWQiOiJhaXJ3YWxsZXgtY3VzdG9tZXItaWQtZGVtbyIsIm9yZGVySWQiOiIzNDc3NSIsImFtb3VudCI6MTAwMCwiY3VycmVuY3lDb2RlIjoiRVVSIiwibWV0YWRhdGEiOnsid29ya2Zsb3ciOiJhaXJ3YWxsZXgifSwib3JkZXIiOnsiY291bnRyeUNvZGUiOiJHQiIsImxpbmVJdGVtcyI6W3siaXRlbUlkIjoicHJpbWVyLWhvb2RpZS1ncmF5IiwiZGVzY3JpcHRpb24iOiJQcmltZXIgSG9vZGllIiwiYW1vdW50IjoxMDAwLCJxdWFudGl0eSI6MX1dfSwiY3VzdG9tZXIiOnt9LCJwYXltZW50TWV0aG9kIjp7InZhdWx0T25TdWNjZXNzIjpmYWxzZSwidmF1bHRPbjNEUyI6ZmFsc2UsIm9wdGlvbnMiOnsiUEFZUEFMIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fSwiUEFZTUVOVF9DQVJEIjp7Im5ldHdvcmtzIjp7IlZJU0EiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJNQVNURVJDQVJEIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX19LCJBRFlFTl9JREVBTCI6eyJzdXJjaGFyZ2UiOnsiYW1vdW50IjowfX0sIlBBWV9OTF9QQVlQQUwiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBUFBMRV9QQVkiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJBRFlFTl9TT0ZPUlQiOnsic3VyY2hhcmdlIjp7ImFtb3VudCI6MH19LCJHT09HTEVfUEFZIjp7InN1cmNoYXJnZSI6eyJhbW91bnQiOjB9fX0sIm9yZGVyZWRBbGxvd2VkQ2FyZE5ldHdvcmtzIjpbIlZJU0EiLCJNQVNURVJDQVJEIiwiQU1FWCIsIk1BRVNUUk8iLCJVTklPTlBBWSIsIkNBUlRFU19CQU5DQUlSRVMiLCJEQU5LT1JUIiwiRElORVJTX0NMVUIiLCJESVNDT1ZFUiIsIkVOUk9VVEUiLCJFTE8iLCJISVBFUiIsIklOVEVSQUMiLCJKQ0IiLCJNSVIiLCJPVEhFUiJdfX0sImNsaWVudE9wdGlvbnMiOnsiY29udGFpbmVyIjoiI2NvbnRhaW5lciIsImNhcmQiOnsicHJlZmVycmVkRmxvdyI6IkVNQkVEREVEX0lOX0hPTUUifSwiZGlyZWN0RGViaXQiOnsiY3VzdG9tZXJDb3VudHJ5Q29kZSI6IkZSIiwiY29tcGFueU5hbWUiOiJQcmltZXIgQVBJIExURCIsImNvbXBhbnlBZGRyZXNzIjoiMTIzIEZha2UgU3QsIExvbmRvbiwgRUMyQSA4WFkifSwicmVkaXJlY3QiOnsiZm9yY2VSZWRpcmVjdCI6ZmFsc2V9LCJnb29nbGVQYXkiOnsiY2FwdHVyZUJpbGxpbmdBZGRyZXNzIjp0cnVlfX0sImFwaUNvbmZpZyI6eyJhcGlLZXkiOiJjY2VlMmJlOC1kZjA4LTRjNzktODU2ZC00MDA4NTM0OWU5ZGEiLCJhcGlWZXJzaW9uIjoiMi4yIiwiZW52IjoiQ1VTVE9NX1NUQUdJTkcifSwiaGVhZGxlc3NPcHRpb25zIjp7fSwibGl0Q29tcG9uZW50c09wdGlvbnMiOnsiZGlzYWJsZWRQYXltZW50cyI6ZmFsc2UsInNka0NvcmUiOmZhbHNlfX0='"
|
|
3221
|
+
"name": "o",
|
|
3222
|
+
"default": "e"
|
|
3234
3223
|
}
|
|
3235
3224
|
],
|
|
3236
3225
|
"exports": [
|
|
3237
3226
|
{
|
|
3238
3227
|
"kind": "js",
|
|
3239
|
-
"name": "
|
|
3228
|
+
"name": "templates",
|
|
3240
3229
|
"declaration": {
|
|
3241
|
-
"name": "
|
|
3242
|
-
"module": "
|
|
3230
|
+
"name": "o",
|
|
3231
|
+
"module": "dist/chunks/zh-CN.MQHNRMN4.js"
|
|
3243
3232
|
}
|
|
3244
3233
|
}
|
|
3245
3234
|
]
|
|
3246
3235
|
},
|
|
3247
3236
|
{
|
|
3248
3237
|
"kind": "javascript-module",
|
|
3249
|
-
"path": "
|
|
3250
|
-
"declarations": [
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
"exports": [
|
|
3238
|
+
"path": "dist/chunks/zh-HK.WNR7XUSX.js",
|
|
3239
|
+
"declarations": [
|
|
3240
|
+
{
|
|
3241
|
+
"kind": "variable",
|
|
3242
|
+
"name": "o",
|
|
3243
|
+
"default": "e"
|
|
3244
|
+
}
|
|
3245
|
+
],
|
|
3246
|
+
"exports": [
|
|
3247
|
+
{
|
|
3248
|
+
"kind": "js",
|
|
3249
|
+
"name": "templates",
|
|
3250
|
+
"declaration": {
|
|
3251
|
+
"name": "o",
|
|
3252
|
+
"module": "dist/chunks/zh-HK.WNR7XUSX.js"
|
|
3253
|
+
}
|
|
3254
|
+
}
|
|
3255
|
+
]
|
|
3258
3256
|
},
|
|
3259
3257
|
{
|
|
3260
3258
|
"kind": "javascript-module",
|
|
3261
|
-
"path": "
|
|
3262
|
-
"declarations": [
|
|
3263
|
-
|
|
3259
|
+
"path": "dist/chunks/zh-TW.GNCY2PNY.js",
|
|
3260
|
+
"declarations": [
|
|
3261
|
+
{
|
|
3262
|
+
"kind": "variable",
|
|
3263
|
+
"name": "o",
|
|
3264
|
+
"default": "e"
|
|
3265
|
+
}
|
|
3266
|
+
],
|
|
3267
|
+
"exports": [
|
|
3268
|
+
{
|
|
3269
|
+
"kind": "js",
|
|
3270
|
+
"name": "templates",
|
|
3271
|
+
"declaration": {
|
|
3272
|
+
"name": "o",
|
|
3273
|
+
"module": "dist/chunks/zh-TW.GNCY2PNY.js"
|
|
3274
|
+
}
|
|
3275
|
+
}
|
|
3276
|
+
]
|
|
3264
3277
|
},
|
|
3265
3278
|
{
|
|
3266
3279
|
"kind": "javascript-module",
|
|
@@ -3466,9 +3479,9 @@
|
|
|
3466
3479
|
},
|
|
3467
3480
|
{
|
|
3468
3481
|
"kind": "js",
|
|
3469
|
-
"name": "
|
|
3482
|
+
"name": "PortalDialog",
|
|
3470
3483
|
"declaration": {
|
|
3471
|
-
"name": "
|
|
3484
|
+
"name": "PortalDialog",
|
|
3472
3485
|
"module": "./portal-dialog/portal-dialog"
|
|
3473
3486
|
}
|
|
3474
3487
|
},
|
|
@@ -3636,8 +3649,16 @@
|
|
|
3636
3649
|
"kind": "js",
|
|
3637
3650
|
"name": "PayPal",
|
|
3638
3651
|
"declaration": {
|
|
3639
|
-
"name": "PayPal",
|
|
3640
|
-
"module": "./native-payment/components/paypal/paypal"
|
|
3652
|
+
"name": "PayPal",
|
|
3653
|
+
"module": "./native-payment/components/paypal/paypal"
|
|
3654
|
+
}
|
|
3655
|
+
},
|
|
3656
|
+
{
|
|
3657
|
+
"kind": "js",
|
|
3658
|
+
"name": "Blik",
|
|
3659
|
+
"declaration": {
|
|
3660
|
+
"name": "Blik",
|
|
3661
|
+
"module": "./blik/blik"
|
|
3641
3662
|
}
|
|
3642
3663
|
},
|
|
3643
3664
|
{
|
|
@@ -6079,6 +6100,14 @@
|
|
|
6079
6100
|
"module": "./compatibility-types"
|
|
6080
6101
|
}
|
|
6081
6102
|
},
|
|
6103
|
+
{
|
|
6104
|
+
"kind": "js",
|
|
6105
|
+
"name": "IBlikPaymentMethodManager",
|
|
6106
|
+
"declaration": {
|
|
6107
|
+
"name": "IBlikPaymentMethodManager",
|
|
6108
|
+
"module": "./compatibility-types"
|
|
6109
|
+
}
|
|
6110
|
+
},
|
|
6082
6111
|
{
|
|
6083
6112
|
"kind": "js",
|
|
6084
6113
|
"name": "ICardPaymentMethodManager",
|
|
@@ -10080,6 +10109,299 @@
|
|
|
10080
10109
|
}
|
|
10081
10110
|
]
|
|
10082
10111
|
},
|
|
10112
|
+
{
|
|
10113
|
+
"kind": "javascript-module",
|
|
10114
|
+
"path": "src/containers/blik/blik.component.ts",
|
|
10115
|
+
"declarations": [
|
|
10116
|
+
{
|
|
10117
|
+
"kind": "class",
|
|
10118
|
+
"description": "BLIK Payment Component\n\nConsolidated component handling BLIK payment flow from button click through\npayment completion. Uses a 4-state machine for managing the user experience.",
|
|
10119
|
+
"name": "BlikComponent",
|
|
10120
|
+
"members": [
|
|
10121
|
+
{
|
|
10122
|
+
"kind": "field",
|
|
10123
|
+
"name": "paymentMethod",
|
|
10124
|
+
"type": {
|
|
10125
|
+
"text": "InitializedPaymentMethod"
|
|
10126
|
+
},
|
|
10127
|
+
"description": "Payment method configuration",
|
|
10128
|
+
"attribute": "paymentMethod"
|
|
10129
|
+
},
|
|
10130
|
+
{
|
|
10131
|
+
"kind": "field",
|
|
10132
|
+
"name": "disabled",
|
|
10133
|
+
"type": {
|
|
10134
|
+
"text": "boolean"
|
|
10135
|
+
},
|
|
10136
|
+
"default": "false",
|
|
10137
|
+
"description": "Disables component interaction when true",
|
|
10138
|
+
"attribute": "disabled"
|
|
10139
|
+
},
|
|
10140
|
+
{
|
|
10141
|
+
"kind": "field",
|
|
10142
|
+
"name": "paymentManagers",
|
|
10143
|
+
"type": {
|
|
10144
|
+
"text": "InitializedManagersMap"
|
|
10145
|
+
},
|
|
10146
|
+
"default": "new Map()"
|
|
10147
|
+
},
|
|
10148
|
+
{
|
|
10149
|
+
"kind": "field",
|
|
10150
|
+
"name": "currentState",
|
|
10151
|
+
"type": {
|
|
10152
|
+
"text": "BlikState"
|
|
10153
|
+
},
|
|
10154
|
+
"privacy": "private",
|
|
10155
|
+
"default": "'collapsed'"
|
|
10156
|
+
},
|
|
10157
|
+
{
|
|
10158
|
+
"kind": "field",
|
|
10159
|
+
"name": "blikCode",
|
|
10160
|
+
"type": {
|
|
10161
|
+
"text": "string"
|
|
10162
|
+
},
|
|
10163
|
+
"privacy": "private",
|
|
10164
|
+
"default": "''"
|
|
10165
|
+
},
|
|
10166
|
+
{
|
|
10167
|
+
"kind": "field",
|
|
10168
|
+
"name": "errorMessage",
|
|
10169
|
+
"type": {
|
|
10170
|
+
"text": "string"
|
|
10171
|
+
},
|
|
10172
|
+
"privacy": "private",
|
|
10173
|
+
"default": "''"
|
|
10174
|
+
},
|
|
10175
|
+
{
|
|
10176
|
+
"kind": "field",
|
|
10177
|
+
"name": "pollingDuration",
|
|
10178
|
+
"type": {
|
|
10179
|
+
"text": "number"
|
|
10180
|
+
},
|
|
10181
|
+
"privacy": "private",
|
|
10182
|
+
"default": "0"
|
|
10183
|
+
},
|
|
10184
|
+
{
|
|
10185
|
+
"kind": "field",
|
|
10186
|
+
"name": "pollingTimer",
|
|
10187
|
+
"type": {
|
|
10188
|
+
"text": "number | null"
|
|
10189
|
+
},
|
|
10190
|
+
"privacy": "private",
|
|
10191
|
+
"default": "null"
|
|
10192
|
+
},
|
|
10193
|
+
{
|
|
10194
|
+
"kind": "field",
|
|
10195
|
+
"name": "loadManagerTask",
|
|
10196
|
+
"privacy": "private",
|
|
10197
|
+
"default": "new Task(this, { args: () => [this.paymentMethod?.type], task: ([type]) => { if (!type) { return initialState; } const managerEntry = this.paymentManagers.get(type); if (!managerEntry) { throw new Error('BLIK payment method manager not initialized'); } // TypeScript narrows the union type based on the payment method type check if (managerEntry.type !== 'ADYEN_BLIK') { throw new Error('Invalid payment method type for BLIK component'); } return managerEntry.manager; }, })",
|
|
10198
|
+
"description": "Manager loading task\nValidates BLIK manager exists before allowing payment flow\n\nThis Task provides reactive validation of manager availability:\n- Automatically re-runs when paymentMethod or paymentManagers change\n- Provides type-safe access to the BLIK manager\n- Enables early error detection before user interaction\n\nUnlike native payment methods (Apple Pay, Google Pay, PayPal) which use a\ntwo-task pattern (manager loading + button rendering), BLIK only needs the\nmanager loading task because it renders its own UI via Lit templates."
|
|
10199
|
+
},
|
|
10200
|
+
{
|
|
10201
|
+
"kind": "field",
|
|
10202
|
+
"name": "handleButtonClick",
|
|
10203
|
+
"privacy": "private",
|
|
10204
|
+
"description": "Handles button click to toggle between collapsed and expanded states"
|
|
10205
|
+
},
|
|
10206
|
+
{
|
|
10207
|
+
"kind": "field",
|
|
10208
|
+
"name": "handleCollapse",
|
|
10209
|
+
"privacy": "private",
|
|
10210
|
+
"description": "Handles collapsing the form back to button-only view\nResets form state when user clicks button to collapse"
|
|
10211
|
+
},
|
|
10212
|
+
{
|
|
10213
|
+
"kind": "field",
|
|
10214
|
+
"name": "handleInput",
|
|
10215
|
+
"privacy": "private",
|
|
10216
|
+
"description": "Handles input changes, validates numeric input, and auto-submits on 6 digits"
|
|
10217
|
+
},
|
|
10218
|
+
{
|
|
10219
|
+
"kind": "field",
|
|
10220
|
+
"name": "handleRetry",
|
|
10221
|
+
"privacy": "private",
|
|
10222
|
+
"description": "Handles retry button click"
|
|
10223
|
+
},
|
|
10224
|
+
{
|
|
10225
|
+
"kind": "method",
|
|
10226
|
+
"name": "startPollingTimer",
|
|
10227
|
+
"privacy": "private",
|
|
10228
|
+
"return": {
|
|
10229
|
+
"type": {
|
|
10230
|
+
"text": "void"
|
|
10231
|
+
}
|
|
10232
|
+
},
|
|
10233
|
+
"description": "Starts polling timer to track payment duration"
|
|
10234
|
+
},
|
|
10235
|
+
{
|
|
10236
|
+
"kind": "method",
|
|
10237
|
+
"name": "stopPollingTimer",
|
|
10238
|
+
"privacy": "private",
|
|
10239
|
+
"return": {
|
|
10240
|
+
"type": {
|
|
10241
|
+
"text": "void"
|
|
10242
|
+
}
|
|
10243
|
+
},
|
|
10244
|
+
"description": "Stops and resets polling timer"
|
|
10245
|
+
},
|
|
10246
|
+
{
|
|
10247
|
+
"kind": "method",
|
|
10248
|
+
"name": "submitBlikCode",
|
|
10249
|
+
"privacy": "private",
|
|
10250
|
+
"return": {
|
|
10251
|
+
"type": {
|
|
10252
|
+
"text": "Promise<void>"
|
|
10253
|
+
}
|
|
10254
|
+
},
|
|
10255
|
+
"description": "Validates and submits the BLIK code"
|
|
10256
|
+
},
|
|
10257
|
+
{
|
|
10258
|
+
"kind": "method",
|
|
10259
|
+
"name": "renderCollapsed",
|
|
10260
|
+
"privacy": "private",
|
|
10261
|
+
"return": {
|
|
10262
|
+
"type": {
|
|
10263
|
+
"text": "TemplateResult"
|
|
10264
|
+
}
|
|
10265
|
+
},
|
|
10266
|
+
"description": "Renders the collapsed button state"
|
|
10267
|
+
},
|
|
10268
|
+
{
|
|
10269
|
+
"kind": "method",
|
|
10270
|
+
"name": "renderExpandedInput",
|
|
10271
|
+
"privacy": "private",
|
|
10272
|
+
"return": {
|
|
10273
|
+
"type": {
|
|
10274
|
+
"text": "TemplateResult"
|
|
10275
|
+
}
|
|
10276
|
+
},
|
|
10277
|
+
"description": "Renders the expanded input state"
|
|
10278
|
+
},
|
|
10279
|
+
{
|
|
10280
|
+
"kind": "method",
|
|
10281
|
+
"name": "renderLoading",
|
|
10282
|
+
"privacy": "private",
|
|
10283
|
+
"return": {
|
|
10284
|
+
"type": {
|
|
10285
|
+
"text": "TemplateResult"
|
|
10286
|
+
}
|
|
10287
|
+
},
|
|
10288
|
+
"description": "Renders the loading state"
|
|
10289
|
+
},
|
|
10290
|
+
{
|
|
10291
|
+
"kind": "method",
|
|
10292
|
+
"name": "renderError",
|
|
10293
|
+
"privacy": "private",
|
|
10294
|
+
"return": {
|
|
10295
|
+
"type": {
|
|
10296
|
+
"text": "TemplateResult"
|
|
10297
|
+
}
|
|
10298
|
+
},
|
|
10299
|
+
"description": "Renders the error state"
|
|
10300
|
+
},
|
|
10301
|
+
{
|
|
10302
|
+
"kind": "method",
|
|
10303
|
+
"name": "renderExpandedState",
|
|
10304
|
+
"privacy": "private",
|
|
10305
|
+
"return": {
|
|
10306
|
+
"type": {
|
|
10307
|
+
"text": "TemplateResult | typeof nothing"
|
|
10308
|
+
}
|
|
10309
|
+
},
|
|
10310
|
+
"description": "Renders the appropriate expanded state based on current state"
|
|
10311
|
+
}
|
|
10312
|
+
],
|
|
10313
|
+
"events": [
|
|
10314
|
+
{
|
|
10315
|
+
"description": "Dispatched on successful payment",
|
|
10316
|
+
"name": "primer-payment-success"
|
|
10317
|
+
},
|
|
10318
|
+
{
|
|
10319
|
+
"description": "Dispatched on payment error",
|
|
10320
|
+
"name": "primer-payment-error"
|
|
10321
|
+
}
|
|
10322
|
+
],
|
|
10323
|
+
"attributes": [
|
|
10324
|
+
{
|
|
10325
|
+
"name": "paymentMethod",
|
|
10326
|
+
"type": {
|
|
10327
|
+
"text": "InitializedPaymentMethod"
|
|
10328
|
+
},
|
|
10329
|
+
"description": "Payment method configuration",
|
|
10330
|
+
"fieldName": "paymentMethod"
|
|
10331
|
+
},
|
|
10332
|
+
{
|
|
10333
|
+
"name": "disabled",
|
|
10334
|
+
"type": {
|
|
10335
|
+
"text": "boolean"
|
|
10336
|
+
},
|
|
10337
|
+
"default": "false",
|
|
10338
|
+
"description": "Disables component interaction when true",
|
|
10339
|
+
"fieldName": "disabled"
|
|
10340
|
+
}
|
|
10341
|
+
],
|
|
10342
|
+
"superclass": {
|
|
10343
|
+
"name": "LitElement",
|
|
10344
|
+
"package": "lit"
|
|
10345
|
+
},
|
|
10346
|
+
"tagName": "primer-blik",
|
|
10347
|
+
"customElement": true
|
|
10348
|
+
}
|
|
10349
|
+
],
|
|
10350
|
+
"exports": [
|
|
10351
|
+
{
|
|
10352
|
+
"kind": "js",
|
|
10353
|
+
"name": "BlikComponent",
|
|
10354
|
+
"declaration": {
|
|
10355
|
+
"name": "BlikComponent",
|
|
10356
|
+
"module": "src/containers/blik/blik.component.ts"
|
|
10357
|
+
}
|
|
10358
|
+
},
|
|
10359
|
+
{
|
|
10360
|
+
"kind": "custom-element-definition",
|
|
10361
|
+
"name": "primer-blik",
|
|
10362
|
+
"declaration": {
|
|
10363
|
+
"name": "BlikComponent",
|
|
10364
|
+
"module": "src/containers/blik/blik.component.ts"
|
|
10365
|
+
}
|
|
10366
|
+
}
|
|
10367
|
+
]
|
|
10368
|
+
},
|
|
10369
|
+
{
|
|
10370
|
+
"kind": "javascript-module",
|
|
10371
|
+
"path": "src/containers/blik/blik.styles.ts",
|
|
10372
|
+
"declarations": [
|
|
10373
|
+
{
|
|
10374
|
+
"kind": "variable",
|
|
10375
|
+
"name": "styles",
|
|
10376
|
+
"default": "css` :host { display: flex; width: 100%; } .blik-container { width: 100%; display: flex; flex-direction: column; transition: all var(--primer-animation-duration) var(--primer-animation-easing); } .blik-container.expanded { border-radius: var(--primer-radius-medium); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); background-color: var(--primer-color-background-outlined-default); border: 1px solid var(--primer-color-border-outlined-default); padding: var(--primer-space-large); } /* Button styles (collapsed state) */ primer-button.blik-button { width: 100%; } /* Override primer-button part styles for BLIK branding */ primer-button.blik-button::part(button) { /* BLIK brand requirement: Black background (#000000) with white logo */ background-color: #000000; border: none; color: var(--primer-color-text-primary); padding: 2px; display: flex; align-items: center; justify-content: center; gap: var(--primer-space-small); /* Fixed height for button - matches redirect payment method calculation */ height: calc( ${unsafeCSS(PAYMENT_METHOD_LINE_HEIGHT)} + calc(2 * var(--primer-space-medium)) ); flex-shrink: 0; /* Prevent button from shrinking when form appears */ } /* Image container for button logo */ .image-container { display: flex; justify-content: center; align-items: center; min-width: 100px; height: 100%; flex-shrink: 0; flex-grow: 1; } /* Button logo */ img { max-width: 100px; width: 100%; height: auto; object-fit: cover; max-height: 98%; } /* Expanded content (form, loading, error states) */ .blik-expanded-content { width: 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--primer-animation-duration) var(--primer-animation-easing); overflow: hidden; margin-top: var(--primer-space-medium); } .blik-container.expanded .blik-expanded-content { grid-template-rows: 1fr; } .blik-content-wrapper { overflow: hidden; } /* Input wrapper */ .blik-input-wrapper { display: flex; flex-direction: column; gap: var(--primer-space-small); } /* Input label */ .blik-label { font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); font-weight: var(--primer-typography-body-medium-weight); line-height: var(--primer-typography-body-medium-line-height); color: var(--primer-color-text-primary); } /* Input field */ .blik-input { width: 100%; padding: var(--primer-space-medium); font-family: var(--primer-typography-body-large-font); font-size: var(--primer-typography-body-large-size); font-weight: var(--primer-typography-body-large-weight); line-height: var(--primer-typography-body-large-line-height); /* Increase spacing between digits for better 6-digit code readability */ letter-spacing: 0.25em; text-align: center; color: var(--primer-color-text-primary); background-color: var(--primer-color-background-outlined-default); border: 1px solid var(--primer-color-border-outlined-default); border-radius: var(--primer-radius-medium); outline: none; transition: border-color var(--primer-animation-duration) var(--primer-animation-easing); } .blik-input::placeholder { color: var(--primer-color-text-secondary); /* Reduce placeholder visibility to emphasize user input */ opacity: 0.5; } .blik-input:focus { border-color: var(--primer-color-border-outlined-focus); } .blik-input:disabled { background-color: var(--primer-color-background-outlined-disabled); border-color: var(--primer-color-border-outlined-disabled); color: var(--primer-color-text-disabled); cursor: not-allowed; } /* Loading state */ .blik-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--primer-space-large); padding: var(--primer-space-xlarge) var(--primer-space-medium); } /* Timeout warning */ .blik-timeout-warning { margin-top: var(--primer-space-medium); padding: var(--primer-space-small); font-size: var(--primer-typography-body-small-size); color: var(--primer-color-text-warning); text-align: center; border-radius: var(--primer-radius-small); background-color: var(--primer-color-surface-warning); } /* Error state */ .blik-error { display: flex; flex-direction: column; align-items: center; gap: var(--primer-space-medium); } .blik-error-message { font-family: var(--primer-typography-body-medium-font); font-size: var(--primer-typography-body-medium-size); font-weight: var(--primer-typography-body-medium-weight); line-height: var(--primer-typography-body-medium-line-height); color: var(--primer-color-text-primary); text-align: center; } /* Retry button */ .blik-retry-button { padding: var(--primer-space-medium) var(--primer-space-large); font-family: var(--primer-typography-title-large-font); font-size: var(--primer-typography-title-large-size); font-weight: var(--primer-typography-title-large-weight); line-height: var(--primer-typography-title-large-line-height); color: var(--primer-color-background-outlined-default); background-color: var(--primer-color-brand); border: none; border-radius: var(--primer-radius-medium); cursor: pointer; outline: none; transition: filter var(--primer-animation-duration) var(--primer-animation-easing); } .blik-retry-button:hover:not(:disabled) { filter: brightness(105%); } .blik-retry-button:active:not(:disabled) { filter: brightness(98%); } .blik-retry-button:focus-visible { outline: 2px solid var(--primer-color-brand); outline-offset: 2px; } .blik-retry-button:disabled { background-color: var(--primer-color-background-outlined-disabled); color: var(--primer-color-text-disabled); cursor: not-allowed; } /* Disabled state styling */ :host([disabled]) { opacity: 0.6; cursor: not-allowed; } :host([disabled]) primer-button::part(button) { pointer-events: none; cursor: not-allowed; } :host([disabled]) img { filter: grayscale(100%); } /* Responsive typography for larger screens */ @media (min-width: 768px) { .blik-input { font-size: var(--primer-typography-title-large-size); } } `"
|
|
10377
|
+
}
|
|
10378
|
+
],
|
|
10379
|
+
"exports": [
|
|
10380
|
+
{
|
|
10381
|
+
"kind": "js",
|
|
10382
|
+
"name": "styles",
|
|
10383
|
+
"declaration": {
|
|
10384
|
+
"name": "styles",
|
|
10385
|
+
"module": "src/containers/blik/blik.styles.ts"
|
|
10386
|
+
}
|
|
10387
|
+
}
|
|
10388
|
+
]
|
|
10389
|
+
},
|
|
10390
|
+
{
|
|
10391
|
+
"kind": "javascript-module",
|
|
10392
|
+
"path": "src/containers/blik/blik.ts",
|
|
10393
|
+
"declarations": [],
|
|
10394
|
+
"exports": [
|
|
10395
|
+
{
|
|
10396
|
+
"kind": "js",
|
|
10397
|
+
"name": "Blik",
|
|
10398
|
+
"declaration": {
|
|
10399
|
+
"name": "BlikComponent",
|
|
10400
|
+
"module": "src/containers/blik/blik.ts"
|
|
10401
|
+
}
|
|
10402
|
+
}
|
|
10403
|
+
]
|
|
10404
|
+
},
|
|
10083
10405
|
{
|
|
10084
10406
|
"kind": "javascript-module",
|
|
10085
10407
|
"path": "src/containers/card-form/card-form-context.ts",
|
|
@@ -11652,10 +11974,10 @@
|
|
|
11652
11974
|
"exports": [
|
|
11653
11975
|
{
|
|
11654
11976
|
"kind": "js",
|
|
11655
|
-
"name": "
|
|
11977
|
+
"name": "PortalDialog",
|
|
11656
11978
|
"declaration": {
|
|
11657
11979
|
"name": "PortalDialogComponent",
|
|
11658
|
-
"module": "
|
|
11980
|
+
"module": "src/containers/portal-dialog/portal-dialog.ts"
|
|
11659
11981
|
}
|
|
11660
11982
|
},
|
|
11661
11983
|
{
|
|
@@ -16442,18 +16764,12 @@
|
|
|
16442
16764
|
{
|
|
16443
16765
|
"kind": "field",
|
|
16444
16766
|
"name": "loadManagerTask",
|
|
16445
|
-
"type": {
|
|
16446
|
-
"text": "Task<\n [NativePaymentMethodTypes | undefined],\n INativePaymentMethodManager\n >"
|
|
16447
|
-
},
|
|
16448
16767
|
"privacy": "private",
|
|
16449
|
-
"default": "new Task(this, { args: () => [
|
|
16768
|
+
"default": "new Task(this, { args: () => [this.paymentMethod?.type], task: ([type]) => { if (!type) { return initialState; } const managerEntry = this.paymentManagers.get(type); if (!managerEntry) { throw new Error(`No manager found for payment method type ${type}`); } // TypeScript narrows the union type based on the payment method type check if (managerEntry.type !== 'APPLE_PAY') { throw new Error( 'Invalid payment method type for Apple Pay component', ); } return managerEntry.manager; }, })"
|
|
16450
16769
|
},
|
|
16451
16770
|
{
|
|
16452
16771
|
"kind": "field",
|
|
16453
16772
|
"name": "renderButtonTask",
|
|
16454
|
-
"type": {
|
|
16455
|
-
"text": "Task<\n [INativePaymentMethodManager | undefined],\n IHeadlessPaymentMethodButton | undefined\n >"
|
|
16456
|
-
},
|
|
16457
16773
|
"privacy": "private",
|
|
16458
16774
|
"default": "new Task(this, { args: () => [this.loadManagerTask.value], task: async ([manager]) => { if (!manager) { return initialState; } // Ensure the component's DOM is updated await this.updateComplete; const buttonContainer = this.buttonContainerRef.value; if (!buttonContainer) { throw new Error('Button container not found'); } const button = manager.createButton(); // Calculate button height from the container const buttonHeight = calculateButtonHeight(buttonContainer); // Render to button container with height await button.render(buttonContainer as Element, { style: { buttonHeight, }, }); // Apply current disabled state to newly created button if (this.disabled) { await button.setDisabled(this.disabled); } // Apply disabled overlay if needed if (this.disabled) { await this.updateComplete; updateOverlayForContainer(this.disabled, this.buttonContainerRef); } return button; }, })"
|
|
16459
16775
|
}
|
|
@@ -16585,18 +16901,12 @@
|
|
|
16585
16901
|
{
|
|
16586
16902
|
"kind": "field",
|
|
16587
16903
|
"name": "loadManagerTask",
|
|
16588
|
-
"type": {
|
|
16589
|
-
"text": "Task<\n [NativePaymentMethodTypes | undefined],\n INativePaymentMethodManager\n >"
|
|
16590
|
-
},
|
|
16591
16904
|
"privacy": "private",
|
|
16592
|
-
"default": "new Task(this, { args: () => [
|
|
16905
|
+
"default": "new Task(this, { args: () => [this.paymentMethod?.type], task: ([type]) => { if (!type) { return initialState; } const managerEntry = this.paymentManagers.get(type); if (!managerEntry) { throw new Error(`No manager found for payment method type ${type}`); } // TypeScript narrows the union type based on the payment method type check if (managerEntry.type !== 'GOOGLE_PAY') { throw new Error( 'Invalid payment method type for Google Pay component', ); } return managerEntry.manager; }, })"
|
|
16593
16906
|
},
|
|
16594
16907
|
{
|
|
16595
16908
|
"kind": "field",
|
|
16596
16909
|
"name": "renderButtonTask",
|
|
16597
|
-
"type": {
|
|
16598
|
-
"text": "Task<\n [INativePaymentMethodManager | undefined],\n IHeadlessPaymentMethodButton | undefined\n >"
|
|
16599
|
-
},
|
|
16600
16910
|
"privacy": "private",
|
|
16601
16911
|
"default": "new Task(this, { args: () => [this.loadManagerTask.value], task: async ([manager]) => { if (!manager) { return initialState; } // Ensure the component's DOM is updated await this.updateComplete; const button = manager.createButton(); // Render to shadow root for full-width support await button.render(this.shadowRoot?.getRootNode() as Element, { style: { shadowRoot: true, // Google Pay doesn't use buttonHeight }, }); // Apply current disabled state to newly created button if (this.disabled) { await button.setDisabled(this.disabled); } // Apply disabled overlay if needed if (this.disabled && this.shadowRoot) { await this.updateComplete; updateOverlayForGooglePay(this.disabled, this.shadowRoot); } return button; }, })"
|
|
16602
16912
|
}
|
|
@@ -16736,18 +17046,12 @@
|
|
|
16736
17046
|
{
|
|
16737
17047
|
"kind": "field",
|
|
16738
17048
|
"name": "loadManagerTask",
|
|
16739
|
-
"type": {
|
|
16740
|
-
"text": "Task<\n [NativePaymentMethodTypes | undefined],\n INativePaymentMethodManager\n >"
|
|
16741
|
-
},
|
|
16742
17049
|
"privacy": "private",
|
|
16743
|
-
"default": "new Task(this, { args: () => [
|
|
17050
|
+
"default": "new Task(this, { args: () => [this.paymentMethod?.type], task: ([type]) => { if (!type) { return initialState; } const managerEntry = this.paymentManagers.get(type); if (!managerEntry) { throw new Error(`No manager found for payment method type ${type}`); } // TypeScript narrows the union type based on the payment method type check if (managerEntry.type !== 'PAYPAL') { throw new Error('Invalid payment method type for PayPal component'); } return managerEntry.manager; }, })"
|
|
16744
17051
|
},
|
|
16745
17052
|
{
|
|
16746
17053
|
"kind": "field",
|
|
16747
17054
|
"name": "renderButtonTask",
|
|
16748
|
-
"type": {
|
|
16749
|
-
"text": "Task<\n [INativePaymentMethodManager | undefined],\n IHeadlessPaymentMethodButton | undefined\n >"
|
|
16750
|
-
},
|
|
16751
17055
|
"privacy": "private",
|
|
16752
17056
|
"default": "new Task(this, { args: () => [this.loadManagerTask.value], task: async ([manager]) => { if (!manager) { return initialState; } // Ensure the component's DOM is updated await this.updateComplete; const buttonContainer = this.buttonContainerRef.value; if (!buttonContainer) { throw new Error('Button container not found'); } const button = manager.createButton(); // Calculate button height from the container const buttonHeight = calculateButtonHeight(buttonContainer); // Apply PayPal SDK height constraints (25-55px) const constrainedHeight = getPayPalConstrainedHeight(buttonHeight); // Warn if height exceeds maximum const PAYPAL_MAX_HEIGHT = 55; if (buttonHeight > PAYPAL_MAX_HEIGHT) { PrimerJSLogger.warn( `PayPal button height (${buttonHeight}px) exceeds maximum allowed height of ${PAYPAL_MAX_HEIGHT}px. Button will be capped at ${PAYPAL_MAX_HEIGHT}px. This is a PayPal SDK limitation.`, ); } // Render to button container with constrained height await button.render(buttonContainer as Element, { style: { buttonHeight: constrainedHeight, }, }); // Apply current disabled state to newly created button if (this.disabled) { await button.setDisabled(this.disabled); } // Apply disabled overlay if needed if (this.disabled) { await this.updateComplete; updateOverlayForContainer(this.disabled, this.buttonContainerRef); } return button; }, })"
|
|
16753
17057
|
}
|
|
@@ -17061,6 +17365,10 @@
|
|
|
17061
17365
|
},
|
|
17062
17366
|
"tagName": "primer-vault-cvv-input",
|
|
17063
17367
|
"customElement": true
|
|
17368
|
+
},
|
|
17369
|
+
{
|
|
17370
|
+
"kind": "variable",
|
|
17371
|
+
"name": "container"
|
|
17064
17372
|
}
|
|
17065
17373
|
],
|
|
17066
17374
|
"exports": [
|