authscape 1.0.330 → 1.0.334
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/index.js
CHANGED
|
@@ -3462,36 +3462,34 @@ function StripePayment(_ref3) {
|
|
|
3462
3462
|
while (1) switch (_context3.prev = _context3.next) {
|
|
3463
3463
|
case 0:
|
|
3464
3464
|
if (!(invoiceId != null)) {
|
|
3465
|
-
_context3.next =
|
|
3465
|
+
_context3.next = 7;
|
|
3466
3466
|
break;
|
|
3467
3467
|
}
|
|
3468
|
-
|
|
3469
|
-
_context3.next = 4;
|
|
3468
|
+
_context3.next = 3;
|
|
3470
3469
|
return apiService().post("/Invoices/PayInvoice", {
|
|
3471
3470
|
invoiceId: invoiceId,
|
|
3472
3471
|
walletPaymentMethodId: paymentMethod
|
|
3473
3472
|
});
|
|
3474
|
-
case
|
|
3473
|
+
case 3:
|
|
3475
3474
|
response = _context3.sent;
|
|
3476
|
-
setIsLoading(false);
|
|
3477
3475
|
if (response != null && response.status == 200) {
|
|
3478
3476
|
onResponse("paid", null);
|
|
3479
3477
|
}
|
|
3480
|
-
_context3.next = 13;
|
|
3481
|
-
break;
|
|
3482
|
-
case 9:
|
|
3483
3478
|
_context3.next = 11;
|
|
3479
|
+
break;
|
|
3480
|
+
case 7:
|
|
3481
|
+
_context3.next = 9;
|
|
3484
3482
|
return apiService().post("/Payment/Charge", {
|
|
3485
3483
|
paymentMethodType: paymentMethodType,
|
|
3486
3484
|
walletPaymentMethodId: paymentMethod,
|
|
3487
3485
|
amount: amount
|
|
3488
3486
|
});
|
|
3489
|
-
case
|
|
3487
|
+
case 9:
|
|
3490
3488
|
_response3 = _context3.sent;
|
|
3491
3489
|
if (_response3 != null && _response3.status == 200) {
|
|
3492
3490
|
onResponse("paid", _response3.data.stripePaymentIntentId);
|
|
3493
3491
|
}
|
|
3494
|
-
case
|
|
3492
|
+
case 11:
|
|
3495
3493
|
case "end":
|
|
3496
3494
|
return _context3.stop();
|
|
3497
3495
|
}
|
|
@@ -4390,12 +4388,17 @@ function _WhiteLabelPageModule() {
|
|
|
4390
4388
|
return fetch(apiUri + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + host);
|
|
4391
4389
|
case 4:
|
|
4392
4390
|
response = _context.sent;
|
|
4393
|
-
|
|
4391
|
+
if (!(response.status == 200)) {
|
|
4392
|
+
_context.next = 9;
|
|
4393
|
+
break;
|
|
4394
|
+
}
|
|
4395
|
+
_context.next = 8;
|
|
4394
4396
|
return response.json();
|
|
4395
|
-
case
|
|
4397
|
+
case 8:
|
|
4396
4398
|
data.oemCompanyId = _context.sent;
|
|
4397
|
-
return _context.abrupt("return", data);
|
|
4398
4399
|
case 9:
|
|
4400
|
+
return _context.abrupt("return", data);
|
|
4401
|
+
case 10:
|
|
4399
4402
|
case "end":
|
|
4400
4403
|
return _context.stop();
|
|
4401
4404
|
}
|
package/package.json
CHANGED
|
@@ -382,13 +382,10 @@ import { Select, Grid, MenuItem, Box, Button, Tab, Tabs, TextField } from '@mui/
|
|
|
382
382
|
|
|
383
383
|
if (invoiceId != null)
|
|
384
384
|
{
|
|
385
|
-
setIsLoading(true);
|
|
386
385
|
let response = await apiService().post("/Invoices/PayInvoice", {
|
|
387
386
|
invoiceId: invoiceId,
|
|
388
387
|
walletPaymentMethodId: paymentMethod
|
|
389
388
|
});
|
|
390
|
-
setIsLoading(false);
|
|
391
|
-
|
|
392
389
|
if (response != null && response.status == 200)
|
|
393
390
|
{
|
|
394
391
|
onResponse("paid", null);
|
|
@@ -13,7 +13,10 @@ export async function WhiteLabelPageModule(apiUri, host) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
const response = await fetch(apiUri + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + host);
|
|
16
|
-
|
|
16
|
+
if (response.status == 200)
|
|
17
|
+
{
|
|
18
|
+
data.oemCompanyId = await response.json();
|
|
19
|
+
}
|
|
17
20
|
|
|
18
21
|
return data;
|
|
19
22
|
}
|