@delopay/sdk 0.128.0 → 0.129.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.
@@ -7033,6 +7033,30 @@ var CheckoutSession = class {
7033
7033
  headers: this.pkHeaders(options?.headers)
7034
7034
  });
7035
7035
  }
7036
+ /**
7037
+ * Mint the processor-side session a browser SDK completes — the PayPal
7038
+ * order that PayPal's buttons or Card Fields attach the buyer's choice to.
7039
+ * The client secret is attached automatically.
7040
+ *
7041
+ * For PayPal Card Fields (be#1387) pass `payment_method: 'card'` and the
7042
+ * `merchant_connector_id` the checkout was rendered with; the order id comes
7043
+ * back in `next_action.next_action_data.order_id` and is what the SDK's
7044
+ * `createOrder` returns. The confirm that captures it sends the same order
7045
+ * and account as `payment_method_data.card_reference`.
7046
+ *
7047
+ * `POST /payments/{paymentId}/post-session-tokens` (publishable key)
7048
+ */
7049
+ async postSessionTokens(params, options) {
7050
+ return this.client.request(
7051
+ "POST",
7052
+ `/payments/${encodeURIComponent(this.paymentId)}/post-session-tokens`,
7053
+ {
7054
+ body: { ...params, client_secret: this.requireClientSecret() },
7055
+ ...options,
7056
+ headers: this.pkHeaders(options?.headers)
7057
+ }
7058
+ );
7059
+ }
7036
7060
  /**
7037
7061
  * Abandon the attempt the buyer left open on a connector's hosted page
7038
7062
  * (the payment sits in `requires_customer_action`) and open a fresh attempt
@@ -7601,4 +7625,4 @@ export {
7601
7625
  decodeNativePanes,
7602
7626
  encodeNativePanes
7603
7627
  };
7604
- //# sourceMappingURL=chunk-PKPIWKB2.js.map
7628
+ //# sourceMappingURL=chunk-IWGBRSUJ.js.map