Closed RobinGiel closed 3 years ago
I fixed this bye doing this:
` if (!shippingValidationResult.isValid || !billingValidationResult.isValid) { setInput({ ...input, billing: {...input.billing, errors: billingValidationResult.errors}, shipping: {...input.shipping, errors: shippingValidationResult.errors} }) }
if ( 'stripe-mode' === input.paymentMethod ) {
await handleStripeCheckout(input, cart?.products, setRequestError, clearCartMutation, setIsStripeOrderProcessing, setCreatedOrderData);
return null;
}
`
my checkout form validation was not updated
` const handleFormSubmit = async (event) => { event.preventDefault();
`
this part of the code doesn't seem to be working with me. for using const createdOrderData is also something I would like to ask. If I use await handleStripeCheckout in the begin it will work, But I will miss all shipping details. Is there a solution to this problem, or maybe I'm doing something wrong?