Skip to content

Commit

Permalink
docs(stripe readme): change docs examples to use secret instead of pu…
Browse files Browse the repository at this point in the history
…blic stripe api key (#774)

fix #773
  • Loading branch information
laserchicken authored Aug 22, 2024
1 parent 5137c0f commit 8502959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/stripe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import { StripeModule } from '@golevelup/nestjs-stripe';
@Module({
imports: [
StripeModule.forRoot(StripeModule, {
apiKey: 'pk_***',
apiKey: 'sk_***',
webhookConfig: {
stripeSecrets: {
account: 'whsec_***',
Expand Down Expand Up @@ -113,7 +113,7 @@ You can then manually set up `bodyProperty` to use rawBody:

```typescript
StripeModule.forRoot(StripeModule, {
apiKey: 'pk_***',
apiKey: 'sk_***',
webhookConfig: {
stripeSecrets: { ... },
requestBodyProperty: 'rawBody', // <-- Set to 'rawBody'
Expand Down Expand Up @@ -143,7 +143,7 @@ You can also pass any class decorator to the `decorators` property of the `webho

```typescript
StripeModule.forRoot(StripeModule, {
apiKey: 'pk_***',
apiKey: 'sk_***',
webhookConfig: {
stripeSecrets: { ... },
decorators: [SkipThrottle()],
Expand Down

0 comments on commit 8502959

Please sign in to comment.