diff --git a/.env.local.default b/.env.local.default index 7f58be0..0142792 100644 --- a/.env.local.default +++ b/.env.local.default @@ -1,8 +1,8 @@ -# ~~~ +NEXT_PUBLIC_COINBASE_COMMERCE_API_KEY="COMMERCE_API_KEY_1234567890" + NEXT_PUBLIC_GOOGLE_ANALYTICS_ID=GA_TEST_1234567890 # See https://www.coinbase.com/developer-platform/products/base-node NEXT_PUBLIC_CDP_API_KEY="CDP_API_KEY_1234567890" -# ~~~ NEXT_PUBLIC_ENVIRONMENT=localhost diff --git a/.env.test b/.env.test index 7f58be0..0142792 100644 --- a/.env.test +++ b/.env.test @@ -1,8 +1,8 @@ -# ~~~ +NEXT_PUBLIC_COINBASE_COMMERCE_API_KEY="COMMERCE_API_KEY_1234567890" + NEXT_PUBLIC_GOOGLE_ANALYTICS_ID=GA_TEST_1234567890 # See https://www.coinbase.com/developer-platform/products/base-node NEXT_PUBLIC_CDP_API_KEY="CDP_API_KEY_1234567890" -# ~~~ NEXT_PUBLIC_ENVIRONMENT=localhost diff --git a/src/components/OnchainStoreCart.tsx b/src/components/OnchainStoreCart.tsx index 2a1a920..1bee1a5 100644 --- a/src/components/OnchainStoreCart.tsx +++ b/src/components/OnchainStoreCart.tsx @@ -33,12 +33,14 @@ export default function OnchainStoreCart() { description, pricing_type: 'fixed_price', local_price: { - amount: totalSum.toString(), + // NOTE: set to 0 for simulation purposes, + // replace with totalSum.toString() in real app + amount: '0', currency: 'USD', }, }; return createCharge(chargeDetails); - }, [createCharge, quantities, totalSum]); + }, [createCharge, quantities]); return (