@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.
- package/dist/{chunk-U4PY43DZ.js → chunk-TNZHQGX7.js} +23 -1
- package/dist/{chunk-U4PY43DZ.js.map → chunk-TNZHQGX7.js.map} +1 -1
- package/dist/index.cjs +22 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +22 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6942,6 +6942,28 @@ var CheckoutSession = class {
|
|
|
6942
6942
|
headers: this.pkHeaders(options?.headers)
|
|
6943
6943
|
});
|
|
6944
6944
|
}
|
|
6945
|
+
/**
|
|
6946
|
+
* Abandon the attempt the buyer left open on a connector's hosted page
|
|
6947
|
+
* (the payment sits in `requires_customer_action`) and open a fresh attempt
|
|
6948
|
+
* awaiting a payment method, so the same payment can be confirmed again
|
|
6949
|
+
* with another method or connector. Nothing has been authorised on the
|
|
6950
|
+
* abandoned attempt; it is voided locally and kept in the attempt history.
|
|
6951
|
+
* Idempotent: a payment already in `requires_payment_method` comes back
|
|
6952
|
+
* unchanged with `abandoned_attempt_id: null`.
|
|
6953
|
+
*
|
|
6954
|
+
* `POST /payments/{paymentId}/abandon-attempt` (publishable key + client secret)
|
|
6955
|
+
*/
|
|
6956
|
+
async abandonAttempt(options) {
|
|
6957
|
+
return this.client.request(
|
|
6958
|
+
"POST",
|
|
6959
|
+
`/payments/${encodeURIComponent(this.paymentId)}/abandon-attempt`,
|
|
6960
|
+
{
|
|
6961
|
+
body: { client_secret: this.requireClientSecret() },
|
|
6962
|
+
...options,
|
|
6963
|
+
headers: this.pkHeaders(options?.headers)
|
|
6964
|
+
}
|
|
6965
|
+
);
|
|
6966
|
+
}
|
|
6945
6967
|
/**
|
|
6946
6968
|
* Payment methods available for this payment.
|
|
6947
6969
|
*
|