@flopay/shared 1.20.12 → 1.20.14

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/README.md CHANGED
@@ -270,6 +270,8 @@ try {
270
270
  | `MERCHANT_AUTH_REQUIRED_CODE` | `'merchant_auth_required'`: the code the billing API returns when it did not accept a one-click create's merchant authentication and created a Full checkout instead |
271
271
  | `BILLING_API_URL_PRODUCTION` | `'https://api.flopay.com'` |
272
272
  | `BILLING_API_URL_STAGING` | `'https://api.stage.flopay.com'` |
273
+ | `SECURE_API_URL_PRODUCTION` | `'https://secure.flopay.com'`: the API origin of the SDK 2.0 hosted runtime served from any origin other than stage. 1.x does not use it. |
274
+ | `SECURE_API_URL_STAGING` | `'https://secure.stage.flopay.com'`: the API origin of the SDK 2.0 hosted runtime served from the stage runtime origin. 1.x does not use it. |
273
275
  | `DEFAULT_API_BASE_URL` | Alias of the staging billing API, `'https://api.stage.flopay.com'`. Prefer `resolveBillingApiUrl()`. |
274
276
  | `DEFAULT_API_VERSION` | `'2024-01-01'` |
275
277
  | `DEFAULT_APPEARANCE` | Default theme (primary `#4A49FF`, white background, Poppins font) |
@@ -1,6 +1,6 @@
1
1
  import type { AVSFieldConfig, ButtonsLayoutStyles, ButtonsLayoutTheme, CountryOption, CurrencyInfo, FloPayAppearance, ThemeBundle, ThemeBundleId, ThemeId } from './types.js';
2
2
  /** Current SDK version. */
3
- export declare const SDK_VERSION = "1.20.12";
3
+ export declare const SDK_VERSION = "1.20.14";
4
4
  /**
5
5
  * HTTP header the SDK sends on checkout-session create/read requests so the
6
6
  * backend can observe compatibility. Version 1.4.9 is the first release that
@@ -48,6 +48,18 @@ export declare const CHECKOUT_PROCESSING_TIMEOUT_MESSAGE = "We\u2019re still con
48
48
  export declare const BILLING_API_URL_STAGING = "https://api.stage.flopay.com";
49
49
  /** Billing API URL for production environment. */
50
50
  export declare const BILLING_API_URL_PRODUCTION = "https://api.flopay.com";
51
+ /**
52
+ * API origin of the SDK 2.0 hosted checkout runtime served from the stage runtime origin: the
53
+ * dedicated secure checkout origin (sdk#612). Only the 2.x runtime uses it; 1.x keeps
54
+ * `BILLING_API_URL_STAGING`. Requests are `${origin}/v1/...`, so there is no trailing slash.
55
+ */
56
+ export declare const SECURE_API_URL_STAGING = "https://secure.stage.flopay.com";
57
+ /**
58
+ * API origin of the SDK 2.0 hosted checkout runtime served from any origin other than stage:
59
+ * the dedicated secure checkout origin (sdk#612). Only the 2.x runtime uses it; 1.x keeps
60
+ * `BILLING_API_URL_PRODUCTION`.
61
+ */
62
+ export declare const SECURE_API_URL_PRODUCTION = "https://secure.flopay.com";
51
63
  /**
52
64
  * Default FloPay API base URL (used by @flopay/node). Alias for staging.
53
65
  *