@delopay/sdk 0.158.0 → 0.159.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-4YLUV3YJ.js → chunk-NQJP5VBB.js} +45 -7
- package/dist/{chunk-4YLUV3YJ.js.map → chunk-NQJP5VBB.js.map} +1 -1
- package/dist/index.cjs +44 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +107 -14
- package/dist/index.d.ts +107 -14
- package/dist/index.js +1 -1
- package/dist/internal.cjs +109 -6
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +77 -2
- package/dist/internal.d.ts +77 -2
- package/dist/internal.js +66 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8494,12 +8494,29 @@ var CheckoutSession = class {
|
|
|
8494
8494
|
* checkout payload with `card_connector_server_confirm: true`. Stripe refuses
|
|
8495
8495
|
* a Stripe.js confirm of such an intent.
|
|
8496
8496
|
*
|
|
8497
|
-
* Send the
|
|
8498
|
-
* Element
|
|
8499
|
-
*
|
|
8500
|
-
*
|
|
8501
|
-
*
|
|
8502
|
-
*
|
|
8497
|
+
* Send the PaymentMethod `stripe.createPaymentMethod` produced from the
|
|
8498
|
+
* Payment Element (or Express Checkout Element), which needs
|
|
8499
|
+
* `paymentMethodCreation: 'manual'` on the Elements instance. A
|
|
8500
|
+
* ConfirmationToken is refused with `400`: Stripe will not confirm such an
|
|
8501
|
+
* intent with one.
|
|
8502
|
+
*
|
|
8503
|
+
* The router judges the card's issuing country and the buyer's IP country
|
|
8504
|
+
* against the shop's sell-to restrictions before Stripe authorises, and a
|
|
8505
|
+
* refusal throws a `DelopayError` with code `DE_10`. When the answer's
|
|
8506
|
+
* `status` is `requires_action`, run `stripe.handleNextAction` with its
|
|
8507
|
+
* `client_secret` — safe, because the intent is `confirmation_method=manual`
|
|
8508
|
+
* and that secret confirms nothing without the secret key — then call this
|
|
8509
|
+
* again without a payment method to finalize.
|
|
8510
|
+
*
|
|
8511
|
+
* A PaymentMethod rules out what `stripe.createPaymentMethod` cannot
|
|
8512
|
+
* produce: Stripe names Amazon Pay and Klarna in the Express Checkout
|
|
8513
|
+
* Element, which need `stripe.createConfirmationToken` instead. Neither can
|
|
8514
|
+
* be paid through this route, so a caller must not offer them on a
|
|
8515
|
+
* server-confirmed intent — mount the Express Checkout Element with those
|
|
8516
|
+
* methods `'never'`, as DeloPay's own checkout does. The router drops only
|
|
8517
|
+
* the methods its server-side confirm cannot finish at all (BLIK and ACSS
|
|
8518
|
+
* pre-authorized debits) from the card form's mount, so the rest of the
|
|
8519
|
+
* selection still reaches the element and is the caller's to constrain.
|
|
8503
8520
|
*
|
|
8504
8521
|
* `POST /payment-link/{merchantId}/{paymentId}/stripe-confirm`
|
|
8505
8522
|
*/
|
|
@@ -8510,6 +8527,27 @@ var CheckoutSession = class {
|
|
|
8510
8527
|
headers: this.bearerHeaders(options?.headers)
|
|
8511
8528
|
});
|
|
8512
8529
|
}
|
|
8530
|
+
/**
|
|
8531
|
+
* Ask whether NomuPay's COPYandPAY widget may submit a card, from the
|
|
8532
|
+
* form's pre-submit hook.
|
|
8533
|
+
*
|
|
8534
|
+
* Only for a checkout stamped `NomupayOppwaCheckoutData.submit_grant`: the
|
|
8535
|
+
* card form sits beside always-shown wallet buttons of another account, and
|
|
8536
|
+
* this answer closes those buttons before it allows the card. `authorized`
|
|
8537
|
+
* is `false` when the payment no longer waits for a payment method, or when
|
|
8538
|
+
* this is not the attempt's live card-form checkout; when a wallet beside it
|
|
8539
|
+
* is already being paid, the route answers an error instead. Submit the
|
|
8540
|
+
* widget only on `true`.
|
|
8541
|
+
*
|
|
8542
|
+
* `POST /payment-link/{merchantId}/{paymentId}/nomupay-card-authorization`
|
|
8543
|
+
*/
|
|
8544
|
+
async nomupayCardAuthorization(params, options) {
|
|
8545
|
+
return this.client.request("POST", `${this.linkBase}/nomupay-card-authorization`, {
|
|
8546
|
+
body: params,
|
|
8547
|
+
...options,
|
|
8548
|
+
headers: this.bearerHeaders(options?.headers)
|
|
8549
|
+
});
|
|
8550
|
+
}
|
|
8513
8551
|
/**
|
|
8514
8552
|
* The payment's current state — status polling for redirect/popup rails.
|
|
8515
8553
|
*
|