Merged in release/2021-11-26 (pull request #277)
release/2021-11-26 Approved-by: Patrick Fic
This commit is contained in:
@@ -19,7 +19,7 @@ export function DmsCdkMakesRefetch({ bodyshop, form, socket }) {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const handleRefetch = async () => {
|
const handleRefetch = async () => {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
const response = await axios.post("/cdk/getvehicles", {
|
await axios.post("/cdk/getvehicles", {
|
||||||
cdk_dealerid: bodyshop.cdk_dealerid,
|
cdk_dealerid: bodyshop.cdk_dealerid,
|
||||||
bodyshopid: bodyshop.id,
|
bodyshopid: bodyshop.id,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -10,14 +10,11 @@ export default function HelpRescue() {
|
|||||||
var bodyFormData = new FormData();
|
var bodyFormData = new FormData();
|
||||||
bodyFormData.append("Code", code);
|
bodyFormData.append("Code", code);
|
||||||
bodyFormData.append("hostederrorhandling", 1);
|
bodyFormData.append("hostederrorhandling", 1);
|
||||||
const res1 = await fetch(
|
await fetch("https://secure.logmeinrescue.com/Customer/Code.aspx", {
|
||||||
"https://secure.logmeinrescue.com/Customer/Code.aspx",
|
mode: "no-cors",
|
||||||
{
|
method: "POST",
|
||||||
mode: "no-cors",
|
body: bodyFormData,
|
||||||
method: "POST",
|
});
|
||||||
body: bodyFormData,
|
|
||||||
}
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -60,9 +60,9 @@ export default function MobilePaymentComponent() {
|
|||||||
// it to close the browser payment method collection interface.
|
// it to close the browser payment method collection interface.
|
||||||
ev.complete("success");
|
ev.complete("success");
|
||||||
// Let Stripe.js handle the rest of the payment flow.
|
// Let Stripe.js handle the rest of the payment flow.
|
||||||
const { error, paymentIntent } = await stripe.confirmCardPayment(
|
const {
|
||||||
"clientSecret"
|
error, //paymentIntent
|
||||||
);
|
} = await stripe.confirmCardPayment("clientSecret");
|
||||||
if (error) {
|
if (error) {
|
||||||
// The payment failed -- ask your customer for a new payment method.
|
// The payment failed -- ask your customer for a new payment method.
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user