@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.
package/dist/index.cjs CHANGED
@@ -7207,6 +7207,30 @@ var CheckoutSession = class {
7207
7207
  headers: this.pkHeaders(options?.headers)
7208
7208
  });
7209
7209
  }
7210
+ /**
7211
+ * Mint the processor-side session a browser SDK completes — the PayPal
7212
+ * order that PayPal's buttons or Card Fields attach the buyer's choice to.
7213
+ * The client secret is attached automatically.
7214
+ *
7215
+ * For PayPal Card Fields (be#1387) pass `payment_method: 'card'` and the
7216
+ * `merchant_connector_id` the checkout was rendered with; the order id comes
7217
+ * back in `next_action.next_action_data.order_id` and is what the SDK's
7218
+ * `createOrder` returns. The confirm that captures it sends the same order
7219
+ * and account as `payment_method_data.card_reference`.
7220
+ *
7221
+ * `POST /payments/{paymentId}/post-session-tokens` (publishable key)
7222
+ */
7223
+ async postSessionTokens(params, options) {
7224
+ return this.client.request(
7225
+ "POST",
7226
+ `/payments/${encodeURIComponent(this.paymentId)}/post-session-tokens`,
7227
+ {
7228
+ body: { ...params, client_secret: this.requireClientSecret() },
7229
+ ...options,
7230
+ headers: this.pkHeaders(options?.headers)
7231
+ }
7232
+ );
7233
+ }
7210
7234
  /**
7211
7235
  * Abandon the attempt the buyer left open on a connector's hosted page
7212
7236
  * (the payment sits in `requires_customer_action`) and open a fresh attempt