Description
Describe the bug
Hello Guys, first of all, thanks a lot for this cool project.
I'm currently implementing a personal Ecom site with WooCommerce and using WpGraphql in the process.
I'm currently not supporting user accounts, and plan to only support Guest checkout.
Now on a guest session, when I execute the checkout method, I'm currently getting a 405 http status.
As far as I understood the checkout
method should be the one called when trying to create a guest session order.
I would like to see if I can get any guidance to understand if I'm currently either doing something wrong or how to diagnose the issue.
To Reproduce
Steps to reproduce the behavior:
- Add some products to the cart by calling
addToCart
mutation. - Cart query correctly retrieves cart content.
- When calling the
checkout
with all information (billing address, shipping address, shipping method, payment method) I get a405
http status. - As comment from the checkout input, I'm currently not sending the
account
portion, as I'm not interested on creating a user account. - I'm currently creating the customer
mutationId
on my own with a uuid. - Sessions are currently being handled via the wp-graphql token.
Expected behavior
Order should be created and no 405 returned.
Additional context
WooGraphql: v0.3.1-beta
Wp-graphql: v0.3.4