Last active
July 10, 2025 16:38
-
-
Save megasmack/29b5cf5540df2815d7e6d0823f1245ca 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