reactioncommerce / example-storefront

Example Storefront is Reaction Commerce’s headless ecommerce storefront - Next.js, GraphQL, React. Built using Apollo Client and the commerce-focused React UI components provided in the Storefront Component Library (reactioncommerce/reaction-component-library). It connects with Reaction backend with the GraphQL API.
https://www.mailchimp.com/developer/open-commerce
Apache License 2.0
608 stars 288 forks source link

Cannot check out when only Example IOU method is enabled #806

Closed brent-hoover closed 2 years ago

brent-hoover commented 3 years ago

Type: critical

Describe the bug When attempting to check out with only the Example IOU method enabled I just get a message saying "No payment methods available" and errors in the console.

To Reproduce Steps to reproduce the behavior:

  1. Spin up a blank instance and add a product
  2. Only enable "Example IOU" as the payment method and a shipping method
  3. Add to cart and attempt to check out
  4. See "No payment methods available" and error in the console
    022e1ff……239ab5834d9235.js:1 [GraphQL error]: Variable "$shopId" of non-null type "ID!" must not be null. 
    {locations: Array(1), operationName: 'availablePaymentMethods', path: undefined}

Expected behavior Able to checkout using the IOU Example method

Desktop (please complete the following information):