@dodopayments/nextjs 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -64,7 +64,7 @@ Returns 400 if `customer_id` is missing.
64
64
  import { Webhooks } from "@dodopayments/nextjs";
65
65
 
66
66
  export const POST = Webhooks({
67
- webhookKey: process.env.DODO_WEBHOOK_SECRET!,
67
+ webhookKey: process.env.DODO_PAYMENTS_WEBHOOK_SECRET!,
68
68
  onPayload: async (payload) => {
69
69
  // handle the payload
70
70
  },
@@ -192,7 +192,7 @@ Code Snippet:
192
192
  import { Webhooks } from '@dodopayments/nextjs'
193
193
 
194
194
  export const POST = Webhooks({
195
- webhookKey: process.env.DODO_WEBHOOK_SECRET!,
195
+ webhookKey: process.env.DODO_PAYMENTS_WEBHOOK_SECRET!,
196
196
  onPayload: async (payload) => {
197
197
  // handle the payload
198
198
  },
@@ -273,17 +273,17 @@ To ensure the adapter functions correctly, you will need to manually set up the
273
273
 
274
274
  RETURN_URL: (Optional) The URL to redirect to after a successful checkout (for Checkout handler).
275
275
 
276
- DODO_WEBHOOK_SECRET: Your Dodo Payments Webhook Secret (required for Webhook handler).
276
+ DODO_PAYMENTS_WEBHOOK_SECRET: Your Dodo Payments Webhook Secret (required for Webhook handler).
277
277
 
278
278
  Example .env file:
279
279
 
280
280
  DODO_PAYMENTS_API_KEY=your-api-key
281
- DODO_WEBHOOK_SECRET=your-webhook-secret
281
+ DODO_PAYMENTS_WEBHOOK_SECRET=your-webhook-secret
282
282
 
283
283
  Usage in your code:
284
284
 
285
285
  bearerToken: process.env.DODO_PAYMENTS_API_KEY!
286
- webhookKey: process.env.DODO_WEBHOOK_SECRET!
286
+ webhookKey: process.env.DODO_PAYMENTS_WEBHOOK_SECRET!
287
287
 
288
288
  Important: Never commit sensitive environment variables directly into your version control. Use environment variables for all sensitive information.
289
289
 
@@ -1 +1 @@
1
- {"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/checkout/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAEL,qBAAqB,EAGtB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,QAAQ,GAAI,QAAQ,qBAAqB,MA4D5C,KAAK,WAAW,mCAMzB,CAAC"}
1
+ {"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/checkout/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAEL,qBAAqB,EAGtB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,QAAQ,GAAI,QAAQ,qBAAqB,MA4D5C,KAAK,WAAW,mCAMzB,CAAC"}