Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d9d620d67 |
@@ -9,10 +9,7 @@ import { PaymentStep } from './checkout/PaymentStep';
|
||||
import { ReviewStep } from './checkout/ReviewStep';
|
||||
import { ConfirmationStep } from './checkout/ConfirmationStep';
|
||||
|
||||
// Without a publishable key (local builds), loadStripe throws on every page that
|
||||
// imports this module. Elements accepts null and the payment step stays empty.
|
||||
const publishableKey = process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY;
|
||||
const stripePromise = publishableKey ? loadStripe(publishableKey) : null;
|
||||
const stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY!);
|
||||
|
||||
const STEPS: { id: CheckoutStep; label: string }[] = [
|
||||
{ id: 'shipping', label: 'Shipping' },
|
||||
|
||||
Reference in New Issue
Block a user