Skip to content

Commit

Permalink
add payment description for with-stripe-typescript (#15888)
Browse files Browse the repository at this point in the history
  • Loading branch information
darshkpatel authored Aug 5, 2020
1 parent fce1830 commit 5db2860
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/with-stripe-typescript/.env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
# https://dashboard.stripe.com/apikeys
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_12345
STRIPE_SECRET_KEY=sk_12345
STRIPE_PAYMENT_DESCRIPTION='Software development services'
# https://stripe.com/docs/webhooks/signatures
STRIPE_WEBHOOK_SECRET=whsec_1234
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default async function handler(
payment_method_types: ['card'],
amount: formatAmountForStripe(amount, CURRENCY),
currency: CURRENCY,
description: process.env.STRIPE_PAYMENT_DESCRIPTION ?? '',
}
const payment_intent: Stripe.PaymentIntent = await stripe.paymentIntents.create(
params
Expand Down

0 comments on commit 5db2860

Please sign in to comment.