Last active
May 7, 2026 12:44
-
-
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"; | |
| ... | |
| connectedCallback() { | |
| 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]); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment