authscape 1.0.330 → 1.0.332
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 +8 -10
- package/package.json +1 -1
- package/src/components/stripe/StripePayment.js +0 -3
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
|
}
|
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);
|