@tap-payments/apple-pay-button 1.0.1 → 1.0.2

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.
@@ -1,217 +1,253 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
- return new (P || (P = Promise))(function (resolve, reject) {
19
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
22
- step((generator = generator.apply(thisArg, _arguments || [])).next());
23
- });
24
- };
25
- var __generator = (this && this.__generator) || function (thisArg, body) {
26
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
27
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
28
- function verb(n) { return function (v) { return step([n, v]); }; }
29
- function step(op) {
30
- if (f) throw new TypeError("Generator is already executing.");
31
- while (_) try {
32
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
33
- if (y = 0, t) op = [op[0] & 2, t.value];
34
- switch (op[0]) {
35
- case 0: case 1: t = op; break;
36
- case 4: _.label++; return { value: op[1], done: false };
37
- case 5: _.label++; y = op[1]; op = [0]; continue;
38
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
39
- default:
40
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
41
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
42
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
43
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
44
- if (t[2]) _.ops.pop();
45
- _.trys.pop(); continue;
46
- }
47
- op = body.call(thisArg, _);
48
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
49
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
50
- }
51
- };
52
- import BaseService from './base';
53
- import httpClient from './httpClient';
54
- var APPService = (function (_super) {
55
- __extends(APPService, _super);
56
- function APPService() {
57
- return _super.call(this, httpClient) || this;
58
- }
59
- Object.defineProperty(APPService.prototype, "init", {
60
- enumerable: false,
61
- configurable: true,
62
- writable: true,
63
- value: function (publicKey, merchantId) {
64
- return __awaiter(this, void 0, void 0, function () {
65
- var body, data;
66
- return __generator(this, function (_a) {
67
- switch (_a.label) {
68
- case 0:
69
- body = {
70
- headers: { authorization: "Bearer ".concat(publicKey) },
71
- reqBody: { public_key: publicKey, merchant_id: merchantId }
72
- };
73
- return [4, this.post('/init', body)];
74
- case 1:
75
- data = (_a.sent()).data;
76
- if (data.errors)
77
- throw data;
78
- return [2, {
79
- merchant: data.merchant,
80
- payment_options: data.payment_options
81
- }];
82
- }
83
- });
84
- });
85
- }
86
- });
87
- Object.defineProperty(APPService.prototype, "appleSession", {
88
- enumerable: false,
89
- configurable: true,
90
- writable: true,
91
- value: function (merchant, validationURL, merchantRegisteredDomain) {
92
- return __awaiter(this, void 0, void 0, function () {
93
- var body, data;
94
- return __generator(this, function (_a) {
95
- switch (_a.label) {
96
- case 0:
97
- body = {
98
- validationUrl: validationURL,
99
- origin: merchantRegisteredDomain,
100
- merchantIdentifier: 'merchant.tap.gosell',
101
- merchantId: merchant.id,
102
- merchantName: merchant.name,
103
- session_token: merchant.session_token
104
- };
105
- return [4, this.post('/session', body)];
106
- case 1:
107
- data = (_a.sent()).data;
108
- if (data.errors)
109
- throw data;
110
- return [2, data];
111
- }
112
- });
113
- });
114
- }
115
- });
116
- Object.defineProperty(APPService.prototype, "tapTokenization", {
117
- enumerable: false,
118
- configurable: true,
119
- writable: true,
120
- value: function (applePaymentData, merchant) {
121
- return __awaiter(this, void 0, void 0, function () {
122
- var body, data;
123
- return __generator(this, function (_a) {
124
- switch (_a.label) {
125
- case 0:
126
- body = {
127
- method: 'POST',
128
- path: '/v2/token',
129
- headers: {
130
- session_token: merchant.session_token
131
- },
132
- reqBody: {
133
- type: 'applepay',
134
- token_data: applePaymentData
135
- }
136
- };
137
- return [4, this.post('/api', body)];
138
- case 1:
139
- data = (_a.sent()).data;
140
- if (data.errors)
141
- throw data;
142
- return [2, data];
143
- }
144
- });
145
- });
146
- }
147
- });
148
- Object.defineProperty(APPService.prototype, "createCharge", {
149
- enumerable: false,
150
- configurable: true,
151
- writable: true,
152
- value: function (publicKey, merchant, request, cardToken) {
153
- var body = {
154
- method: 'POST',
155
- path: '/v2/charge',
156
- headers: {
157
- session_token: merchant.session_token
158
- },
159
- reqBody: {
160
- id: null,
161
- amount: request.total.amount,
162
- currency: request.currencyCode,
163
- public_key: publicKey,
164
- product: 'GOSELL',
165
- threeDSecure: true,
166
- save_card: false,
167
- fee: 0,
168
- statement_descriptor: 'Sample',
169
- description: 'Test Description',
170
- metadata: {},
171
- reference: {
172
- transaction: 'txn_0001',
173
- order: 'ord_0001'
174
- },
175
- receipt: {
176
- email: false,
177
- sms: true
178
- },
179
- customer: {
180
- id: null,
181
- first_name: 'Hala',
182
- middle_name: null,
183
- last_name: 'Q.',
184
- email: 'email@email.com',
185
- phone: {
186
- country_code: '965',
187
- number: '00000000'
188
- }
189
- },
190
- source: {
191
- id: cardToken
192
- },
193
- hashstring: null,
194
- post: {
195
- url: null
196
- },
197
- redirect: {
198
- url: 'https://jslib.gosell.io/demo?token=63cce645332aa501e6cf768f&mode=popup'
199
- },
200
- ipaddress: null,
201
- selected_currency: request.currencyCode,
202
- selected_amount: request.total.amount,
203
- merchant: {
204
- id: merchant.id
205
- },
206
- order: {
207
- id: 'ord_06CO2023731xt7V22SC0X487'
208
- }
209
- }
210
- };
211
- return this.post('/api', body);
212
- }
213
- });
214
- return APPService;
215
- }(BaseService));
216
- var appService = new APPService();
217
- export default appService;
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18
+ return new (P || (P = Promise))(function (resolve, reject) {
19
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
20
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
22
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
23
+ });
24
+ };
25
+ var __generator = (this && this.__generator) || function (thisArg, body) {
26
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
27
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
28
+ function verb(n) { return function (v) { return step([n, v]); }; }
29
+ function step(op) {
30
+ if (f) throw new TypeError("Generator is already executing.");
31
+ while (_) try {
32
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
33
+ if (y = 0, t) op = [op[0] & 2, t.value];
34
+ switch (op[0]) {
35
+ case 0: case 1: t = op; break;
36
+ case 4: _.label++; return { value: op[1], done: false };
37
+ case 5: _.label++; y = op[1]; op = [0]; continue;
38
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
39
+ default:
40
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
41
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
42
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
43
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
44
+ if (t[2]) _.ops.pop();
45
+ _.trys.pop(); continue;
46
+ }
47
+ op = body.call(thisArg, _);
48
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
49
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
50
+ }
51
+ };
52
+ var __rest = (this && this.__rest) || function (s, e) {
53
+ var t = {};
54
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
55
+ t[p] = s[p];
56
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
57
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
58
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
59
+ t[p[i]] = s[p[i]];
60
+ }
61
+ return t;
62
+ };
63
+ import BaseService from './base';
64
+ import httpClient, { setAxiosGlobalHeaders, MW_BASE_BETA_URL, MW_BASE_DEV_URL, MW_BASE_LIVE_URL, MW_BASE_STAGING_URL, MW_BASE_SANDBOX_URL } from './httpClient';
65
+ import BrowserInfo from '@tap-payments/browser-info';
66
+ import { generateApplicationHeader, rsaSetup } from '../utils/config';
67
+ import { RSA_BETA_MW_PUBLIC_KEY, RSA_DEV_MW_PUBLIC_KEY, RSA_PRODUCTION_MW_PUBLIC_KEY, RSA_SANDBOX_MW_PUBLIC_KEY, RSA_STAGING_MW_PUBLIC_KEY } from '../constants';
68
+ var APPService = (function (_super) {
69
+ __extends(APPService, _super);
70
+ function APPService() {
71
+ var _this = _super.call(this, httpClient) || this;
72
+ Object.defineProperty(_this, "baseUrl", {
73
+ enumerable: true,
74
+ configurable: true,
75
+ writable: true,
76
+ value: void 0
77
+ });
78
+ Object.defineProperty(_this, "env", {
79
+ enumerable: true,
80
+ configurable: true,
81
+ writable: true,
82
+ value: void 0
83
+ });
84
+ _this.baseUrl = MW_BASE_LIVE_URL;
85
+ _this.env = 'production';
86
+ return _this;
87
+ }
88
+ Object.defineProperty(APPService.prototype, "setEnv", {
89
+ enumerable: false,
90
+ configurable: true,
91
+ writable: true,
92
+ value: function (env) {
93
+ this.env = env;
94
+ }
95
+ });
96
+ Object.defineProperty(APPService.prototype, "setBaseUrl", {
97
+ enumerable: false,
98
+ configurable: true,
99
+ writable: true,
100
+ value: function () {
101
+ if (!this.env)
102
+ throw new Error('Environment is not set');
103
+ switch (this.env) {
104
+ case 'staging':
105
+ this.baseUrl = MW_BASE_STAGING_URL;
106
+ break;
107
+ case 'beta':
108
+ this.baseUrl = MW_BASE_BETA_URL;
109
+ break;
110
+ case 'development':
111
+ this.baseUrl = MW_BASE_DEV_URL;
112
+ break;
113
+ case 'sandbox':
114
+ this.baseUrl = MW_BASE_SANDBOX_URL;
115
+ break;
116
+ default:
117
+ this.baseUrl = MW_BASE_LIVE_URL;
118
+ break;
119
+ }
120
+ }
121
+ });
122
+ Object.defineProperty(APPService.prototype, "getHeaderPublicKey", {
123
+ enumerable: false,
124
+ configurable: true,
125
+ writable: true,
126
+ value: function () {
127
+ if (!this.env)
128
+ throw new Error('Environment is not set');
129
+ switch (this.env) {
130
+ case 'staging':
131
+ return RSA_STAGING_MW_PUBLIC_KEY;
132
+ case 'beta':
133
+ return RSA_BETA_MW_PUBLIC_KEY;
134
+ case 'development':
135
+ return RSA_DEV_MW_PUBLIC_KEY;
136
+ case 'sandbox':
137
+ return RSA_SANDBOX_MW_PUBLIC_KEY;
138
+ default:
139
+ return RSA_PRODUCTION_MW_PUBLIC_KEY;
140
+ }
141
+ }
142
+ });
143
+ Object.defineProperty(APPService.prototype, "setBrowserHeaders", {
144
+ enumerable: false,
145
+ configurable: true,
146
+ writable: true,
147
+ value: function (_a) {
148
+ var locale = _a.locale, pk = _a.pk, domain = _a.domain;
149
+ return __awaiter(this, void 0, void 0, function () {
150
+ var encryptString, encryptedHeaders, mdn, authorization, rest, application;
151
+ return __generator(this, function (_b) {
152
+ switch (_b.label) {
153
+ case 0:
154
+ encryptString = rsaSetup(this.getHeaderPublicKey());
155
+ return [4, new BrowserInfo.BrowserInfo({
156
+ app: { name: '@tap-payments/apple-pay-button', language: locale },
157
+ credentials: { mdn: domain, pk: pk },
158
+ encrypt: function (_key, value) { return encryptString(value); }
159
+ }).get()];
160
+ case 1:
161
+ encryptedHeaders = _b.sent();
162
+ mdn = encryptedHeaders.mdn, authorization = encryptedHeaders.authorization, rest = __rest(encryptedHeaders, ["mdn", "authorization"]);
163
+ application = generateApplicationHeader(rest);
164
+ setAxiosGlobalHeaders({
165
+ authorization: pk,
166
+ mdn: mdn,
167
+ application: application
168
+ });
169
+ return [2];
170
+ }
171
+ });
172
+ });
173
+ }
174
+ });
175
+ Object.defineProperty(APPService.prototype, "checkoutProfile", {
176
+ enumerable: false,
177
+ configurable: true,
178
+ writable: true,
179
+ value: function (merchantId) {
180
+ return __awaiter(this, void 0, void 0, function () {
181
+ var data, merchant, payment_options, session;
182
+ return __generator(this, function (_a) {
183
+ switch (_a.label) {
184
+ case 0: return [4, this.post(this.baseUrl + '/checkoutprofile', { merchant_id: merchantId !== null && merchantId !== void 0 ? merchantId : '' })];
185
+ case 1:
186
+ data = (_a.sent()).data;
187
+ if (data.errors)
188
+ throw data;
189
+ merchant = data.merchant, payment_options = data.payment_options, session = data.session;
190
+ setAxiosGlobalHeaders({ session: session });
191
+ return [2, { merchant: merchant, payment_options: payment_options }];
192
+ }
193
+ });
194
+ });
195
+ }
196
+ });
197
+ Object.defineProperty(APPService.prototype, "appleSession", {
198
+ enumerable: false,
199
+ configurable: true,
200
+ writable: true,
201
+ value: function (merchant, validationURL, merchantRegisteredDomain, merchantIdentifier) {
202
+ return __awaiter(this, void 0, void 0, function () {
203
+ var body, data;
204
+ return __generator(this, function (_a) {
205
+ switch (_a.label) {
206
+ case 0:
207
+ body = {
208
+ validationUrl: validationURL,
209
+ origin: merchantRegisteredDomain,
210
+ merchantIdentifier: merchantIdentifier,
211
+ merchantId: merchant.id,
212
+ merchantName: merchant.name
213
+ };
214
+ return [4, this.post(this.baseUrl + '/validatemerchant', body)];
215
+ case 1:
216
+ data = (_a.sent()).data;
217
+ if (data.errors)
218
+ throw data;
219
+ return [2, data];
220
+ }
221
+ });
222
+ });
223
+ }
224
+ });
225
+ Object.defineProperty(APPService.prototype, "tapTokenization", {
226
+ enumerable: false,
227
+ configurable: true,
228
+ writable: true,
229
+ value: function (applePaymentData) {
230
+ return __awaiter(this, void 0, void 0, function () {
231
+ var body, data;
232
+ return __generator(this, function (_a) {
233
+ switch (_a.label) {
234
+ case 0:
235
+ body = {
236
+ type: 'applepay',
237
+ token_data: applePaymentData
238
+ };
239
+ return [4, this.post(this.baseUrl + '/token', body)];
240
+ case 1:
241
+ data = (_a.sent()).data;
242
+ if (data.errors)
243
+ throw data;
244
+ return [2, data];
245
+ }
246
+ });
247
+ });
248
+ }
249
+ });
250
+ return APPService;
251
+ }(BaseService));
252
+ var appService = new APPService();
253
+ export default appService;
@@ -1,9 +1,9 @@
1
- import { AxiosInstance, AxiosRequestConfig } from 'axios';
2
- export default class BaseService {
3
- httpClient: AxiosInstance;
4
- constructor(httpClient: AxiosInstance);
5
- get(url: string, config?: AxiosRequestConfig<any>): Promise<import("axios").AxiosResponse<any, any>>;
6
- post(url: string, data?: any, config?: AxiosRequestConfig<any>): Promise<import("axios").AxiosResponse<any, any>>;
7
- put(url: string, data?: any, config?: AxiosRequestConfig<any>): Promise<import("axios").AxiosResponse<any, any>>;
8
- delete(url: string, config?: AxiosRequestConfig<any>): Promise<import("axios").AxiosResponse<any, any>>;
9
- }
1
+ import { AxiosInstance, AxiosRequestConfig } from 'axios';
2
+ export default class BaseService {
3
+ httpClient: AxiosInstance;
4
+ constructor(httpClient: AxiosInstance);
5
+ get(url: string, config?: AxiosRequestConfig<any>): Promise<import("axios").AxiosResponse<any, any>>;
6
+ post(url: string, data?: any, config?: AxiosRequestConfig<any>): Promise<import("axios").AxiosResponse<any, any>>;
7
+ put(url: string, data?: any, config?: AxiosRequestConfig<any>): Promise<import("axios").AxiosResponse<any, any>>;
8
+ delete(url: string, config?: AxiosRequestConfig<any>): Promise<import("axios").AxiosResponse<any, any>>;
9
+ }
package/build/api/base.js CHANGED
@@ -1,45 +1,45 @@
1
- var BaseService = (function () {
2
- function BaseService(httpClient) {
3
- Object.defineProperty(this, "httpClient", {
4
- enumerable: true,
5
- configurable: true,
6
- writable: true,
7
- value: void 0
8
- });
9
- this.httpClient = httpClient;
10
- }
11
- Object.defineProperty(BaseService.prototype, "get", {
12
- enumerable: false,
13
- configurable: true,
14
- writable: true,
15
- value: function (url, config) {
16
- return this.httpClient.get(url, config);
17
- }
18
- });
19
- Object.defineProperty(BaseService.prototype, "post", {
20
- enumerable: false,
21
- configurable: true,
22
- writable: true,
23
- value: function (url, data, config) {
24
- return this.httpClient.post(url, data, config);
25
- }
26
- });
27
- Object.defineProperty(BaseService.prototype, "put", {
28
- enumerable: false,
29
- configurable: true,
30
- writable: true,
31
- value: function (url, data, config) {
32
- return this.httpClient.put(url, data, config);
33
- }
34
- });
35
- Object.defineProperty(BaseService.prototype, "delete", {
36
- enumerable: false,
37
- configurable: true,
38
- writable: true,
39
- value: function (url, config) {
40
- return this.httpClient.delete(url, config);
41
- }
42
- });
43
- return BaseService;
44
- }());
45
- export default BaseService;
1
+ var BaseService = (function () {
2
+ function BaseService(httpClient) {
3
+ Object.defineProperty(this, "httpClient", {
4
+ enumerable: true,
5
+ configurable: true,
6
+ writable: true,
7
+ value: void 0
8
+ });
9
+ this.httpClient = httpClient;
10
+ }
11
+ Object.defineProperty(BaseService.prototype, "get", {
12
+ enumerable: false,
13
+ configurable: true,
14
+ writable: true,
15
+ value: function (url, config) {
16
+ return this.httpClient.get(url, config);
17
+ }
18
+ });
19
+ Object.defineProperty(BaseService.prototype, "post", {
20
+ enumerable: false,
21
+ configurable: true,
22
+ writable: true,
23
+ value: function (url, data, config) {
24
+ return this.httpClient.post(url, data, config);
25
+ }
26
+ });
27
+ Object.defineProperty(BaseService.prototype, "put", {
28
+ enumerable: false,
29
+ configurable: true,
30
+ writable: true,
31
+ value: function (url, data, config) {
32
+ return this.httpClient.put(url, data, config);
33
+ }
34
+ });
35
+ Object.defineProperty(BaseService.prototype, "delete", {
36
+ enumerable: false,
37
+ configurable: true,
38
+ writable: true,
39
+ value: function (url, config) {
40
+ return this.httpClient.delete(url, config);
41
+ }
42
+ });
43
+ return BaseService;
44
+ }());
45
+ export default BaseService;
@@ -1,2 +1,8 @@
1
- declare const httpClient: import("axios").AxiosInstance;
2
- export default httpClient;
1
+ export declare const MW_BASE_LIVE_URL = "https://mw-sdk.tap.company/v2/checkout";
2
+ export declare const MW_BASE_STAGING_URL = "https://mw-sdk.staing.tap.company/v2/checkout";
3
+ export declare const MW_BASE_DEV_URL = "https://mw-sdk.dev.tap.company/v2/checkout";
4
+ export declare const MW_BASE_BETA_URL = "https://mw-sdk.dev.tap.company/v2/checkout";
5
+ export declare const MW_BASE_SANDBOX_URL = "https://mw-sdk.sandbox.tap.company/v2/checkout";
6
+ declare const httpClient: import("axios").AxiosInstance;
7
+ export declare const setAxiosGlobalHeaders: (headers: Record<string, string>) => void;
8
+ export default httpClient;