@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
package/dist/index.cjs
CHANGED
|
@@ -8489,6 +8489,27 @@ var CheckoutSession = class {
|
|
|
8489
8489
|
headers: this.bearerHeaders(options?.headers)
|
|
8490
8490
|
});
|
|
8491
8491
|
}
|
|
8492
|
+
/**
|
|
8493
|
+
* Confirm the Stripe card form's PaymentIntent through the router, for a
|
|
8494
|
+
* checkout payload with `card_connector_server_confirm: true`. Stripe refuses
|
|
8495
|
+
* a Stripe.js confirm of such an intent.
|
|
8496
|
+
*
|
|
8497
|
+
* Send the ConfirmationToken the Payment Element (or Express Checkout
|
|
8498
|
+
* Element) produced. The router judges the card's issuing country and the
|
|
8499
|
+
* buyer's IP country against the shop's sell-to restrictions before Stripe
|
|
8500
|
+
* authorises, and a refusal throws a `DelopayError` with code `DE_10`. When
|
|
8501
|
+
* the answer's `status` is `requires_action`, run `stripe.handleNextAction`
|
|
8502
|
+
* with its `client_secret`, then call this again without a token to finalize.
|
|
8503
|
+
*
|
|
8504
|
+
* `POST /payment-link/{merchantId}/{paymentId}/stripe-confirm`
|
|
8505
|
+
*/
|
|
8506
|
+
async confirmStripeCardForm(params, options) {
|
|
8507
|
+
return this.client.request("POST", `${this.linkBase}/stripe-confirm`, {
|
|
8508
|
+
body: params,
|
|
8509
|
+
...options,
|
|
8510
|
+
headers: this.bearerHeaders(options?.headers)
|
|
8511
|
+
});
|
|
8512
|
+
}
|
|
8492
8513
|
/**
|
|
8493
8514
|
* The payment's current state — status polling for redirect/popup rails.
|
|
8494
8515
|
*
|