-
Notifications
You must be signed in to change notification settings - Fork 346
Description
According to Bigcommerce Bundle B2B docs this endpoint https://developer.bigcommerce.com/b2b-edition/apis/rest-management/quote/quotes#generate-cart-and-checkout-url-for-a-quote should be used to proceed to quote checkout.
We are using the GraphQL Storefront API with Customer Access Tokens for authentication https://github.com/bigcommerce/catalyst/releases/tag/%40bigcommerce%2Fcatalyst-core%400.19.0. However, when the user proceeds with Bundle B2B Checkout, the Customer Access Token is not used and user is pushed to guest checkout.
Precondition:
Bigcommerce Bundle B2B is installed.
Steps to reproduce the behavior:
- Authorize in Catalyst
- Create a quote https://developer.bigcommerce.com/b2b-edition/apis/rest-management/quote/quotes#create-a-quote
- Proceed to B2B Quote Checkout using the BundleB2B checkout https://developer.bigcommerce.com/b2b-edition/apis/rest-management/quote/quotes#generate-cart-and-checkout-url-for-a-quote
Actual behaviour:
User is not authorized
Expected behavior:
User is authorized.
Alternatively generate checkout URL using Catalyst API https://developer.bigcommerce.com/docs/storefront/cart-checkout/guide/graphql-storefront#create-a-cart-redirect-url
but in this case cart id from quote doesn't fit new graphql API, graphql returns 'Cart not found'
For normal cart catalyst API returns url like /attach_session with jwt token, perhaps we could have manually generate that token but it's not clear what to use as a secret to sign it. We've stuck trying to figure out this integration
Thanks a lot for your help and support! Let me know if you need more details