@delopay/sdk 0.76.0 → 0.77.0

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/dist/index.cjs CHANGED
@@ -1269,6 +1269,17 @@ var Payments = class {
1269
1269
  * { headers: { 'Idempotency-Key': 'order_1001' } },
1270
1270
  * );
1271
1271
  * ```
1272
+ *
1273
+ * @example Send `test_mode` to pick the environment per payment, so a staging
1274
+ * deploy cannot charge real cards and a forgotten processor toggle cannot
1275
+ * swallow production traffic:
1276
+ * ```typescript
1277
+ * const payment = await delopay.payments.create({
1278
+ * amount: 5000,
1279
+ * currency: 'EUR',
1280
+ * test_mode: process.env.NODE_ENV !== 'production',
1281
+ * });
1282
+ * ```
1272
1283
  */
1273
1284
  async create(params, options) {
1274
1285
  return this.request("POST", "/payments", { body: params, ...options });