@mirai/core 0.4.617 → 0.4.618
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/build/components/Checkout/mocks/checkout.json +1 -1
- package/build/components/__shared__/BookingDetails/mocks/checkout.json +1 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js +0 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.constants.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/ButtonPayment.js +2 -10
- package/build/components/__shared__/ButtonPayment/ButtonPayment.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/components/index.js +0 -11
- package/build/components/__shared__/ButtonPayment/components/index.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/constants.js +0 -1
- package/build/components/__shared__/ButtonPayment/helpers/constants.js.map +1 -1
- package/build/components/__shared__/ButtonPayment/helpers/getComponent.js +1 -2
- package/build/components/__shared__/ButtonPayment/helpers/getComponent.js.map +1 -1
- package/build/components/__shared__/Payment/Payment.l10n.js +0 -3
- package/build/components/__shared__/Payment/Payment.l10n.js.map +1 -1
- package/build/components/__shared__/Payment/components/index.js +0 -11
- package/build/components/__shared__/Payment/components/index.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/getComponent.js +1 -2
- package/build/components/__shared__/Payment/helpers/getComponent.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/getImage.js +1 -1
- package/build/components/__shared__/Payment/helpers/getImage.js.map +1 -1
- package/build/components/helpers/constants.js +0 -2
- package/build/components/helpers/constants.js.map +1 -1
- package/package.json +1 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js +0 -8
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.constants.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js +0 -221
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js +0 -30
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.l10n.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/FormCheckout.module.css +0 -29
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js +0 -43
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/getStyle.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js +0 -17
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/helpers/index.js.map +0 -1
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js +0 -17
- package/build/components/__shared__/ButtonPayment/components/FormCheckout/index.js.map +0 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js +0 -43
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.constants.js.map +0 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js +0 -170
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.js.map +0 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js +0 -18
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js.map +0 -1
- package/build/components/__shared__/Payment/components/AmazonPay/AmazonPay.module.css +0 -8
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js +0 -19
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js.map +0 -1
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js +0 -17
- package/build/components/__shared__/Payment/components/AmazonPay/helpers/index.js.map +0 -1
- package/build/components/__shared__/Payment/components/AmazonPay/index.js +0 -17
- package/build/components/__shared__/Payment/components/AmazonPay/index.js.map +0 -1
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AmazonPay = void 0;
|
|
7
|
-
var _dataSources = require("@mirai/data-sources");
|
|
8
|
-
var _locale = require("@mirai/locale");
|
|
9
|
-
var _ui = require("@mirai/ui");
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _AmazonPay = require("./AmazonPay.constants");
|
|
13
|
-
var _AmazonPay2 = require("./AmazonPay.l10n");
|
|
14
|
-
var style = _interopRequireWildcard(require("./AmazonPay.module.css"));
|
|
15
|
-
var _helpers = require("./helpers");
|
|
16
|
-
var _ButtonPayment = require("../../../ButtonPayment/ButtonPayment.constants");
|
|
17
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
23
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
|
-
const error = new URLSearchParams(document.location.search).get('amazonPayErrorCode');
|
|
25
|
-
const storage = new _dataSources.Storage({
|
|
26
|
-
adapter: _dataSources.LocalAdapter
|
|
27
|
-
});
|
|
28
|
-
const AmazonPay = _ref => {
|
|
29
|
-
let {
|
|
30
|
-
clientId = process.env.METHOD_AMAZON_CLIENT_ID,
|
|
31
|
-
region,
|
|
32
|
-
sellerId = process.env.METHOD_AMAZON_SELLER_ID,
|
|
33
|
-
onError = () => {}
|
|
34
|
-
} = _ref;
|
|
35
|
-
const {
|
|
36
|
-
locale,
|
|
37
|
-
translate
|
|
38
|
-
} = (0, _locale.useLocale)();
|
|
39
|
-
const {
|
|
40
|
-
value: {
|
|
41
|
-
payment = {}
|
|
42
|
-
} = {},
|
|
43
|
-
set
|
|
44
|
-
} = (0, _dataSources.useStore)();
|
|
45
|
-
const [flow, setFlow] = (0, _react.useState)();
|
|
46
|
-
const [orderReference, setOrderReference] = (0, _react.useState)(error ? storage.get(_AmazonPay.ORDER_REFERENCE_KEY) : undefined);
|
|
47
|
-
const [ready, setReady] = (0, _react.useState)();
|
|
48
|
-
(0, _react.useEffect)(() => {
|
|
49
|
-
window.onAmazonLoginReady = handleLoginReady;
|
|
50
|
-
window.onAmazonPaymentsReady = handlePaymentsReady;
|
|
51
|
-
const exists = document.getElementById(_AmazonPay.SCRIPT_ID);
|
|
52
|
-
if (!exists) {
|
|
53
|
-
const script = document.createElement('script');
|
|
54
|
-
script.id = _AmazonPay.SCRIPT_ID;
|
|
55
|
-
script.async = 'async';
|
|
56
|
-
script.src = (0, _helpers.getScriptUrl)({
|
|
57
|
-
clientId,
|
|
58
|
-
region,
|
|
59
|
-
sellerId
|
|
60
|
-
});
|
|
61
|
-
document.head.appendChild(script);
|
|
62
|
-
setReady(true);
|
|
63
|
-
}
|
|
64
|
-
return () => {
|
|
65
|
-
const el = document.getElementById(_AmazonPay.SCRIPT_ID);
|
|
66
|
-
el.parentNode.removeChild(el);
|
|
67
|
-
window.onAmazonLoginReady = undefined;
|
|
68
|
-
window.onAmazonPaymentsReady = undefined;
|
|
69
|
-
};
|
|
70
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
71
|
-
}, []);
|
|
72
|
-
(0, _react.useEffect)(() => {
|
|
73
|
-
if (!ready) return;
|
|
74
|
-
document.addEventListener(_ButtonPayment.EVENT.CTA_PRESS, handleButtonPress);
|
|
75
|
-
document.addEventListener(_ButtonPayment.EVENT.AMAZON_PAY_RESPONSE, handleResponse);
|
|
76
|
-
if (!orderReference) onError({
|
|
77
|
-
error: true
|
|
78
|
-
});
|
|
79
|
-
return () => {
|
|
80
|
-
document.removeEventListener(_ButtonPayment.EVENT.CTA_PRESS, handleButtonPress);
|
|
81
|
-
document.removeEventListener(_ButtonPayment.EVENT.AMAZON_PAY_RESPONSE, handleResponse);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
85
|
-
}, [flow, orderReference, ready]);
|
|
86
|
-
(0, _react.useEffect)(() => {
|
|
87
|
-
if (!error) return;
|
|
88
|
-
onError({
|
|
89
|
-
authorizeError: true
|
|
90
|
-
});
|
|
91
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
92
|
-
}, [error]);
|
|
93
|
-
const handleButtonPress = () => {
|
|
94
|
-
// eslint-disable-next-line no-undef
|
|
95
|
-
OffAmazonPayments.initConfirmationFlow(sellerId, orderReference, confirmationFlow => {
|
|
96
|
-
setFlow(confirmationFlow);
|
|
97
|
-
set({
|
|
98
|
-
payment: _objectSpread(_objectSpread({}, payment), {}, {
|
|
99
|
-
orderReference
|
|
100
|
-
})
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
// eslint-disable-next-line no-undef
|
|
106
|
-
const handleLoginReady = () => amazon.Login.setClientId(clientId);
|
|
107
|
-
const handleOnComplete = () => {
|
|
108
|
-
// eslint-disable-next-line no-undef
|
|
109
|
-
new OffAmazonPayments.Widgets.Wallet(_objectSpread(_objectSpread({
|
|
110
|
-
amazonOrderReferenceId: orderReference,
|
|
111
|
-
sellerId
|
|
112
|
-
}, _AmazonPay.OPTIONS_WALLET), {}, {
|
|
113
|
-
onError: () => {
|
|
114
|
-
var _document$querySelect, _document$querySelect2;
|
|
115
|
-
// eslint-disable-next-line no-undef
|
|
116
|
-
amazon.Login.logout();
|
|
117
|
-
(_document$querySelect = document.querySelector("#".concat(_AmazonPay.WALLET_ID))) === null || _document$querySelect === void 0 ? void 0 : (_document$querySelect2 = _document$querySelect.firstChild) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.remove();
|
|
118
|
-
},
|
|
119
|
-
onOrderReferenceCreate: orderReferenceProp => {
|
|
120
|
-
const orderReference = orderReferenceProp.getAmazonOrderReferenceId();
|
|
121
|
-
setOrderReference(orderReference);
|
|
122
|
-
storage.set(_AmazonPay.ORDER_REFERENCE_KEY, orderReference);
|
|
123
|
-
onError({});
|
|
124
|
-
},
|
|
125
|
-
onPaymentSelect: () => onError({})
|
|
126
|
-
})).bind(_AmazonPay.WALLET_ID);
|
|
127
|
-
};
|
|
128
|
-
const handlePaymentsReady = () => {
|
|
129
|
-
var _LANGUAGES$locale;
|
|
130
|
-
// eslint-disable-next-line no-undef
|
|
131
|
-
OffAmazonPayments.Button(_AmazonPay.BUTTON_ID, sellerId, _objectSpread(_objectSpread({
|
|
132
|
-
language: (_LANGUAGES$locale = _AmazonPay.LANGUAGES[locale]) !== null && _LANGUAGES$locale !== void 0 ? _LANGUAGES$locale : _AmazonPay.DEFAULT_LANGUAGE
|
|
133
|
-
}, _AmazonPay.OPTIONS_BUTTON), {}, {
|
|
134
|
-
authorization: () => {
|
|
135
|
-
// eslint-disable-next-line no-undef
|
|
136
|
-
amazon.Login.authorize(_AmazonPay.OPTIONS_AUTHORIZE).onComplete(handleOnComplete);
|
|
137
|
-
}
|
|
138
|
-
}));
|
|
139
|
-
if (orderReference) handleOnComplete();
|
|
140
|
-
};
|
|
141
|
-
const handleResponse = _ref2 => {
|
|
142
|
-
let {
|
|
143
|
-
detail: {
|
|
144
|
-
response
|
|
145
|
-
} = {}
|
|
146
|
-
} = _ref2;
|
|
147
|
-
return response ? flow.success() : flow.error();
|
|
148
|
-
};
|
|
149
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
150
|
-
id: _AmazonPay.BUTTON_ID,
|
|
151
|
-
className: style.button
|
|
152
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
153
|
-
id: _AmazonPay.WALLET_ID,
|
|
154
|
-
className: style.wallet
|
|
155
|
-
}), error && /*#__PURE__*/_react.default.createElement(_ui.Notification, {
|
|
156
|
-
error: true,
|
|
157
|
-
small: true,
|
|
158
|
-
wide: true,
|
|
159
|
-
className: style.error
|
|
160
|
-
}, translate(_AmazonPay.ERRORS[error] || _AmazonPay2.L10N.NOTIFICATION_AMAZON_UNKNOWN_ERROR)));
|
|
161
|
-
};
|
|
162
|
-
exports.AmazonPay = AmazonPay;
|
|
163
|
-
AmazonPay.displayName = 'Mirai:Payments:AmazonPay';
|
|
164
|
-
AmazonPay.propTypes = {
|
|
165
|
-
clientId: _propTypes.default.string,
|
|
166
|
-
region: _propTypes.default.string,
|
|
167
|
-
sellerId: _propTypes.default.string,
|
|
168
|
-
onError: _propTypes.default.func
|
|
169
|
-
};
|
|
170
|
-
//# sourceMappingURL=AmazonPay.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AmazonPay.js","names":["_dataSources","require","_locale","_ui","_propTypes","_interopRequireDefault","_react","_interopRequireWildcard","_AmazonPay","_AmazonPay2","style","_helpers","_ButtonPayment","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","error","URLSearchParams","document","location","search","storage","Storage","adapter","LocalAdapter","AmazonPay","_ref","clientId","process","env","METHOD_AMAZON_CLIENT_ID","region","sellerId","METHOD_AMAZON_SELLER_ID","onError","locale","translate","useLocale","payment","useStore","flow","setFlow","useState","orderReference","setOrderReference","ORDER_REFERENCE_KEY","undefined","ready","setReady","useEffect","window","onAmazonLoginReady","handleLoginReady","onAmazonPaymentsReady","handlePaymentsReady","exists","getElementById","SCRIPT_ID","script","createElement","id","async","src","getScriptUrl","head","appendChild","el","parentNode","removeChild","addEventListener","EVENT","CTA_PRESS","handleButtonPress","AMAZON_PAY_RESPONSE","handleResponse","removeEventListener","authorizeError","OffAmazonPayments","initConfirmationFlow","confirmationFlow","amazon","Login","setClientId","handleOnComplete","Widgets","Wallet","amazonOrderReferenceId","OPTIONS_WALLET","_document$querySelect","_document$querySelect2","logout","querySelector","concat","WALLET_ID","firstChild","remove","onOrderReferenceCreate","orderReferenceProp","getAmazonOrderReferenceId","onPaymentSelect","bind","_LANGUAGES$locale","Button","BUTTON_ID","language","LANGUAGES","DEFAULT_LANGUAGE","OPTIONS_BUTTON","authorization","authorize","OPTIONS_AUTHORIZE","onComplete","_ref2","detail","response","success","Fragment","className","button","wallet","Notification","small","wide","ERRORS","L10N","NOTIFICATION_AMAZON_UNKNOWN_ERROR","exports","displayName","propTypes","PropTypes","string","func"],"sources":["../../../../../../src/components/__shared__/Payment/components/AmazonPay/AmazonPay.jsx"],"sourcesContent":["import { LocalAdapter, Storage, useStore } from '@mirai/data-sources';\nimport { useLocale } from '@mirai/locale';\nimport { Notification } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useState } from 'react';\n\nimport {\n BUTTON_ID,\n DEFAULT_LANGUAGE,\n ERRORS,\n LANGUAGES,\n OPTIONS_AUTHORIZE,\n OPTIONS_BUTTON,\n OPTIONS_WALLET,\n ORDER_REFERENCE_KEY,\n WALLET_ID,\n SCRIPT_ID,\n} from './AmazonPay.constants';\nimport { L10N } from './AmazonPay.l10n';\nimport * as style from './AmazonPay.module.css';\nimport { getScriptUrl } from './helpers';\nimport { EVENT } from '../../../ButtonPayment/ButtonPayment.constants';\n\nconst error = new URLSearchParams(document.location.search).get('amazonPayErrorCode');\nconst storage = new Storage({ adapter: LocalAdapter });\n\nconst AmazonPay = ({\n clientId = process.env.METHOD_AMAZON_CLIENT_ID,\n region,\n sellerId = process.env.METHOD_AMAZON_SELLER_ID,\n onError = () => {},\n}) => {\n const { locale, translate } = useLocale();\n const { value: { payment = {} } = {}, set } = useStore();\n\n const [flow, setFlow] = useState();\n const [orderReference, setOrderReference] = useState(error ? storage.get(ORDER_REFERENCE_KEY) : undefined);\n const [ready, setReady] = useState();\n\n useEffect(() => {\n window.onAmazonLoginReady = handleLoginReady;\n window.onAmazonPaymentsReady = handlePaymentsReady;\n\n const exists = document.getElementById(SCRIPT_ID);\n if (!exists) {\n const script = document.createElement('script');\n script.id = SCRIPT_ID;\n script.async = 'async';\n script.src = getScriptUrl({ clientId, region, sellerId });\n\n document.head.appendChild(script);\n\n setReady(true);\n }\n\n return () => {\n const el = document.getElementById(SCRIPT_ID);\n el.parentNode.removeChild(el);\n window.onAmazonLoginReady = undefined;\n window.onAmazonPaymentsReady = undefined;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n if (!ready) return;\n\n document.addEventListener(EVENT.CTA_PRESS, handleButtonPress);\n document.addEventListener(EVENT.AMAZON_PAY_RESPONSE, handleResponse);\n\n if (!orderReference) onError({ error: true });\n\n return () => {\n document.removeEventListener(EVENT.CTA_PRESS, handleButtonPress);\n document.removeEventListener(EVENT.AMAZON_PAY_RESPONSE, handleResponse);\n };\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [flow, orderReference, ready]);\n\n useEffect(() => {\n if (!error) return;\n onError({ authorizeError: true });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [error]);\n\n const handleButtonPress = () => {\n // eslint-disable-next-line no-undef\n OffAmazonPayments.initConfirmationFlow(sellerId, orderReference, (confirmationFlow) => {\n setFlow(confirmationFlow);\n set({ payment: { ...payment, orderReference } });\n });\n };\n\n // eslint-disable-next-line no-undef\n const handleLoginReady = () => amazon.Login.setClientId(clientId);\n\n const handleOnComplete = () => {\n // eslint-disable-next-line no-undef\n new OffAmazonPayments.Widgets.Wallet({\n amazonOrderReferenceId: orderReference,\n sellerId,\n ...OPTIONS_WALLET,\n onError: () => {\n // eslint-disable-next-line no-undef\n amazon.Login.logout();\n document.querySelector(`#${WALLET_ID}`)?.firstChild?.remove();\n },\n onOrderReferenceCreate: (orderReferenceProp) => {\n const orderReference = orderReferenceProp.getAmazonOrderReferenceId();\n setOrderReference(orderReference);\n storage.set(ORDER_REFERENCE_KEY, orderReference);\n onError({});\n },\n onPaymentSelect: () => onError({}),\n }).bind(WALLET_ID);\n };\n\n const handlePaymentsReady = () => {\n // eslint-disable-next-line no-undef\n OffAmazonPayments.Button(BUTTON_ID, sellerId, {\n language: LANGUAGES[locale] ?? DEFAULT_LANGUAGE,\n ...OPTIONS_BUTTON,\n authorization: () => {\n // eslint-disable-next-line no-undef\n amazon.Login.authorize(OPTIONS_AUTHORIZE).onComplete(handleOnComplete);\n },\n });\n if (orderReference) handleOnComplete();\n };\n\n const handleResponse = ({ detail: { response } = {} }) => (response ? flow.success() : flow.error());\n\n return (\n <>\n <div id={BUTTON_ID} className={style.button}></div>\n <div id={WALLET_ID} className={style.wallet}></div>\n {error && (\n <Notification error small wide className={style.error}>\n {translate(ERRORS[error] || L10N.NOTIFICATION_AMAZON_UNKNOWN_ERROR)}\n </Notification>\n )}\n </>\n );\n};\n\nAmazonPay.displayName = 'Mirai:Payments:AmazonPay';\n\nAmazonPay.propTypes = {\n clientId: PropTypes.string,\n region: PropTypes.string,\n sellerId: PropTypes.string,\n onError: PropTypes.func,\n};\n\nexport { AmazonPay };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,GAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAC,uBAAA,CAAAN,OAAA;AAEA,IAAAO,UAAA,GAAAP,OAAA;AAYA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,KAAA,GAAAH,uBAAA,CAAAN,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,cAAA,GAAAX,OAAA;AAAuE,SAAAM,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,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S,EAAEnJ,KAAK,CAAC8C;EAAM,GACnDoB,SAAS,CAACuF,iBAAM,CAAC3G,KAAK,CAAC,IAAI4G,gBAAI,CAACC,iCAAiC,CACtD,CAEhB,CAAC;AAEP,CAAC;AAACC,OAAA,CAAArG,SAAA,GAAAA,SAAA;AAEFA,SAAS,CAACsG,WAAW,GAAG,0BAA0B;AAElDtG,SAAS,CAACuG,SAAS,GAAG;EACpBrG,QAAQ,EAAEsG,kBAAS,CAACC,MAAM;EAC1BnG,MAAM,EAAEkG,kBAAS,CAACC,MAAM;EACxBlG,QAAQ,EAAEiG,kBAAS,CAACC,MAAM;EAC1BhG,OAAO,EAAE+F,kBAAS,CAACE;AACrB,CAAC","ignoreList":[]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.L10N = void 0;
|
|
7
|
-
const L10N = exports.L10N = {
|
|
8
|
-
NOTIFICATION_AMAZON_INVALID_PAYMENT_METHOD: {
|
|
9
|
-
id: 'core.notification.amazon_invalid_payment_method'
|
|
10
|
-
},
|
|
11
|
-
NOTIFICATION_AMAZON_PAYMENT_METHOD_NOT_ALLOWED: {
|
|
12
|
-
id: 'core.notification.amazon_payment_method_not_allowed'
|
|
13
|
-
},
|
|
14
|
-
NOTIFICATION_AMAZON_UNKNOWN_ERROR: {
|
|
15
|
-
id: 'core.notification.amazon_unknown_error'
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=AmazonPay.l10n.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AmazonPay.l10n.js","names":["L10N","exports","NOTIFICATION_AMAZON_INVALID_PAYMENT_METHOD","id","NOTIFICATION_AMAZON_PAYMENT_METHOD_NOT_ALLOWED","NOTIFICATION_AMAZON_UNKNOWN_ERROR"],"sources":["../../../../../../src/components/__shared__/Payment/components/AmazonPay/AmazonPay.l10n.js"],"sourcesContent":["export const L10N = {\n NOTIFICATION_AMAZON_INVALID_PAYMENT_METHOD: { id: 'core.notification.amazon_invalid_payment_method' },\n NOTIFICATION_AMAZON_PAYMENT_METHOD_NOT_ALLOWED: { id: 'core.notification.amazon_payment_method_not_allowed' },\n NOTIFICATION_AMAZON_UNKNOWN_ERROR: { id: 'core.notification.amazon_unknown_error' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,0CAA0C,EAAE;IAAEC,EAAE,EAAE;EAAkD,CAAC;EACrGC,8CAA8C,EAAE;IAAED,EAAE,EAAE;EAAsD,CAAC;EAC7GE,iCAAiC,EAAE;IAAEF,EAAE,EAAE;EAAyC;AACpF,CAAC","ignoreList":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getScriptUrl = void 0;
|
|
7
|
-
const getScriptUrl = _ref => {
|
|
8
|
-
let {
|
|
9
|
-
clientId,
|
|
10
|
-
region,
|
|
11
|
-
SellerId
|
|
12
|
-
} = _ref;
|
|
13
|
-
let url;
|
|
14
|
-
if (region === 'UK') url = process.env.METHOD_AMAZON_SCRIPT_UK;else if (region === 'US') url = process.env.METHOD_AMAZON_SCRIPT_US;else url = process.env.METHOD_AMAZON_SCRIPT_DE;
|
|
15
|
-
if (clientId !== process.env.AMAZON_PROVIDER_CLIENT_ID && SellerId !== process.env.AMAZON_PROVIDER_SELLER_ID) url = url.replace('/sandbox', '');
|
|
16
|
-
return url;
|
|
17
|
-
};
|
|
18
|
-
exports.getScriptUrl = getScriptUrl;
|
|
19
|
-
//# sourceMappingURL=getScriptUrl.js.map
|
package/build/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getScriptUrl.js","names":["getScriptUrl","_ref","clientId","region","SellerId","url","process","env","METHOD_AMAZON_SCRIPT_UK","METHOD_AMAZON_SCRIPT_US","METHOD_AMAZON_SCRIPT_DE","AMAZON_PROVIDER_CLIENT_ID","AMAZON_PROVIDER_SELLER_ID","replace","exports"],"sources":["../../../../../../../src/components/__shared__/Payment/components/AmazonPay/helpers/getScriptUrl.js"],"sourcesContent":["export const getScriptUrl = ({ clientId, region, SellerId }) => {\n let url;\n if (region === 'UK') url = process.env.METHOD_AMAZON_SCRIPT_UK;\n else if (region === 'US') url = process.env.METHOD_AMAZON_SCRIPT_US;\n else url = process.env.METHOD_AMAZON_SCRIPT_DE;\n\n if (clientId !== process.env.AMAZON_PROVIDER_CLIENT_ID && SellerId !== process.env.AMAZON_PROVIDER_SELLER_ID)\n url = url.replace('/sandbox', '');\n\n return url;\n};\n"],"mappings":";;;;;;AAAO,MAAMA,YAAY,GAAGC,IAAA,IAAoC;EAAA,IAAnC;IAAEC,QAAQ;IAAEC,MAAM;IAAEC;EAAS,CAAC,GAAAH,IAAA;EACzD,IAAII,GAAG;EACP,IAAIF,MAAM,KAAK,IAAI,EAAEE,GAAG,GAAGC,OAAO,CAACC,GAAG,CAACC,uBAAuB,CAAC,KAC1D,IAAIL,MAAM,KAAK,IAAI,EAAEE,GAAG,GAAGC,OAAO,CAACC,GAAG,CAACE,uBAAuB,CAAC,KAC/DJ,GAAG,GAAGC,OAAO,CAACC,GAAG,CAACG,uBAAuB;EAE9C,IAAIR,QAAQ,KAAKI,OAAO,CAACC,GAAG,CAACI,yBAAyB,IAAIP,QAAQ,KAAKE,OAAO,CAACC,GAAG,CAACK,yBAAyB,EAC1GP,GAAG,GAAGA,GAAG,CAACQ,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;EAEnC,OAAOR,GAAG;AACZ,CAAC;AAACS,OAAA,CAAAd,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _getScriptUrl = require("./getScriptUrl");
|
|
7
|
-
Object.keys(_getScriptUrl).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _getScriptUrl[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _getScriptUrl[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_getScriptUrl","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../../src/components/__shared__/Payment/components/AmazonPay/helpers/index.js"],"sourcesContent":["export * from './getScriptUrl';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _AmazonPay = require("./AmazonPay");
|
|
7
|
-
Object.keys(_AmazonPay).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _AmazonPay[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _AmazonPay[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_AmazonPay","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../../../src/components/__shared__/Payment/components/AmazonPay/index.js"],"sourcesContent":["export * from './AmazonPay';\n"],"mappings":";;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|