@revenuecat/purchases-js 1.52.3 → 1.53.1

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.
@@ -1016,6 +1016,23 @@ export declare interface PresentPaywallParams {
1016
1016
  * If passed the checkout flow will not ask for it to the customer.
1017
1017
  */
1018
1018
  readonly customerEmail?: string;
1019
+ /**
1020
+ * The purchase metadata to be passed to the backend when a purchase is started
1021
+ * from the paywall.
1022
+ * Any information provided here will be propagated to the payment gateway and
1023
+ * to the RC transaction as metadata.
1024
+ */
1025
+ readonly metadata?: PurchaseMetadata;
1026
+ /**
1027
+ * Overrides the branding appearance for the purchase started from this
1028
+ * paywall. Only the provided values are overridden. These values take
1029
+ * precedence over the override passed to `Purchases.configure()`.
1030
+ *
1031
+ * For Stripe Checkout, this customizes the supported mobile wallet experience.
1032
+ * The Stripe-hosted fallback opened through "Pay another way" remains light and
1033
+ * cannot currently be customized.
1034
+ */
1035
+ readonly brandingAppearanceOverride?: Partial<BrandingAppearance>;
1019
1036
  /**
1020
1037
  * @experimental
1021
1038
  * If set to true, the Web Billing checkout shown from the paywall
@@ -1419,7 +1436,16 @@ export declare interface PurchaseParams {
1419
1436
  * in sync with the checkout.
1420
1437
  */
1421
1438
  onDiscountCodeChanged?: (discountCode: string | null) => void;
1422
- /* Excluded from this release type: brandingAppearanceOverride */
1439
+ /**
1440
+ * Overrides the Dashboard branding appearance for this purchase.
1441
+ * Only the provided values are overridden; all other values keep their
1442
+ * Dashboard configuration.
1443
+ *
1444
+ * For Stripe Checkout, this customizes the supported mobile wallet experience.
1445
+ * The Stripe-hosted fallback opened through "Pay another way" remains light and
1446
+ * cannot currently be customized.
1447
+ */
1448
+ brandingAppearanceOverride?: Partial<BrandingAppearance>;
1423
1449
  /* Excluded from this release type: labelsOverride */
1424
1450
  /**
1425
1451
  * Link to the terms and conditions that should be shown in the checkout footer.
@@ -1468,6 +1494,7 @@ export declare class Purchases {
1468
1494
  /* Excluded from this release type: _loadingResourcesPromise */
1469
1495
  /* Excluded from this release type: _flags */
1470
1496
  /* Excluded from this release type: _subscriberToken */
1497
+ /* Excluded from this release type: _brandingAppearanceOverride */
1471
1498
  /* Excluded from this release type: _context */
1472
1499
  /* Excluded from this release type: backend */
1473
1500
  /* Excluded from this release type: purchaseOperationHelper */
@@ -1765,6 +1792,18 @@ export declare class Purchases {
1765
1792
  * Advanced functionality configuration {@link FlagsConfig}.
1766
1793
  */
1767
1794
  flags?: FlagsConfig;
1795
+ /**
1796
+ * Overrides the Dashboard branding appearance for purchases created by this
1797
+ * instance, including purchases started through {@link Purchases.presentPaywall}.
1798
+ * Only the provided values are overridden. A value passed directly to
1799
+ * {@link PurchaseParams.brandingAppearanceOverride} takes precedence for that
1800
+ * purchase.
1801
+ *
1802
+ * For Stripe Checkout, this customizes the supported mobile wallet experience.
1803
+ * The Stripe-hosted fallback opened through "Pay another way" remains light and
1804
+ * cannot currently be customized.
1805
+ */
1806
+ brandingAppearanceOverride?: Partial<BrandingAppearance>;
1768
1807
  /* Excluded from this release type: subscriberToken */
1769
1808
  /* Excluded from this release type: context */
1770
1809
  /* Excluded from this release type: trace_id */