@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/{chunk-D7DPAKI2.js → chunk-RODMYISN.js} +12 -1
- package/dist/chunk-RODMYISN.js.map +1 -0
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -3
- package/dist/index.d.ts +35 -3
- package/dist/index.js +1 -1
- package/dist/internal.cjs +11 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-D7DPAKI2.js.map +0 -1
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 });
|