@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.
@@ -1169,6 +1169,17 @@ var Payments = class {
1169
1169
  * { headers: { 'Idempotency-Key': 'order_1001' } },
1170
1170
  * );
1171
1171
  * ```
1172
+ *
1173
+ * @example Send `test_mode` to pick the environment per payment, so a staging
1174
+ * deploy cannot charge real cards and a forgotten processor toggle cannot
1175
+ * swallow production traffic:
1176
+ * ```typescript
1177
+ * const payment = await delopay.payments.create({
1178
+ * amount: 5000,
1179
+ * currency: 'EUR',
1180
+ * test_mode: process.env.NODE_ENV !== 'production',
1181
+ * });
1182
+ * ```
1172
1183
  */
1173
1184
  async create(params, options) {
1174
1185
  return this.request("POST", "/payments", { body: params, ...options });
@@ -4749,4 +4760,4 @@ export {
4749
4760
  applyBrandingVariables,
4750
4761
  shadowFor
4751
4762
  };
4752
- //# sourceMappingURL=chunk-D7DPAKI2.js.map
4763
+ //# sourceMappingURL=chunk-RODMYISN.js.map