@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.
@@ -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-JZZZG5VD.js.map
9002
+ //# sourceMappingURL=chunk-4YLUV3YJ.js.map