@appfunnel-dev/sdk 2.0.1 → 2.1.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.
@@ -1,4 +1,4 @@
1
- import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-C4tFUEdF.cjs';
1
+ import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-BzP__Mxe.cjs';
2
2
  import 'react';
3
3
  import '@stripe/stripe-js';
4
4
  import '@paddle/paddle-js';
@@ -1,4 +1,4 @@
1
- import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-B1K6ozwk.js';
1
+ import { C as CheckoutDriverContext, a as CheckoutDriver } from './checkout-BPYU4wXF.js';
2
2
  import 'react';
3
3
  import '@stripe/stripe-js';
4
4
  import '@paddle/paddle-js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkE7JXWUNV_cjs = require('./chunk-E7JXWUNV.cjs');
3
+ var chunkMBSXEIXT_cjs = require('./chunk-MBSXEIXT.cjs');
4
4
  require('./chunk-6KTFVZA4.cjs');
5
5
  require('./chunk-JL42MNGM.cjs');
6
6
  require('./chunk-5HUJEI26.cjs');
@@ -2297,7 +2297,7 @@ function ConfirmForm({
2297
2297
  setSubmitting(false);
2298
2298
  }
2299
2299
  };
2300
- chunkE7JXWUNV_cjs.ensureCheckoutButtonStyles();
2300
+ chunkMBSXEIXT_cjs.ensureCheckoutButtonStyles();
2301
2301
  const submit = React.createElement(
2302
2302
  "button",
2303
2303
  {
@@ -2360,6 +2360,22 @@ function ConfirmForm({
2360
2360
  "div",
2361
2361
  { "data-checkout-express": "" },
2362
2362
  React.createElement(rsj.ExpressCheckoutElement, {
2363
+ // The author's `options.express` is Stripe's own options, passed through — layout, button
2364
+ // height/theme/type. Wallets default to Apple Pay and Google Pay only, merged per wallet: left
2365
+ // unset, Stripe would also offer whatever else the account has enabled (Link, PayPal, Amazon
2366
+ // Pay, Klarna) as buttons here.
2367
+ options: {
2368
+ ...methods?.express,
2369
+ paymentMethods: {
2370
+ applePay: "always",
2371
+ googlePay: "always",
2372
+ link: "never",
2373
+ paypal: "never",
2374
+ amazonPay: "never",
2375
+ klarna: "never",
2376
+ ...methods?.express?.paymentMethods
2377
+ }
2378
+ },
2363
2379
  // The wallet sheet IS the collection UI — Stripe fires onConfirm once the buyer authorizes,
2364
2380
  // and we confirm the intent right after.
2365
2381
  onConfirm: () => void confirm(),