Skip to content

Commit

Permalink
Merge branch 'develop' into refactor/finish-rename-order
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage authored Nov 18, 2024
2 parents 46fbf1a + 2c957c6 commit d7a88ca
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ For other types of storefronts, the steps are similar. However, refer to [Stripe
text: "Stripe publishable API key.",
link: "https://support.stripe.com/questions/locate-api-keys-in-the-dashboard"
},
{
text: "Cart context in your storefront, which is used in a code snippet later.",
link: "/resources/storefront-development/cart/context"
},
]} />

## 1. Install Stripe SDK
Expand Down Expand Up @@ -57,6 +61,12 @@ For Next.js storefronts, the environment variable's name must be prefixed with `

Then, create a file holding the following Stripe component:

<Note>

This snippet assumes you're using the provider from the [Cart Context guide](../../../cart/context/page.mdx) in your storefront.

</Note>

export const highlights = [
["10", "useCart", "The `useCart` hook was defined in the Cart React Context documentation."],
["13", "stripePromise", "Initialize stripe using the environment variable added in the previous step."],
Expand Down

0 comments on commit d7a88ca

Please sign in to comment.