@justifi/webcomponents 5.7.6-rc-06 → 5.7.6-rc-08
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/dist/cjs/{check-pkg-version-AkwlI7Od.js → check-pkg-version-PeSbhLdJ.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay.cjs.entry.js +39 -17
- package/dist/cjs/justifi-bank-account-form_5.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-button_5.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +2 -2
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +2 -2
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/{package-BxbbLMLn.js → package-CRFlBTFJ.js} +1 -1
- package/dist/collection/api/ApplePay.js +6 -11
- package/dist/collection/api/services/apple-pay.service.js +23 -4
- package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +10 -2
- package/dist/docs.json +3 -3
- package/dist/esm/{check-pkg-version--jxAuWpF.js → check-pkg-version-C2I-noS-.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-apple-pay.entry.js +39 -17
- package/dist/esm/justifi-bank-account-form_5.entry.js +2 -2
- package/dist/esm/justifi-business-details.entry.js +2 -2
- package/dist/esm/justifi-business-form.entry.js +2 -2
- package/dist/esm/justifi-button_5.entry.js +2 -2
- package/dist/esm/justifi-checkout.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +2 -2
- package/dist/esm/justifi-dispute-notification_3.entry.js +2 -2
- package/dist/esm/justifi-gross-payment-chart.entry.js +2 -2
- package/dist/esm/justifi-order-terminals.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +2 -2
- package/dist/esm/justifi-payment-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payments-list.entry.js +2 -2
- package/dist/esm/justifi-payout-details.entry.js +2 -2
- package/dist/esm/justifi-payout-transactions-list.entry.js +2 -2
- package/dist/esm/justifi-payouts-list.entry.js +2 -2
- package/dist/esm/justifi-refund-payment.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list.entry.js +2 -2
- package/dist/esm/justifi-terminals-list.entry.js +2 -2
- package/dist/esm/justifi-tokenize-payment-method.entry.js +2 -2
- package/dist/esm/{package-COytJSGm.js → package-C3HuV_kf.js} +1 -1
- package/dist/module/justifi-apple-pay.js +39 -17
- package/dist/module/package.js +1 -1
- package/dist/types/api/ApplePay.d.ts +2 -2
- package/dist/types/api/services/apple-pay.service.d.ts +9 -2
- package/dist/webcomponents/{p-667b5302.entry.js → p-0218759e.entry.js} +1 -1
- package/dist/webcomponents/{p-b7adc480.entry.js → p-0307ecb2.entry.js} +1 -1
- package/dist/webcomponents/p-11719182.entry.js +1 -0
- package/dist/webcomponents/{p-3505a735.entry.js → p-1306cc29.entry.js} +1 -1
- package/dist/webcomponents/{p-33fe206e.entry.js → p-1f97fb2d.entry.js} +1 -1
- package/dist/webcomponents/{p-958e0c51.entry.js → p-2131451b.entry.js} +1 -1
- package/dist/webcomponents/{p-488f4f52.entry.js → p-27d89548.entry.js} +1 -1
- package/dist/webcomponents/{p-4d23ebb7.entry.js → p-2b8dbdb0.entry.js} +1 -1
- package/dist/webcomponents/{p-8032dd16.entry.js → p-314d08be.entry.js} +1 -1
- package/dist/webcomponents/{p-8824c860.entry.js → p-356f86cb.entry.js} +1 -1
- package/dist/webcomponents/{p-855a2447.entry.js → p-4e3a86c7.entry.js} +1 -1
- package/dist/webcomponents/p-513c3232.entry.js +1 -0
- package/dist/webcomponents/{p-a43bd396.entry.js → p-56f5955a.entry.js} +1 -1
- package/dist/webcomponents/{p-ea958e5d.entry.js → p-58395028.entry.js} +1 -1
- package/dist/webcomponents/{p-58fcce9f.entry.js → p-728012cb.entry.js} +1 -1
- package/dist/webcomponents/{p-d2ddf864.entry.js → p-9eeb7e9a.entry.js} +1 -1
- package/dist/webcomponents/{p-OeJDUMFM.js → p-C1nBLmHv.js} +1 -1
- package/dist/webcomponents/p-C3HuV_kf.js +1 -0
- package/dist/webcomponents/{p-a208da9e.entry.js → p-a5fa79cd.entry.js} +1 -1
- package/dist/webcomponents/{p-faf35b15.entry.js → p-aa189ce4.entry.js} +1 -1
- package/dist/webcomponents/{p-ce0da3ec.entry.js → p-bc94f43a.entry.js} +1 -1
- package/dist/webcomponents/{p-fbd3e0e3.entry.js → p-cc035e82.entry.js} +1 -1
- package/dist/webcomponents/{p-6da97bca.entry.js → p-d2b3c6ee.entry.js} +1 -1
- package/dist/webcomponents/{p-eb69b479.entry.js → p-d5d1d3b2.entry.js} +1 -1
- package/dist/webcomponents/{p-d65a971e.entry.js → p-e94800a2.entry.js} +1 -1
- package/dist/webcomponents/p-ffebee17.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-5e1f4c1f.entry.js +0 -1
- package/dist/webcomponents/p-86f73372.entry.js +0 -1
- package/dist/webcomponents/p-880b9afe.entry.js +0 -1
- package/dist/webcomponents/p-COytJSGm.js +0 -1
|
@@ -68,9 +68,9 @@ export class ApplePayPaymentRequest {
|
|
|
68
68
|
export class ApplePayHelpers {
|
|
69
69
|
static isApplePaySupported() {
|
|
70
70
|
var _a;
|
|
71
|
-
return typeof window !== 'undefined' &&
|
|
71
|
+
return (typeof window !== 'undefined' &&
|
|
72
72
|
'ApplePaySession' in window &&
|
|
73
|
-
((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.supportsVersion(3));
|
|
73
|
+
((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.supportsVersion(3)));
|
|
74
74
|
}
|
|
75
75
|
static canMakePayments() {
|
|
76
76
|
var _a;
|
|
@@ -85,7 +85,7 @@ export class ApplePayHelpers {
|
|
|
85
85
|
return false;
|
|
86
86
|
}
|
|
87
87
|
try {
|
|
88
|
-
return await ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePaymentsWithActiveCard(merchantIdentifier)) || false;
|
|
88
|
+
return ((await ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePaymentsWithActiveCard(merchantIdentifier))) || false);
|
|
89
89
|
}
|
|
90
90
|
catch (error) {
|
|
91
91
|
console.error('Error checking Apple Pay active card:', error);
|
|
@@ -102,23 +102,18 @@ export class ApplePayHelpers {
|
|
|
102
102
|
return {
|
|
103
103
|
label,
|
|
104
104
|
amount: this.formatAmount(amount),
|
|
105
|
-
type
|
|
105
|
+
type,
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
static getDefaultSupportedNetworks() {
|
|
109
|
-
return [
|
|
110
|
-
'amex',
|
|
111
|
-
'discover',
|
|
112
|
-
'masterCard',
|
|
113
|
-
'visa'
|
|
114
|
-
];
|
|
109
|
+
return ['amex', 'discover', 'masterCard', 'visa'];
|
|
115
110
|
}
|
|
116
111
|
static getDefaultMerchantCapabilities() {
|
|
117
112
|
return [
|
|
118
113
|
ApplePayMerchantCapability.SUPPORTS_3DS,
|
|
119
114
|
ApplePayMerchantCapability.SUPPORTS_EMV,
|
|
120
115
|
ApplePayMerchantCapability.SUPPORTS_CREDIT,
|
|
121
|
-
ApplePayMerchantCapability.SUPPORTS_DEBIT
|
|
116
|
+
ApplePayMerchantCapability.SUPPORTS_DEBIT,
|
|
122
117
|
];
|
|
123
118
|
}
|
|
124
119
|
}
|
|
@@ -34,6 +34,15 @@ export class ApplePayService {
|
|
|
34
34
|
setApiBaseUrl(url) {
|
|
35
35
|
this.apiBaseUrl = url;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Set authentication token
|
|
39
|
+
*/
|
|
40
|
+
setAuthToken(authToken) {
|
|
41
|
+
this.authToken = authToken;
|
|
42
|
+
}
|
|
43
|
+
setAccountId(accountId) {
|
|
44
|
+
this.accountId = accountId;
|
|
45
|
+
}
|
|
37
46
|
/**
|
|
38
47
|
* Initialize Apple Pay configuration
|
|
39
48
|
*/
|
|
@@ -46,7 +55,7 @@ export class ApplePayService {
|
|
|
46
55
|
/**
|
|
47
56
|
* Validate merchant with Apple Pay servers via API (fixed to match original logic)
|
|
48
57
|
*/
|
|
49
|
-
async validateMerchant(payload) {
|
|
58
|
+
async validateMerchant(authToken, payload) {
|
|
50
59
|
const endpoint = `${this.apiBaseUrl}/v1/apple_pay/merchant_session`;
|
|
51
60
|
const body = payload;
|
|
52
61
|
const response = await fetch(endpoint, {
|
|
@@ -54,6 +63,8 @@ export class ApplePayService {
|
|
|
54
63
|
headers: {
|
|
55
64
|
'Content-Type': 'application/json',
|
|
56
65
|
Accept: 'application/json',
|
|
66
|
+
Authorization: `Bearer ${authToken}`,
|
|
67
|
+
"Sub-Account": this.accountId
|
|
57
68
|
},
|
|
58
69
|
body: JSON.stringify(body),
|
|
59
70
|
});
|
|
@@ -75,7 +86,7 @@ export class ApplePayService {
|
|
|
75
86
|
/**
|
|
76
87
|
* Process Apple Pay payment via API (fixed to match original logic)
|
|
77
88
|
*/
|
|
78
|
-
async processPayment(payload) {
|
|
89
|
+
async processPayment(authToken, payload) {
|
|
79
90
|
const endpoint = `${this.apiBaseUrl}/apple_pay/process_token`;
|
|
80
91
|
const body = payload;
|
|
81
92
|
const response = await fetch(endpoint, {
|
|
@@ -83,6 +94,8 @@ export class ApplePayService {
|
|
|
83
94
|
headers: {
|
|
84
95
|
'Content-Type': 'application/json',
|
|
85
96
|
Accept: 'application/json',
|
|
97
|
+
Authorization: `Bearer ${authToken}`,
|
|
98
|
+
"Sub-Account": this.accountId
|
|
86
99
|
},
|
|
87
100
|
body: JSON.stringify(body),
|
|
88
101
|
});
|
|
@@ -165,7 +178,10 @@ export class ApplePayService {
|
|
|
165
178
|
const validationPayload = {
|
|
166
179
|
validation_url: event.validationURL,
|
|
167
180
|
};
|
|
168
|
-
|
|
181
|
+
if (!this.authToken) {
|
|
182
|
+
throw new Error('Authentication token not set. Call setAuthToken() first.');
|
|
183
|
+
}
|
|
184
|
+
const merchantSession = await this.validateMerchant(this.authToken, validationPayload);
|
|
169
185
|
if (merchantSession && isValidMerchantSession(merchantSession)) {
|
|
170
186
|
try {
|
|
171
187
|
this.currentSession.completeMerchantValidation(merchantSession);
|
|
@@ -210,7 +226,10 @@ export class ApplePayService {
|
|
|
210
226
|
price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
|
|
211
227
|
description: this.currentPaymentRequest.total.label,
|
|
212
228
|
} });
|
|
213
|
-
|
|
229
|
+
if (!this.authToken) {
|
|
230
|
+
throw new Error('Authentication token not set. Call setAuthToken() first.');
|
|
231
|
+
}
|
|
232
|
+
const paymentResult = await this.processPayment(this.authToken, paymentPayload);
|
|
214
233
|
if (paymentResult.success) {
|
|
215
234
|
this.currentSession.completePayment({
|
|
216
235
|
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
@@ -72,16 +72,24 @@ export class ApplePay {
|
|
|
72
72
|
componentWillLoad() {
|
|
73
73
|
this.applePayService = new ApplePayService();
|
|
74
74
|
this.applePayService.setApiBaseUrl(this.apiBaseUrl);
|
|
75
|
+
this.applePayService.setAuthToken(checkoutStore.authToken);
|
|
76
|
+
this.applePayService.setAccountId(checkoutStore.accountId);
|
|
75
77
|
this.initializeApplePay();
|
|
76
78
|
}
|
|
77
79
|
componentDidLoad() {
|
|
78
80
|
onChange('paymentAmount', () => {
|
|
79
81
|
this.initializeApplePay();
|
|
80
82
|
});
|
|
83
|
+
onChange('authToken', () => {
|
|
84
|
+
if (this.applePayService) {
|
|
85
|
+
this.applePayService.setAuthToken(checkoutStore.authToken);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
81
88
|
}
|
|
82
89
|
watchPropsChange() {
|
|
83
90
|
if (this.applePayService) {
|
|
84
91
|
this.applePayService.setApiBaseUrl(this.apiBaseUrl);
|
|
92
|
+
this.applePayService.setAuthToken(checkoutStore.authToken);
|
|
85
93
|
}
|
|
86
94
|
this.initializeApplePay();
|
|
87
95
|
}
|
|
@@ -150,10 +158,10 @@ export class ApplePay {
|
|
|
150
158
|
this.isAvailable &&
|
|
151
159
|
this.canMakePayments &&
|
|
152
160
|
!this.error;
|
|
153
|
-
return (h(StyledHost, { key: '
|
|
161
|
+
return (h(StyledHost, { key: '063e9340c91a578205cdc68d57a4e92fb5dad7ea' }, h("div", { key: 'e1d01e34398adc6c5cd9fa10ef8a609e81980cff', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: 'e17de7edd2fcc10f01ab36307e8645d5d79be261', isReady: isReady }), !this.isLoading && this.error && (h("div", { key: '7b929489b4bc65f7ece00fbd1d941923e5fef384', class: 'apple-pay-error', role: 'alert' }, h("span", { key: '8683f75685f4e5804dab52b1c28553cc0cf7753a', class: 'error-icon' }, "\u26A0\uFE0F"), h("span", { key: '4d18feba86c7b565275e134819e0f68a7feb6e40', class: 'error-message' }, this.error))), !this.isLoading && !this.error && !this.isAvailable && (h("div", { key: '2dbccabcda4d7a7b632abcc68d538f21b63ca286', class: 'apple-pay-unavailable' }, h("span", { key: '5993b7051423a443b3afcdc433c2928e47fc4a50', class: 'unavailable-message' }, "Apple Pay is not available on this device"))), !this.isLoading &&
|
|
154
162
|
!this.error &&
|
|
155
163
|
this.isAvailable &&
|
|
156
|
-
this.canMakePayments && (h(ApplePayButton, { key: '
|
|
164
|
+
this.canMakePayments && (h(ApplePayButton, { key: 'cba576ef4b535396d1c6225e682ce52bd452b53f', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '75271c0e6b8053cf11589cb54e2af22df921c8df' }, `
|
|
157
165
|
.apple-pay-container {
|
|
158
166
|
width: 100%;
|
|
159
167
|
}
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-08-
|
|
2
|
+
"timestamp": "2025-08-05T19:43:30",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.36.2",
|
|
@@ -21656,12 +21656,12 @@
|
|
|
21656
21656
|
"path": "src/components.d.ts"
|
|
21657
21657
|
},
|
|
21658
21658
|
"src/api/ApplePay.ts::ApplePayButtonType": {
|
|
21659
|
-
"declaration": "export enum ApplePayButtonType {\n PLAIN = 'plain',\n BUY = 'buy',\n SET_UP = 'set-up',\n DONATE = 'donate',\n CHECK_OUT = 'check-out',\n BOOK = 'book',\n SUBSCRIBE = 'subscribe'
|
|
21659
|
+
"declaration": "export enum ApplePayButtonType {\n PLAIN = 'plain',\n BUY = 'buy',\n SET_UP = 'set-up',\n DONATE = 'donate',\n CHECK_OUT = 'check-out',\n BOOK = 'book',\n SUBSCRIBE = 'subscribe',\n}",
|
|
21660
21660
|
"docstring": "",
|
|
21661
21661
|
"path": "src/api/ApplePay.ts"
|
|
21662
21662
|
},
|
|
21663
21663
|
"src/api/ApplePay.ts::ApplePayButtonStyle": {
|
|
21664
|
-
"declaration": "export enum ApplePayButtonStyle {\n BLACK = 'black',\n WHITE = 'white',\n WHITE_OUTLINE = 'white-outline'
|
|
21664
|
+
"declaration": "export enum ApplePayButtonStyle {\n BLACK = 'black',\n WHITE = 'white',\n WHITE_OUTLINE = 'white-outline',\n}",
|
|
21665
21665
|
"docstring": "",
|
|
21666
21666
|
"path": "src/api/ApplePay.ts"
|
|
21667
21667
|
},
|
|
@@ -3,7 +3,7 @@ import { c as createStore } from './index-B9me4yN2.js';
|
|
|
3
3
|
import { i as inputInvalidAndFocused, b as inputInvalid, a as inputFocused, c as input, l as label } from './parts-D3G5aVLy.js';
|
|
4
4
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-BFTU3MAI.js';
|
|
5
5
|
import { F as FormControlErrorText } from './form-control-error-text-Dew-m4MW.js';
|
|
6
|
-
import { p as packageJson } from './package-
|
|
6
|
+
import { p as packageJson } from './package-C3HuV_kf.js';
|
|
7
7
|
|
|
8
8
|
const iframeInputStylesStore = createStore({
|
|
9
9
|
focused: {
|
|
@@ -76,9 +76,9 @@ class ApplePayPaymentRequest {
|
|
|
76
76
|
class ApplePayHelpers {
|
|
77
77
|
static isApplePaySupported() {
|
|
78
78
|
var _a;
|
|
79
|
-
return typeof window !== 'undefined' &&
|
|
79
|
+
return (typeof window !== 'undefined' &&
|
|
80
80
|
'ApplePaySession' in window &&
|
|
81
|
-
((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.supportsVersion(3));
|
|
81
|
+
((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.supportsVersion(3)));
|
|
82
82
|
}
|
|
83
83
|
static canMakePayments() {
|
|
84
84
|
var _a;
|
|
@@ -93,7 +93,7 @@ class ApplePayHelpers {
|
|
|
93
93
|
return false;
|
|
94
94
|
}
|
|
95
95
|
try {
|
|
96
|
-
return await ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePaymentsWithActiveCard(merchantIdentifier)) || false;
|
|
96
|
+
return ((await ((_a = window.ApplePaySession) === null || _a === void 0 ? void 0 : _a.canMakePaymentsWithActiveCard(merchantIdentifier))) || false);
|
|
97
97
|
}
|
|
98
98
|
catch (error) {
|
|
99
99
|
console.error('Error checking Apple Pay active card:', error);
|
|
@@ -110,23 +110,18 @@ class ApplePayHelpers {
|
|
|
110
110
|
return {
|
|
111
111
|
label,
|
|
112
112
|
amount: this.formatAmount(amount),
|
|
113
|
-
type
|
|
113
|
+
type,
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
static getDefaultSupportedNetworks() {
|
|
117
|
-
return [
|
|
118
|
-
'amex',
|
|
119
|
-
'discover',
|
|
120
|
-
'masterCard',
|
|
121
|
-
'visa'
|
|
122
|
-
];
|
|
117
|
+
return ['amex', 'discover', 'masterCard', 'visa'];
|
|
123
118
|
}
|
|
124
119
|
static getDefaultMerchantCapabilities() {
|
|
125
120
|
return [
|
|
126
121
|
ApplePayMerchantCapability.SUPPORTS_3DS,
|
|
127
122
|
ApplePayMerchantCapability.SUPPORTS_EMV,
|
|
128
123
|
ApplePayMerchantCapability.SUPPORTS_CREDIT,
|
|
129
|
-
ApplePayMerchantCapability.SUPPORTS_DEBIT
|
|
124
|
+
ApplePayMerchantCapability.SUPPORTS_DEBIT,
|
|
130
125
|
];
|
|
131
126
|
}
|
|
132
127
|
}
|
|
@@ -166,6 +161,15 @@ class ApplePayService {
|
|
|
166
161
|
setApiBaseUrl(url) {
|
|
167
162
|
this.apiBaseUrl = url;
|
|
168
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Set authentication token
|
|
166
|
+
*/
|
|
167
|
+
setAuthToken(authToken) {
|
|
168
|
+
this.authToken = authToken;
|
|
169
|
+
}
|
|
170
|
+
setAccountId(accountId) {
|
|
171
|
+
this.accountId = accountId;
|
|
172
|
+
}
|
|
169
173
|
/**
|
|
170
174
|
* Initialize Apple Pay configuration
|
|
171
175
|
*/
|
|
@@ -178,7 +182,7 @@ class ApplePayService {
|
|
|
178
182
|
/**
|
|
179
183
|
* Validate merchant with Apple Pay servers via API (fixed to match original logic)
|
|
180
184
|
*/
|
|
181
|
-
async validateMerchant(payload) {
|
|
185
|
+
async validateMerchant(authToken, payload) {
|
|
182
186
|
const endpoint = `${this.apiBaseUrl}/v1/apple_pay/merchant_session`;
|
|
183
187
|
const body = payload;
|
|
184
188
|
const response = await fetch(endpoint, {
|
|
@@ -186,6 +190,8 @@ class ApplePayService {
|
|
|
186
190
|
headers: {
|
|
187
191
|
'Content-Type': 'application/json',
|
|
188
192
|
Accept: 'application/json',
|
|
193
|
+
Authorization: `Bearer ${authToken}`,
|
|
194
|
+
"Sub-Account": this.accountId
|
|
189
195
|
},
|
|
190
196
|
body: JSON.stringify(body),
|
|
191
197
|
});
|
|
@@ -207,7 +213,7 @@ class ApplePayService {
|
|
|
207
213
|
/**
|
|
208
214
|
* Process Apple Pay payment via API (fixed to match original logic)
|
|
209
215
|
*/
|
|
210
|
-
async processPayment(payload) {
|
|
216
|
+
async processPayment(authToken, payload) {
|
|
211
217
|
const endpoint = `${this.apiBaseUrl}/apple_pay/process_token`;
|
|
212
218
|
const body = payload;
|
|
213
219
|
const response = await fetch(endpoint, {
|
|
@@ -215,6 +221,8 @@ class ApplePayService {
|
|
|
215
221
|
headers: {
|
|
216
222
|
'Content-Type': 'application/json',
|
|
217
223
|
Accept: 'application/json',
|
|
224
|
+
Authorization: `Bearer ${authToken}`,
|
|
225
|
+
"Sub-Account": this.accountId
|
|
218
226
|
},
|
|
219
227
|
body: JSON.stringify(body),
|
|
220
228
|
});
|
|
@@ -297,7 +305,10 @@ class ApplePayService {
|
|
|
297
305
|
const validationPayload = {
|
|
298
306
|
validation_url: event.validationURL,
|
|
299
307
|
};
|
|
300
|
-
|
|
308
|
+
if (!this.authToken) {
|
|
309
|
+
throw new Error('Authentication token not set. Call setAuthToken() first.');
|
|
310
|
+
}
|
|
311
|
+
const merchantSession = await this.validateMerchant(this.authToken, validationPayload);
|
|
301
312
|
if (merchantSession && isValidMerchantSession(merchantSession)) {
|
|
302
313
|
try {
|
|
303
314
|
this.currentSession.completeMerchantValidation(merchantSession);
|
|
@@ -342,7 +353,10 @@ class ApplePayService {
|
|
|
342
353
|
price: ApplePayHelpers.parseAmount(this.currentPaymentRequest.total.amount),
|
|
343
354
|
description: this.currentPaymentRequest.total.label,
|
|
344
355
|
} });
|
|
345
|
-
|
|
356
|
+
if (!this.authToken) {
|
|
357
|
+
throw new Error('Authentication token not set. Call setAuthToken() first.');
|
|
358
|
+
}
|
|
359
|
+
const paymentResult = await this.processPayment(this.authToken, paymentPayload);
|
|
346
360
|
if (paymentResult.success) {
|
|
347
361
|
this.currentSession.completePayment({
|
|
348
362
|
status: ApplePaySessionStatus.STATUS_SUCCESS,
|
|
@@ -707,16 +721,24 @@ const ApplePay = class {
|
|
|
707
721
|
componentWillLoad() {
|
|
708
722
|
this.applePayService = new ApplePayService();
|
|
709
723
|
this.applePayService.setApiBaseUrl(this.apiBaseUrl);
|
|
724
|
+
this.applePayService.setAuthToken(checkoutStore.authToken);
|
|
725
|
+
this.applePayService.setAccountId(checkoutStore.accountId);
|
|
710
726
|
this.initializeApplePay();
|
|
711
727
|
}
|
|
712
728
|
componentDidLoad() {
|
|
713
729
|
onChange('paymentAmount', () => {
|
|
714
730
|
this.initializeApplePay();
|
|
715
731
|
});
|
|
732
|
+
onChange('authToken', () => {
|
|
733
|
+
if (this.applePayService) {
|
|
734
|
+
this.applePayService.setAuthToken(checkoutStore.authToken);
|
|
735
|
+
}
|
|
736
|
+
});
|
|
716
737
|
}
|
|
717
738
|
watchPropsChange() {
|
|
718
739
|
if (this.applePayService) {
|
|
719
740
|
this.applePayService.setApiBaseUrl(this.apiBaseUrl);
|
|
741
|
+
this.applePayService.setAuthToken(checkoutStore.authToken);
|
|
720
742
|
}
|
|
721
743
|
this.initializeApplePay();
|
|
722
744
|
}
|
|
@@ -785,10 +807,10 @@ const ApplePay = class {
|
|
|
785
807
|
this.isAvailable &&
|
|
786
808
|
this.canMakePayments &&
|
|
787
809
|
!this.error;
|
|
788
|
-
return (h(StyledHost, { key: '
|
|
810
|
+
return (h(StyledHost, { key: '063e9340c91a578205cdc68d57a4e92fb5dad7ea' }, h("div", { key: 'e1d01e34398adc6c5cd9fa10ef8a609e81980cff', class: 'apple-pay-container' }, h(ApplePaySkeleton, { key: 'e17de7edd2fcc10f01ab36307e8645d5d79be261', isReady: isReady }), !this.isLoading && this.error && (h("div", { key: '7b929489b4bc65f7ece00fbd1d941923e5fef384', class: 'apple-pay-error', role: 'alert' }, h("span", { key: '8683f75685f4e5804dab52b1c28553cc0cf7753a', class: 'error-icon' }, "\u26A0\uFE0F"), h("span", { key: '4d18feba86c7b565275e134819e0f68a7feb6e40', class: 'error-message' }, this.error))), !this.isLoading && !this.error && !this.isAvailable && (h("div", { key: '2dbccabcda4d7a7b632abcc68d538f21b63ca286', class: 'apple-pay-unavailable' }, h("span", { key: '5993b7051423a443b3afcdc433c2928e47fc4a50', class: 'unavailable-message' }, "Apple Pay is not available on this device"))), !this.isLoading &&
|
|
789
811
|
!this.error &&
|
|
790
812
|
this.isAvailable &&
|
|
791
|
-
this.canMakePayments && (h(ApplePayButton, { key: '
|
|
813
|
+
this.canMakePayments && (h(ApplePayButton, { key: 'cba576ef4b535396d1c6225e682ce52bd452b53f', buttonType: this.buttonType, buttonStyle: this.buttonStyle, disabled: this.disabled, isProcessing: this.isProcessing, isAvailable: this.isAvailable, clickHandler: this.handleApplePayClick }))), h("style", { key: '75271c0e6b8053cf11589cb54e2af22df921c8df' }, `
|
|
792
814
|
.apple-pay-container {
|
|
793
815
|
width: 100%;
|
|
794
816
|
}
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-kpoIU4v_.js'
|
|
|
2
2
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
3
3
|
import './event-types-CZfYo5-1.js';
|
|
4
4
|
import { S as Skeleton } from './skeleton-CZfDofm6.js';
|
|
5
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
6
6
|
import { w as waitForConfig, c as configState } from './config-state-BrllxiM0.js';
|
|
7
7
|
import { c as create$3, F as FormController } from './index.esm-cYgKOXtz.js';
|
|
8
8
|
import { k as postalValidation, l as stateValidation, m as cityValidation, n as lineTwoValidation, q as lineOneValidation, y as identityNameValidation } from './schema-validations-DcR1ujuX.js';
|
|
@@ -10,7 +10,7 @@ import { ag as billingForm } from './parts-D3G5aVLy.js';
|
|
|
10
10
|
import { n as numberOnlyHandler } from './utils-BnjCmwMr.js';
|
|
11
11
|
import { S as StateOptions } from './state-options-BX8GieXu.js';
|
|
12
12
|
import { o as onChange } from './checkout.store-QrBBYQfi.js';
|
|
13
|
-
import './package-
|
|
13
|
+
import './package-C3HuV_kf.js';
|
|
14
14
|
import './Api-DQM93PRm.js';
|
|
15
15
|
import './utils-B7jE0g5_.js';
|
|
16
16
|
import './ComponentError-Cjcsf8ku.js';
|
|
@@ -3,7 +3,7 @@ import { E as ErrorState } from './utils-CBJo9jNE.js';
|
|
|
3
3
|
import { B as BusinessService } from './business.service-BgXdRyYa.js';
|
|
4
4
|
import { m as makeGetBusiness } from './get-business-Crb6P-iI.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
7
7
|
import './parts-D3G5aVLy.js';
|
|
8
8
|
import './Api-DQM93PRm.js';
|
|
9
9
|
import './config-state-BrllxiM0.js';
|
|
@@ -17,7 +17,7 @@ import './Business-BCoP0TAV.js';
|
|
|
17
17
|
import './helpers-Mu7LQT-w.js';
|
|
18
18
|
import './state-options-BX8GieXu.js';
|
|
19
19
|
import './utils-BeQLScSm.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-C3HuV_kf.js';
|
|
21
21
|
|
|
22
22
|
const BusinessDetails = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -10,7 +10,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
10
10
|
import './Payment-Bs0-9Lnt.js';
|
|
11
11
|
import { B as Business, b as BusinessFormServerErrors } from './Business-BCoP0TAV.js';
|
|
12
12
|
import './Dispute-7MWRbTXI.js';
|
|
13
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
13
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
14
14
|
import { B as Button } from './button-DxM4-mlD.js';
|
|
15
15
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
16
16
|
import { H as Header1 } from './header-1-B0PFwGib.js';
|
|
@@ -25,7 +25,7 @@ import './state-options-BX8GieXu.js';
|
|
|
25
25
|
import './business-form-options-CgssATyg.js';
|
|
26
26
|
import './index-B9me4yN2.js';
|
|
27
27
|
import './helpers-Mu7LQT-w.js';
|
|
28
|
-
import './package-
|
|
28
|
+
import './package-C3HuV_kf.js';
|
|
29
29
|
import './Api-DQM93PRm.js';
|
|
30
30
|
import './parts-D3G5aVLy.js';
|
|
31
31
|
import './utils-BeQLScSm.js';
|
|
@@ -8,7 +8,7 @@ import './event-types-CZfYo5-1.js';
|
|
|
8
8
|
import { H as Header1 } from './header-1-B0PFwGib.js';
|
|
9
9
|
import { H as Header2, b as insuranceValuesOn, i as insuranceValues } from './insurance-state-DQH40x6F.js';
|
|
10
10
|
import { H as Header3 } from './header-3-D3gxg6YU.js';
|
|
11
|
-
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version
|
|
11
|
+
import { J as JustifiAnalytics, c as checkPkgVersion } from './check-pkg-version-C2I-noS-.js';
|
|
12
12
|
import './config-state-BrllxiM0.js';
|
|
13
13
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes, b as ComponentErrorMessages } from './ComponentError-Cjcsf8ku.js';
|
|
14
14
|
import { I as ICheckoutStatus } from './Refund-4B3c-kLz.js';
|
|
@@ -19,7 +19,7 @@ import './Dispute-7MWRbTXI.js';
|
|
|
19
19
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
20
20
|
import { C as CheckoutService } from './checkout.service-CXeKDZTF.js';
|
|
21
21
|
import './index-B9me4yN2.js';
|
|
22
|
-
import './package-
|
|
22
|
+
import './package-C3HuV_kf.js';
|
|
23
23
|
import './Api-DQM93PRm.js';
|
|
24
24
|
import './helpers-Mu7LQT-w.js';
|
|
25
25
|
import './state-options-BX8GieXu.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
|
|
2
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
3
3
|
import { c as checkoutStore } from './checkout.store-QrBBYQfi.js';
|
|
4
4
|
import { d as checkoutSummary } from './parts-D3G5aVLy.js';
|
|
5
5
|
import { P as PaymentMethodTypes } from './Payment-Bs0-9Lnt.js';
|
|
6
6
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
7
7
|
import './event-types-CZfYo5-1.js';
|
|
8
|
-
import './package-
|
|
8
|
+
import './package-C3HuV_kf.js';
|
|
9
9
|
import './Api-DQM93PRm.js';
|
|
10
10
|
import './config-state-BrllxiM0.js';
|
|
11
11
|
import './index-B9me4yN2.js';
|
|
@@ -8,7 +8,7 @@ import './Payment-Bs0-9Lnt.js';
|
|
|
8
8
|
import './Business-BCoP0TAV.js';
|
|
9
9
|
import './Dispute-7MWRbTXI.js';
|
|
10
10
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
11
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
11
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
12
12
|
import { C as CheckoutService } from './checkout.service-CXeKDZTF.js';
|
|
13
13
|
import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-C62B2OC_.js';
|
|
14
14
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
@@ -17,7 +17,7 @@ import { d as defaultColumnsKeys } from './checkouts-table-Djb7Yj6O.js';
|
|
|
17
17
|
import './index-B9me4yN2.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
19
|
import './state-options-BX8GieXu.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-C3HuV_kf.js';
|
|
21
21
|
import './Api-DQM93PRm.js';
|
|
22
22
|
import './badge-D-vrtiQR.js';
|
|
23
23
|
import './parts-D3G5aVLy.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
|
|
2
2
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
3
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
3
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
4
4
|
import { a as Dispute } from './Dispute-7MWRbTXI.js';
|
|
5
5
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
6
6
|
import { D as DisputeService } from './dispute.service-DWs_TX-m.js';
|
|
7
|
-
import './package-
|
|
7
|
+
import './package-C3HuV_kf.js';
|
|
8
8
|
import './Api-DQM93PRm.js';
|
|
9
9
|
import './config-state-BrllxiM0.js';
|
|
10
10
|
import './index-B9me4yN2.js';
|
|
@@ -9,7 +9,7 @@ import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './Compone
|
|
|
9
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
10
10
|
import { D as DisputeService } from './dispute.service-DWs_TX-m.js';
|
|
11
11
|
import { D as DisputeManagementClickActions } from './event-types-Bg2SZArf.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
13
13
|
import './Api-DQM93PRm.js';
|
|
14
14
|
import './config-state-BrllxiM0.js';
|
|
15
15
|
import './index-B9me4yN2.js';
|
|
@@ -20,7 +20,7 @@ import './Dispute-7MWRbTXI.js';
|
|
|
20
20
|
import './Business-BCoP0TAV.js';
|
|
21
21
|
import './helpers-Mu7LQT-w.js';
|
|
22
22
|
import './state-options-BX8GieXu.js';
|
|
23
|
-
import './package-
|
|
23
|
+
import './package-C3HuV_kf.js';
|
|
24
24
|
|
|
25
25
|
const makeUpdateDisputeResponse = ({ authToken, disputeId, service }) => async ({ payload, onSuccess, onError, final = () => { } }) => {
|
|
26
26
|
var _a;
|
|
@@ -8,14 +8,14 @@ import './Business-BCoP0TAV.js';
|
|
|
8
8
|
import './Dispute-7MWRbTXI.js';
|
|
9
9
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
10
10
|
import { E as ErrorState } from './utils-CBJo9jNE.js';
|
|
11
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
11
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
12
12
|
import './config-state-BrllxiM0.js';
|
|
13
13
|
import './index-B9me4yN2.js';
|
|
14
14
|
import './utils-B7jE0g5_.js';
|
|
15
15
|
import './helpers-Mu7LQT-w.js';
|
|
16
16
|
import './state-options-BX8GieXu.js';
|
|
17
17
|
import './parts-D3G5aVLy.js';
|
|
18
|
-
import './package-
|
|
18
|
+
import './package-C3HuV_kf.js';
|
|
19
19
|
|
|
20
20
|
const api = Api();
|
|
21
21
|
class ReportsService {
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-kpoIU4v_.js'
|
|
|
2
2
|
import { ap as heading5, am as heading4, ae as buttonPrimary, z as text } from './parts-D3G5aVLy.js';
|
|
3
3
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
4
4
|
import './event-types-CZfYo5-1.js';
|
|
5
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
5
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
6
6
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
7
7
|
import { B as BusinessService } from './business.service-BgXdRyYa.js';
|
|
8
8
|
import { B as Business } from './Business-BCoP0TAV.js';
|
|
@@ -16,7 +16,7 @@ import './Payment-Bs0-9Lnt.js';
|
|
|
16
16
|
import './Dispute-7MWRbTXI.js';
|
|
17
17
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
18
18
|
import { T as TerminalService } from './terminal.service-BLeBxTv4.js';
|
|
19
|
-
import './package-
|
|
19
|
+
import './package-C3HuV_kf.js';
|
|
20
20
|
import './Api-DQM93PRm.js';
|
|
21
21
|
import './helpers-Mu7LQT-w.js';
|
|
22
22
|
import './state-options-BX8GieXu.js';
|
|
@@ -3,7 +3,7 @@ import { P as PaymentService } from './payment.service-BnDr_9vX.js';
|
|
|
3
3
|
import { m as makeGetPaymentDetails } from './get-payment-details-j8nOngzB.js';
|
|
4
4
|
import { E as ErrorState } from './utils-CBJo9jNE.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
6
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
6
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
7
7
|
import './Api-DQM93PRm.js';
|
|
8
8
|
import './config-state-BrllxiM0.js';
|
|
9
9
|
import './index-B9me4yN2.js';
|
|
@@ -17,7 +17,7 @@ import './helpers-Mu7LQT-w.js';
|
|
|
17
17
|
import './state-options-BX8GieXu.js';
|
|
18
18
|
import './utils-BeQLScSm.js';
|
|
19
19
|
import './parts-D3G5aVLy.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-C3HuV_kf.js';
|
|
21
21
|
|
|
22
22
|
const PaymentDetails = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-kpoIU4v_.js';
|
|
2
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
2
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
3
3
|
import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-Cjcsf8ku.js';
|
|
4
4
|
import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-ONP8lDnV.js';
|
|
5
5
|
import { B as BusinessService } from './business.service-BgXdRyYa.js';
|
|
@@ -9,7 +9,7 @@ import './Pagination-CLHwhyvu.js';
|
|
|
9
9
|
import './Payment-Bs0-9Lnt.js';
|
|
10
10
|
import './Business-BCoP0TAV.js';
|
|
11
11
|
import './Dispute-7MWRbTXI.js';
|
|
12
|
-
import './package-
|
|
12
|
+
import './package-C3HuV_kf.js';
|
|
13
13
|
import './utils-BeQLScSm.js';
|
|
14
14
|
import './config-state-BrllxiM0.js';
|
|
15
15
|
import './index-B9me4yN2.js';
|
|
@@ -7,7 +7,7 @@ import { p as pagingDefaults } from './Pagination-CLHwhyvu.js';
|
|
|
7
7
|
import './Payment-Bs0-9Lnt.js';
|
|
8
8
|
import './Business-BCoP0TAV.js';
|
|
9
9
|
import './Dispute-7MWRbTXI.js';
|
|
10
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
10
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
11
11
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
12
12
|
import { P as PaymentService } from './payment.service-BnDr_9vX.js';
|
|
13
13
|
import { T as Table, l as TableWrapper, a as TableComponent, b as TableHead, c as TableHeadRow, d as TableBody, e as TableLoadingState, f as TableEmptyState, g as TableErrorState, h as TableRow, i as TableFoot, j as TableFootRow, k as TableFootCell } from './table-CTPfsGKi.js';
|
|
@@ -17,7 +17,7 @@ import { N as tableHeadCell, O as getAlternateTableCellPart } from './parts-D3G5
|
|
|
17
17
|
import './index-B9me4yN2.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
19
|
import './state-options-BX8GieXu.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-C3HuV_kf.js';
|
|
21
21
|
import './Api-DQM93PRm.js';
|
|
22
22
|
import './spinner-D-vbFqC6.js';
|
|
23
23
|
|
|
@@ -9,7 +9,7 @@ import { a as Payment } from './Payment-Bs0-9Lnt.js';
|
|
|
9
9
|
import './Business-BCoP0TAV.js';
|
|
10
10
|
import './Dispute-7MWRbTXI.js';
|
|
11
11
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
12
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
12
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
13
13
|
import { S as StyledHost } from './styled-host-B_XBaM7z.js';
|
|
14
14
|
import './event-types-CZfYo5-1.js';
|
|
15
15
|
import { d as defaultColumnsKeys } from './payments-table-BuiNqlwv.js';
|
|
@@ -17,7 +17,7 @@ import './Api-DQM93PRm.js';
|
|
|
17
17
|
import './index-B9me4yN2.js';
|
|
18
18
|
import './helpers-Mu7LQT-w.js';
|
|
19
19
|
import './state-options-BX8GieXu.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-C3HuV_kf.js';
|
|
21
21
|
import './payments-status-DVYzDcJ4.js';
|
|
22
22
|
import './badge-D-vrtiQR.js';
|
|
23
23
|
import './parts-D3G5aVLy.js';
|
|
@@ -10,14 +10,14 @@ import './Business-BCoP0TAV.js';
|
|
|
10
10
|
import './Dispute-7MWRbTXI.js';
|
|
11
11
|
import { g as getErrorCode, a as getErrorMessage } from './utils-BeQLScSm.js';
|
|
12
12
|
import { E as ErrorState } from './utils-CBJo9jNE.js';
|
|
13
|
-
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version
|
|
13
|
+
import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-C2I-noS-.js';
|
|
14
14
|
import { m as makeGetPayoutCSV } from './get-payout-csv-D-Lnooki.js';
|
|
15
15
|
import './Api-DQM93PRm.js';
|
|
16
16
|
import './index-B9me4yN2.js';
|
|
17
17
|
import './helpers-Mu7LQT-w.js';
|
|
18
18
|
import './state-options-BX8GieXu.js';
|
|
19
19
|
import './parts-D3G5aVLy.js';
|
|
20
|
-
import './package-
|
|
20
|
+
import './package-C3HuV_kf.js';
|
|
21
21
|
|
|
22
22
|
const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
|
|
23
23
|
var _a;
|