@delopay/sdk 0.157.0 → 0.158.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-JZZZG5VD.js → chunk-4YLUV3YJ.js} +22 -1
- package/dist/{chunk-JZZZG5VD.js.map → chunk-4YLUV3YJ.js.map} +1 -1
- package/dist/index.cjs +21 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -1
- package/dist/index.d.ts +60 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +21 -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
|
@@ -8270,6 +8270,27 @@ var CheckoutSession = class {
|
|
|
8270
8270
|
headers: this.bearerHeaders(options?.headers)
|
|
8271
8271
|
});
|
|
8272
8272
|
}
|
|
8273
|
+
/**
|
|
8274
|
+
* Confirm the Stripe card form's PaymentIntent through the router, for a
|
|
8275
|
+
* checkout payload with `card_connector_server_confirm: true`. Stripe refuses
|
|
8276
|
+
* a Stripe.js confirm of such an intent.
|
|
8277
|
+
*
|
|
8278
|
+
* Send the ConfirmationToken the Payment Element (or Express Checkout
|
|
8279
|
+
* Element) produced. The router judges the card's issuing country and the
|
|
8280
|
+
* buyer's IP country against the shop's sell-to restrictions before Stripe
|
|
8281
|
+
* authorises, and a refusal throws a `DelopayError` with code `DE_10`. When
|
|
8282
|
+
* the answer's `status` is `requires_action`, run `stripe.handleNextAction`
|
|
8283
|
+
* with its `client_secret`, then call this again without a token to finalize.
|
|
8284
|
+
*
|
|
8285
|
+
* `POST /payment-link/{merchantId}/{paymentId}/stripe-confirm`
|
|
8286
|
+
*/
|
|
8287
|
+
async confirmStripeCardForm(params, options) {
|
|
8288
|
+
return this.client.request("POST", `${this.linkBase}/stripe-confirm`, {
|
|
8289
|
+
body: params,
|
|
8290
|
+
...options,
|
|
8291
|
+
headers: this.bearerHeaders(options?.headers)
|
|
8292
|
+
});
|
|
8293
|
+
}
|
|
8273
8294
|
/**
|
|
8274
8295
|
* The payment's current state — status polling for redirect/popup rails.
|
|
8275
8296
|
*
|
|
@@ -8978,4 +8999,4 @@ export {
|
|
|
8978
8999
|
decodeNativePanes,
|
|
8979
9000
|
encodeNativePanes
|
|
8980
9001
|
};
|
|
8981
|
-
//# sourceMappingURL=chunk-
|
|
9002
|
+
//# sourceMappingURL=chunk-4YLUV3YJ.js.map
|