Skip to content

Guest Account Checkout - Status 405 Not Allowed #222

Closed
@kvindascr

Description

@kvindascr

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:

  1. Add some products to the cart by calling addToCart mutation.
  2. Cart query correctly retrieves cart content.
  3. When calling the checkout with all information (billing address, shipping address, shipping method, payment method) I get a 405 http status.
  4. As comment from the checkout input, I'm currently not sending the account portion, as I'm not interested on creating a user account.
  5. I'm currently creating the customer mutationId on my own with a uuid.
  6. Sessions are currently being handled via the wp-graphql token.

Expected behavior
Order should be created and no 405 returned.

Screenshots
Screen Shot 2020-01-28 at 17 25 42

Additional context
WooGraphql: v0.3.1-beta
Wp-graphql: v0.3.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions