-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check if the checkout was completed #928
Comments
Hi, you should check |
I'm using this api. I can't complete the checkout after creating it. and I can't add the shippingLine either. |
@nelson3design As far as I know, checkout is completed by customer/user from the checkoutUrl provided by response. As for updating shippingLine, I believe this could help you? |
Thanks, I can't add shippingLine or shippingRates. can you help me please |
How are you trying to do this? |
const updatedCheckout = await client.checkout.updateShippingLine(checkoutId, addShippinLine); |
if you have an example of how to do it can you send it to me.thanks |
Could this be what you need? Link I would require more context in order to help you. Maybe send me the "addShippinLine" object so I can see |
const checkoutId = "gid://shopify/Checkout/e44ba7f7e9ee1d7b301f2629325ad11e?key=f8eb10b327d6df6d69571feba95b41f0";
|
shippingRates= "weight_based_shipping_rates": [], |
|
gave this error: Error adding shipping line to checkout: RequestError: The |
Your shippingRateHandle should be a "handle" not a number. Please see the type here |
|
mutation checkoutCreate($input: CheckoutCreateInput!) { |
{ |
this way doesn't work either mutation { { |
Hey guys, I'm having some problems with the checkout when it's completed, [{"message":"Checkout is already completed.","locations":[{"line":1,"column":1417}],"path":["checkoutLineItemsRemove"]}]
which function to check if the checkout is already done? can somebody help me with that?
Here is my store code:
thanks!
The text was updated successfully, but these errors were encountered: