4
0
forked from crowetic/commerce
Catalin Pinte c75b0fc001
Dynamic API routes (#836)
* Add dynamic API endpoints

* Add missing dependency

* Update api handlers

* Updates

* Fix build errors

* Update package.json

* Add checkout endpoint parser & update errors

* Update tsconfig.json

* Update cart.ts

* Update parser

* Update errors.ts

* Update errors.ts

* Move to Edge runtime

* Revert to local

* Fix switchable runtimes

* Make nodejs default runtime

* Update pnpm-lock.yaml

* Update handlers

* Fix build errors

* Change headers
2022-10-30 13:41:21 -05:00
..
2022-10-30 13:41:21 -05:00
2022-02-01 14:14:05 -05:00
2022-02-01 14:14:05 -05:00
2022-02-01 14:14:05 -05:00
2022-10-30 13:41:21 -05:00
2022-02-01 14:14:05 -05:00
2022-02-01 14:14:05 -05:00
2022-02-01 14:14:05 -05:00
2022-02-01 14:14:05 -05:00

Kibo Commerce Provider

If you already have a Kibo Commerce account and want to use your current store, then copy the .env.template file in this directory to .env.local in the main directory (which will be ignored by Git):

cp packages/kibocommerce/.env.template .env.local

Then, set the environment variables in .env.local to match the ones from your store.

COMMERCE_PROVIDER='kibocommerce'
KIBO_API_URL= 'https://t1234-s1234.sandbox.mozu.com/graphql'
KIBO_CART_COOKIE='kibo_cart'
KIBO_CUSTOMER_COOKIE='kibo_customer'
KIBO_CLIENT_ID='KIBO.APP.1.0.0.Release'
KIBO_SHARED_SECRET='12345secret'
KIBO_AUTH_URL='https://home.mozu.com'
  • KIBO_API_URL - link to your Kibo Commerce GraphQL API instance.
  • KIBO_CART_COOKIE - configurable cookie name for cart.
  • KIBO_CUSTOMER_COOKIE - configurable cookie name for shopper identifier/authentication cookie
  • KIBO_CLIENT_ID - Unique Application (Client) ID of your Application
  • KIBO_SHARED_SECRET - Secret API key used to authenticate application/client id.

Your Kibo Client ID and Shared Secret can be found from your Kibo eCommerce Dev Center

Visit Kibo documentation for more details on API authentication

Based on the config, this integration will handle Authenticating your application against the Kibo API using the Kibo Client ID and Kibo Shared Secret.

Contribute

Our commitment to Open Source can be found here.

If you find an issue with the provider or want a new feature, feel free to open a PR or create a new issue.