@delopay/sdk 0.121.0 → 0.122.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.
@@ -6787,6 +6787,28 @@ var CheckoutSession = class {
6787
6787
  headers: this.pkHeaders(options?.headers)
6788
6788
  });
6789
6789
  }
6790
+ /**
6791
+ * Abandon the attempt the buyer left open on a connector's hosted page
6792
+ * (the payment sits in `requires_customer_action`) and open a fresh attempt
6793
+ * awaiting a payment method, so the same payment can be confirmed again
6794
+ * with another method or connector. Nothing has been authorised on the
6795
+ * abandoned attempt; it is voided locally and kept in the attempt history.
6796
+ * Idempotent: a payment already in `requires_payment_method` comes back
6797
+ * unchanged with `abandoned_attempt_id: null`.
6798
+ *
6799
+ * `POST /payments/{paymentId}/abandon-attempt` (publishable key + client secret)
6800
+ */
6801
+ async abandonAttempt(options) {
6802
+ return this.client.request(
6803
+ "POST",
6804
+ `/payments/${encodeURIComponent(this.paymentId)}/abandon-attempt`,
6805
+ {
6806
+ body: { client_secret: this.requireClientSecret() },
6807
+ ...options,
6808
+ headers: this.pkHeaders(options?.headers)
6809
+ }
6810
+ );
6811
+ }
6790
6812
  /**
6791
6813
  * Payment methods available for this payment.
6792
6814
  *
@@ -7314,4 +7336,4 @@ export {
7314
7336
  decodeNativePanes,
7315
7337
  encodeNativePanes
7316
7338
  };
7317
- //# sourceMappingURL=chunk-U4PY43DZ.js.map
7339
+ //# sourceMappingURL=chunk-TNZHQGX7.js.map