Start building for checkout
To get started with Checkout UI extensions, Shopify Functions, Post-purchase extensions, or Web pixel app extensions, you can use Shopify CLI, which generates starter code for building your extension and automates common development tasks.
The following is a lightweight guide for getting started to build. You can alternatively learn how to use the GraphQL Admin API to style checkout for a brand, such as changing the colors and corner radius settings on checkout form fields.
Requirements
Anchor link to section titled "Requirements"- You've created a Partner account.
You've created a new development store. Depending on the extension type that you're generating, you might also need to enable the Checkout and Customer Accounts Extensibility developer preview.
You're using the latest version of Shopify CLI.
Language-specific requirements for writing Shopify Functions in Rust
Anchor link to section titled "Language-specific requirements for writing Shopify Functions in Rust"You've installed Rust.
On Windows, Rust requires the Microsoft C++ Build Tools. Make sure to select the Desktop development with C++ workload when installing the tools.
You've installed cargo-wasi:
Get started
Anchor link to section titled "Get started"Scaffold an app:
Navigate to your app directory:
Run the following command to create a new extension:
Choose from one of the following extension types:
- Checkout UI
- Function (any of the sub-types)
- Post-purchase UI
- Web Pixel
Select a language for your extension.
For this quickstart, if you chose a
Function
extension type, then select either Rust or JavaScript.Complete one of the following steps:
If you chose a
Checkout UI
,Post-purchase UI
orWeb Pixel
extension type, then start your development server to build and preview your app:Press
p
to open the developer console. In the developer console page, click on the preview link for your extension.If you chose a
Function
extension type, then navigate toextensions/my-extension
and build the function's Wasm module:To test your function, you need to make it available to your development store. Learn more.
- Learn how to use checkout UI and post-purchase extensions by following one of our use case tutorials.