tf-checkout-react 1.4.26-beta.1 → 1.4.26
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/api/index.d.ts +1 -1
- package/dist/components/idVerificationContainer/constants.d.ts +0 -4
- package/dist/components/idVerificationContainer/index.d.ts +1 -1
- package/dist/components/stripePayment/index.d.ts +2 -1
- package/dist/tf-checkout-react.cjs.development.js +89 -141
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +89 -141
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/dist/types/verification.d.ts +1 -2
- package/package.json +1 -1
- package/src/api/index.ts +5 -2
- package/src/components/idVerificationContainer/constants.ts +0 -5
- package/src/components/idVerificationContainer/index.tsx +29 -81
- package/src/components/paymentContainer/index.tsx +1 -0
- package/src/components/stripePayment/index.tsx +4 -2
- package/src/types/verification.ts +1 -2
package/dist/api/index.d.ts
CHANGED
|
@@ -71,4 +71,4 @@ export declare const updateVerificationStatus: () => Promise<{
|
|
|
71
71
|
data: UpdateVerificationStatusResponseData;
|
|
72
72
|
}>;
|
|
73
73
|
export declare const checkCustomerOrder: (orderHash: string) => Promise<any>;
|
|
74
|
-
export declare const refreshSeatReservation: (eventId: string) => Promise<AxiosResponse<any, AxiosRequestConfig<any>>>;
|
|
74
|
+
export declare const refreshSeatReservation: (eventId: string, orderId: string) => Promise<AxiosResponse<any, AxiosRequestConfig<any>>>;
|
|
@@ -4,10 +4,6 @@ export declare const VERIFICATION_STATUSES: {
|
|
|
4
4
|
FAILED: string;
|
|
5
5
|
WRONG_CUSTOMER: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const VERIFICATION_PROVIDERS: {
|
|
8
|
-
JUMIO: string;
|
|
9
|
-
STRIPE: string;
|
|
10
|
-
};
|
|
11
7
|
export declare const TRANSACTION_STATUSES: {
|
|
12
8
|
ERROR: string;
|
|
13
9
|
SUCCESS: string;
|
|
@@ -10,7 +10,7 @@ interface IDVerificationProps {
|
|
|
10
10
|
onGetVerificationStatusError?: (error: AxiosError) => void;
|
|
11
11
|
onVerificationMessageModalClose?: (status: string | null) => void;
|
|
12
12
|
onPassVerificationStepsSuccess?: () => void;
|
|
13
|
-
onPassVerificationStepsError?: (error: AxiosError
|
|
13
|
+
onPassVerificationStepsError?: (error: AxiosError) => void;
|
|
14
14
|
}
|
|
15
15
|
export declare const IDVerification: (props: IDVerificationProps) => JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -17,6 +17,7 @@ export interface ICheckoutForm {
|
|
|
17
17
|
disableZipSection: boolean;
|
|
18
18
|
paymentButtonText?: string;
|
|
19
19
|
forPaymentPlan?: boolean;
|
|
20
|
+
orderId?: string;
|
|
20
21
|
}
|
|
21
|
-
declare const CheckoutForm: ({ total, onSubmit, stripeCardOptions, error, stripe_client_secret, currency, billing_info, isLoading, handleSetLoading, conditions, disableZipSection, paymentButtonText, forPaymentPlan, }: ICheckoutForm) => JSX.Element;
|
|
22
|
+
declare const CheckoutForm: ({ total, orderId, onSubmit, stripeCardOptions, error, stripe_client_secret, currency, billing_info, isLoading, handleSetLoading, conditions, disableZipSection, paymentButtonText, forPaymentPlan, }: ICheckoutForm) => JSX.Element;
|
|
22
23
|
export default CheckoutForm;
|
|
@@ -1795,13 +1795,15 @@ var checkCustomerOrder = /*#__PURE__*/function () {
|
|
|
1795
1795
|
};
|
|
1796
1796
|
}();
|
|
1797
1797
|
var refreshSeatReservation = /*#__PURE__*/function () {
|
|
1798
|
-
var _ref11 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(eventId) {
|
|
1798
|
+
var _ref11 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(eventId, orderId) {
|
|
1799
1799
|
var response;
|
|
1800
1800
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
1801
1801
|
while (1) switch (_context11.prev = _context11.next) {
|
|
1802
1802
|
case 0:
|
|
1803
1803
|
_context11.next = 2;
|
|
1804
|
-
return publicRequest.patch("event/" + eventId + "/reservation/refresh/"
|
|
1804
|
+
return publicRequest.patch("event/" + eventId + "/reservation/refresh/", {
|
|
1805
|
+
order_id: orderId
|
|
1806
|
+
});
|
|
1805
1807
|
case 2:
|
|
1806
1808
|
response = _context11.sent;
|
|
1807
1809
|
return _context11.abrupt("return", response);
|
|
@@ -1811,7 +1813,7 @@ var refreshSeatReservation = /*#__PURE__*/function () {
|
|
|
1811
1813
|
}
|
|
1812
1814
|
}, _callee11);
|
|
1813
1815
|
}));
|
|
1814
|
-
return function refreshSeatReservation(_x11) {
|
|
1816
|
+
return function refreshSeatReservation(_x11, _x12) {
|
|
1815
1817
|
return _ref11.apply(this, arguments);
|
|
1816
1818
|
};
|
|
1817
1819
|
}();
|
|
@@ -4356,6 +4358,7 @@ var options = {
|
|
|
4356
4358
|
};
|
|
4357
4359
|
var CheckoutForm = function CheckoutForm(_ref) {
|
|
4358
4360
|
var total = _ref.total,
|
|
4361
|
+
orderId = _ref.orderId,
|
|
4359
4362
|
_ref$onSubmit = _ref.onSubmit,
|
|
4360
4363
|
onSubmit = _ref$onSubmit === void 0 ? _identity : _ref$onSubmit,
|
|
4361
4364
|
_ref$stripeCardOption = _ref.stripeCardOptions,
|
|
@@ -4473,26 +4476,28 @@ var CheckoutForm = function CheckoutForm(_ref) {
|
|
|
4473
4476
|
_yield$stripe$confirm = _context.sent;
|
|
4474
4477
|
_error = _yield$stripe$confirm.error;
|
|
4475
4478
|
if (!_error) {
|
|
4476
|
-
_context.next =
|
|
4479
|
+
_context.next = 37;
|
|
4477
4480
|
break;
|
|
4478
4481
|
}
|
|
4479
|
-
|
|
4482
|
+
_context.next = 34;
|
|
4483
|
+
return refreshSeatReservation(eventId, orderId || '');
|
|
4484
|
+
case 34:
|
|
4480
4485
|
setStripeError(_error.message);
|
|
4481
4486
|
handleSetLoading(false);
|
|
4482
4487
|
return _context.abrupt("return");
|
|
4483
|
-
case
|
|
4488
|
+
case 37:
|
|
4484
4489
|
onSubmit(null);
|
|
4485
|
-
_context.next =
|
|
4490
|
+
_context.next = 43;
|
|
4486
4491
|
break;
|
|
4487
|
-
case
|
|
4488
|
-
_context.prev =
|
|
4492
|
+
case 40:
|
|
4493
|
+
_context.prev = 40;
|
|
4489
4494
|
_context.t0 = _context["catch"](1);
|
|
4490
4495
|
onSubmit(_context.t0);
|
|
4491
|
-
case
|
|
4496
|
+
case 43:
|
|
4492
4497
|
case "end":
|
|
4493
4498
|
return _context.stop();
|
|
4494
4499
|
}
|
|
4495
|
-
}, _callee, null, [[1,
|
|
4500
|
+
}, _callee, null, [[1, 40]]);
|
|
4496
4501
|
}));
|
|
4497
4502
|
return function handleSubmit(_x) {
|
|
4498
4503
|
return _ref2.apply(this, arguments);
|
|
@@ -5152,6 +5157,7 @@ var PaymentContainer = function PaymentContainer(_ref) {
|
|
|
5152
5157
|
total: orderData.guest_count ? orderData.pay_now : orderData.total,
|
|
5153
5158
|
onSubmit: handlePaymentMiddleWare,
|
|
5154
5159
|
error: error,
|
|
5160
|
+
orderId: orderData.id,
|
|
5155
5161
|
currency: orderData.currency,
|
|
5156
5162
|
billing_info: reviewData.billing_info,
|
|
5157
5163
|
isLoading: paymentIsLoading,
|
|
@@ -9342,10 +9348,6 @@ var VERIFICATION_STATUSES = {
|
|
|
9342
9348
|
FAILED: 'FAILED',
|
|
9343
9349
|
WRONG_CUSTOMER: 'WRONG_CUSTOMER'
|
|
9344
9350
|
};
|
|
9345
|
-
var VERIFICATION_PROVIDERS = {
|
|
9346
|
-
JUMIO: 'jumio',
|
|
9347
|
-
STRIPE: 'stripe'
|
|
9348
|
-
};
|
|
9349
9351
|
var VERIFICATION_MESSAGES = {
|
|
9350
9352
|
PENDING: 'Your ID verification is currently being processed. We will notify you as soon as it is completed. Thank you for your patience.',
|
|
9351
9353
|
APPROVED: 'Your ID verification is approved!',
|
|
@@ -10748,22 +10750,13 @@ var IDVerification = function IDVerification(props) {
|
|
|
10748
10750
|
var _useState4 = React.useState(null),
|
|
10749
10751
|
netverifyUrl = _useState4[0],
|
|
10750
10752
|
setNetverifyUrl = _useState4[1];
|
|
10751
|
-
var _useState5 = React.useState(
|
|
10752
|
-
provider = _useState5[0],
|
|
10753
|
-
setProvider = _useState5[1];
|
|
10754
|
-
var _useState6 = React.useState(false),
|
|
10755
|
-
hasError = _useState6[0],
|
|
10756
|
-
setHasError = _useState6[1];
|
|
10757
|
-
var _useState7 = React.useState(null),
|
|
10758
|
-
lastError = _useState7[0],
|
|
10759
|
-
setLastError = _useState7[1];
|
|
10760
|
-
var _useState8 = React.useState({
|
|
10753
|
+
var _useState5 = React.useState({
|
|
10761
10754
|
message: '',
|
|
10762
10755
|
hideCancelBtn: true,
|
|
10763
10756
|
displaModal: false
|
|
10764
10757
|
}),
|
|
10765
|
-
modalData =
|
|
10766
|
-
setModalData =
|
|
10758
|
+
modalData = _useState5[0],
|
|
10759
|
+
setModalData = _useState5[1];
|
|
10767
10760
|
var isAccountVerifiedOrPending = (verificationStatus === VERIFICATION_STATUSES.APPROVED || verificationStatus === VERIFICATION_STATUSES.PENDING) && verificationStatus !== VERIFICATION_STATUSES.WRONG_CUSTOMER;
|
|
10768
10761
|
var handleClose = function handleClose() {
|
|
10769
10762
|
setModalData({
|
|
@@ -10776,71 +10769,43 @@ var IDVerification = function IDVerification(props) {
|
|
|
10776
10769
|
React.useEffect(function () {
|
|
10777
10770
|
var callbackNetVerify = /*#__PURE__*/function () {
|
|
10778
10771
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
10779
|
-
var
|
|
10772
|
+
var result;
|
|
10780
10773
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10781
10774
|
while (1) switch (_context.prev = _context.next) {
|
|
10782
10775
|
case 0:
|
|
10783
|
-
if (!(e.data && e.origin === 'https://verify.stripe.com')) {
|
|
10784
|
-
_context.next = 10;
|
|
10785
|
-
break;
|
|
10786
|
-
}
|
|
10787
|
-
data = e.data;
|
|
10788
|
-
if (!(data.type === 'STRIPE_IDENTITY_CLOSE')) {
|
|
10789
|
-
_context.next = 9;
|
|
10790
|
-
break;
|
|
10791
|
-
}
|
|
10792
|
-
_context.next = 5;
|
|
10793
|
-
return getUrl();
|
|
10794
|
-
case 5:
|
|
10795
|
-
setShowModal(false);
|
|
10796
|
-
if (hasError) {
|
|
10797
|
-
setHasError(false);
|
|
10798
|
-
onPassVerificationStepsError(lastError);
|
|
10799
|
-
} else {
|
|
10800
|
-
setHasError(false);
|
|
10801
|
-
onPassVerificationStepsSuccess();
|
|
10802
|
-
}
|
|
10803
|
-
_context.next = 10;
|
|
10804
|
-
break;
|
|
10805
|
-
case 9:
|
|
10806
|
-
if (data.type === 'STRIPE_IDENTITY_ERROR') {
|
|
10807
|
-
setHasError(true);
|
|
10808
|
-
setLastError(data);
|
|
10809
|
-
}
|
|
10810
|
-
case 10:
|
|
10811
10776
|
if (!(e.data && isJson(e.data))) {
|
|
10812
|
-
_context.next =
|
|
10777
|
+
_context.next = 15;
|
|
10813
10778
|
break;
|
|
10814
10779
|
}
|
|
10815
|
-
_context.prev =
|
|
10780
|
+
_context.prev = 1;
|
|
10816
10781
|
result = JSON.parse(e.data);
|
|
10817
10782
|
if (!(result.payload && (result.payload.value === 'success' || result.payload.transactionStatus === 'SUCCESS'))) {
|
|
10818
|
-
_context.next =
|
|
10783
|
+
_context.next = 9;
|
|
10819
10784
|
break;
|
|
10820
10785
|
}
|
|
10821
|
-
_context.next =
|
|
10786
|
+
_context.next = 6;
|
|
10822
10787
|
return updateVerificationStatus();
|
|
10823
|
-
case
|
|
10788
|
+
case 6:
|
|
10824
10789
|
onPassVerificationStepsSuccess();
|
|
10825
|
-
_context.next =
|
|
10790
|
+
_context.next = 10;
|
|
10826
10791
|
break;
|
|
10827
|
-
case
|
|
10792
|
+
case 9:
|
|
10828
10793
|
if (result.payload && (result.payload.value === 'error' || result.payload.transactionStatus === 'ERROR')) {
|
|
10829
10794
|
setShowModal(false);
|
|
10830
10795
|
onPassVerificationStepsError(result.payload);
|
|
10831
10796
|
}
|
|
10832
|
-
case
|
|
10833
|
-
_context.next =
|
|
10797
|
+
case 10:
|
|
10798
|
+
_context.next = 15;
|
|
10834
10799
|
break;
|
|
10835
|
-
case
|
|
10836
|
-
_context.prev =
|
|
10837
|
-
_context.t0 = _context["catch"](
|
|
10800
|
+
case 12:
|
|
10801
|
+
_context.prev = 12;
|
|
10802
|
+
_context.t0 = _context["catch"](1);
|
|
10838
10803
|
onPassVerificationStepsError(_context.t0);
|
|
10839
|
-
case
|
|
10804
|
+
case 15:
|
|
10840
10805
|
case "end":
|
|
10841
10806
|
return _context.stop();
|
|
10842
10807
|
}
|
|
10843
|
-
}, _callee, null, [[
|
|
10808
|
+
}, _callee, null, [[1, 12]]);
|
|
10844
10809
|
}));
|
|
10845
10810
|
return function callbackNetVerify(_x) {
|
|
10846
10811
|
return _ref.apply(this, arguments);
|
|
@@ -10851,94 +10816,74 @@ var IDVerification = function IDVerification(props) {
|
|
|
10851
10816
|
window.removeEventListener('message', callbackNetVerify);
|
|
10852
10817
|
};
|
|
10853
10818
|
}, []);
|
|
10854
|
-
var getUrl = /*#__PURE__*/function () {
|
|
10855
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
10856
|
-
var urlResponse;
|
|
10857
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10858
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
10859
|
-
case 0:
|
|
10860
|
-
_context2.prev = 0;
|
|
10861
|
-
_context2.next = 3;
|
|
10862
|
-
return getNetverifyUrl();
|
|
10863
|
-
case 3:
|
|
10864
|
-
urlResponse = _context2.sent;
|
|
10865
|
-
setNetverifyUrl(urlResponse.netverifyUrl);
|
|
10866
|
-
setProvider(urlResponse.provider);
|
|
10867
|
-
onGetVerifyUrlSuccess(urlResponse);
|
|
10868
|
-
_context2.next = 12;
|
|
10869
|
-
break;
|
|
10870
|
-
case 9:
|
|
10871
|
-
_context2.prev = 9;
|
|
10872
|
-
_context2.t0 = _context2["catch"](0);
|
|
10873
|
-
onGetVerifyUrlError(_context2.t0);
|
|
10874
|
-
case 12:
|
|
10875
|
-
case "end":
|
|
10876
|
-
return _context2.stop();
|
|
10877
|
-
}
|
|
10878
|
-
}, _callee2, null, [[0, 9]]);
|
|
10879
|
-
}));
|
|
10880
|
-
return function getUrl() {
|
|
10881
|
-
return _ref2.apply(this, arguments);
|
|
10882
|
-
};
|
|
10883
|
-
}();
|
|
10884
10819
|
React.useEffect(function () {
|
|
10885
10820
|
var intervalId = null;
|
|
10886
10821
|
var orderHash = getQueryVariable('order_hash') || '';
|
|
10822
|
+
var getUrl = /*#__PURE__*/function () {
|
|
10823
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
10824
|
+
var urlResponse;
|
|
10825
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10826
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
10827
|
+
case 0:
|
|
10828
|
+
_context2.prev = 0;
|
|
10829
|
+
_context2.next = 3;
|
|
10830
|
+
return getNetverifyUrl();
|
|
10831
|
+
case 3:
|
|
10832
|
+
urlResponse = _context2.sent;
|
|
10833
|
+
setNetverifyUrl(urlResponse.netverifyUrl);
|
|
10834
|
+
onGetVerifyUrlSuccess(urlResponse);
|
|
10835
|
+
_context2.next = 11;
|
|
10836
|
+
break;
|
|
10837
|
+
case 8:
|
|
10838
|
+
_context2.prev = 8;
|
|
10839
|
+
_context2.t0 = _context2["catch"](0);
|
|
10840
|
+
onGetVerifyUrlError(_context2.t0);
|
|
10841
|
+
case 11:
|
|
10842
|
+
case "end":
|
|
10843
|
+
return _context2.stop();
|
|
10844
|
+
}
|
|
10845
|
+
}, _callee2, null, [[0, 8]]);
|
|
10846
|
+
}));
|
|
10847
|
+
return function getUrl() {
|
|
10848
|
+
return _ref2.apply(this, arguments);
|
|
10849
|
+
};
|
|
10850
|
+
}();
|
|
10887
10851
|
var getVerificationStatus = /*#__PURE__*/function () {
|
|
10888
10852
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
10889
|
-
var
|
|
10853
|
+
var statusResponse, status;
|
|
10890
10854
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
10891
10855
|
while (1) switch (_context3.prev = _context3.next) {
|
|
10892
10856
|
case 0:
|
|
10893
10857
|
_context3.prev = 0;
|
|
10894
|
-
|
|
10895
|
-
setVerificationStatus(function (status) {
|
|
10896
|
-
_verificationStatus = status;
|
|
10897
|
-
return status;
|
|
10898
|
-
});
|
|
10899
|
-
_provider = null; // Gets te current status of the variable without modifying it
|
|
10900
|
-
setProvider(function (state) {
|
|
10901
|
-
_provider = state;
|
|
10902
|
-
return _provider;
|
|
10903
|
-
});
|
|
10904
|
-
verifyUrl = null; // Gets te current status of the variable without modifying it
|
|
10905
|
-
setNetverifyUrl(function (state) {
|
|
10906
|
-
verifyUrl = state;
|
|
10907
|
-
return state;
|
|
10908
|
-
});
|
|
10909
|
-
_context3.next = 9;
|
|
10858
|
+
_context3.next = 3;
|
|
10910
10859
|
return checkVerificationStatus();
|
|
10911
|
-
case
|
|
10860
|
+
case 3:
|
|
10912
10861
|
statusResponse = _context3.sent;
|
|
10913
10862
|
status = statusResponse.data.attributes.status;
|
|
10914
|
-
|
|
10915
|
-
if (_verificationStatus !== status) {
|
|
10863
|
+
if (verificationStatus !== status) {
|
|
10916
10864
|
setVerificationStatus(status);
|
|
10917
10865
|
setModalData({
|
|
10918
|
-
displaModal:
|
|
10866
|
+
displaModal: status === VERIFICATION_STATUSES.APPROVED || status === VERIFICATION_STATUSES.FAILED,
|
|
10919
10867
|
hideCancelBtn: true,
|
|
10920
|
-
message:
|
|
10868
|
+
message: status === VERIFICATION_STATUSES.APPROVED ? VERIFICATION_MESSAGES.APPROVED : status === VERIFICATION_STATUSES.FAILED ? VERIFICATION_MESSAGES.FAILED : status
|
|
10921
10869
|
});
|
|
10922
10870
|
}
|
|
10923
|
-
if (_provider === VERIFICATION_PROVIDERS.STRIPE && verifyUrl === null && !isApproved) {
|
|
10924
|
-
getUrl();
|
|
10925
|
-
}
|
|
10926
10871
|
onGetVerificationStatusSuccess(statusResponse);
|
|
10927
|
-
_context3.next =
|
|
10872
|
+
_context3.next = 12;
|
|
10928
10873
|
break;
|
|
10929
|
-
case
|
|
10930
|
-
_context3.prev =
|
|
10874
|
+
case 9:
|
|
10875
|
+
_context3.prev = 9;
|
|
10931
10876
|
_context3.t0 = _context3["catch"](0);
|
|
10932
10877
|
onGetVerificationStatusError(_context3.t0);
|
|
10933
|
-
case
|
|
10934
|
-
_context3.prev =
|
|
10878
|
+
case 12:
|
|
10879
|
+
_context3.prev = 12;
|
|
10935
10880
|
setLoadingStatus(false);
|
|
10936
|
-
return _context3.finish(
|
|
10937
|
-
case
|
|
10881
|
+
return _context3.finish(12);
|
|
10882
|
+
case 15:
|
|
10938
10883
|
case "end":
|
|
10939
10884
|
return _context3.stop();
|
|
10940
10885
|
}
|
|
10941
|
-
}, _callee3, null, [[0,
|
|
10886
|
+
}, _callee3, null, [[0, 9, 12, 15]]);
|
|
10942
10887
|
}));
|
|
10943
10888
|
return function getVerificationStatus() {
|
|
10944
10889
|
return _ref3.apply(this, arguments);
|
|
@@ -10950,16 +10895,21 @@ var IDVerification = function IDVerification(props) {
|
|
|
10950
10895
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
10951
10896
|
while (1) switch (_context4.prev = _context4.next) {
|
|
10952
10897
|
case 0:
|
|
10953
|
-
_context4.
|
|
10898
|
+
_context4.prev = 0;
|
|
10899
|
+
_context4.next = 3;
|
|
10954
10900
|
return checkCustomerOrder(orderHash);
|
|
10955
|
-
case
|
|
10901
|
+
case 3:
|
|
10956
10902
|
customerOrderResponse = _context4.sent;
|
|
10957
10903
|
return _context4.abrupt("return", customerOrderResponse);
|
|
10958
|
-
case
|
|
10904
|
+
case 7:
|
|
10905
|
+
_context4.prev = 7;
|
|
10906
|
+
_context4.t0 = _context4["catch"](0);
|
|
10907
|
+
throw _context4.t0;
|
|
10908
|
+
case 10:
|
|
10959
10909
|
case "end":
|
|
10960
10910
|
return _context4.stop();
|
|
10961
10911
|
}
|
|
10962
|
-
}, _callee4);
|
|
10912
|
+
}, _callee4, null, [[0, 7]]);
|
|
10963
10913
|
}));
|
|
10964
10914
|
return function getCustomerOrderStatus() {
|
|
10965
10915
|
return _ref4.apply(this, arguments);
|
|
@@ -11036,11 +10986,9 @@ var IDVerification = function IDVerification(props) {
|
|
|
11036
10986
|
className: "page-header"
|
|
11037
10987
|
}, "Account Verification"), loadingStatus ? null : React__default.createElement(React__default.Fragment, null, !isAccountVerifiedOrPending && React__default.createElement("div", {
|
|
11038
10988
|
className: "verify-message"
|
|
11039
|
-
}, "To complete the purchase, please verify your identity."), verificationStatus === VERIFICATION_STATUSES.
|
|
11040
|
-
className: "verify-message"
|
|
11041
|
-
}, VERIFICATION_MESSAGES.APPROVED), (verificationStatus === VERIFICATION_STATUSES.PENDING || provider === VERIFICATION_PROVIDERS.STRIPE && netverifyUrl === null && verificationStatus !== VERIFICATION_STATUSES.APPROVED) && React__default.createElement("div", {
|
|
10989
|
+
}, "To complete the purchase, please verify your identity."), verificationStatus === VERIFICATION_STATUSES.PENDING && React__default.createElement("div", {
|
|
11042
10990
|
className: "verify-message"
|
|
11043
|
-
}, VERIFICATION_MESSAGES.PENDING), !isAccountVerifiedOrPending &&
|
|
10991
|
+
}, VERIFICATION_MESSAGES.PENDING), !isAccountVerifiedOrPending && React__default.createElement(Button, {
|
|
11044
10992
|
type: "button",
|
|
11045
10993
|
variant: "contained",
|
|
11046
10994
|
className: "verify-button",
|