-
-
Save nocrates/a265fdb9966a0d2364cdc543c8f3a593 to your computer and use it in GitHub Desktop.
LWC Commerce get API Methods Available.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import checkoutApi from "commerce/checkoutApi"; | |
| import cartApi from "commerce/cartApi"; | |
| console.log("cartApi:", cartApi); | |
| console.log("cartApi keys:", Object.keys(cartApi)); | |
| // Optional: Log function names individually | |
| Object.keys(cartApi).forEach((key) => { | |
| console.log(`cartApi[${key}] =`, cartApi[key]); | |
| }); | |
| console.log("cartApi dump ----"); | |
| console.log("checkoutApi dump ----"); | |
| console.log("checkoutApi:", checkoutApi); | |
| console.log("checkoutApi keys:", Object.keys(checkoutApi)); | |
| // Optional: Log function names individually | |
| Object.keys(checkoutApi).forEach((key) => { | |
| console.log(`checkoutApi[${key}] =`, checkoutApi[key]); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment