@economist/web-apple-pay 1.9.0 → 1.9.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.
package/README.md CHANGED
@@ -132,7 +132,7 @@ Consumers should listen for this event and continue payment orchestration.
132
132
  Check:
133
133
 
134
134
  - `configureApplePay(...)` was called before rendering (with a valid `merchantId` and `walletApiBaseUrl`)
135
- - device/browser supports Apple Pay checks (Safari/Apple device logic)
135
+ - device/browser supports Apple Pay (Safari on Apple device required)
136
136
  - query string/feature flag gating for your page is satisfied
137
137
  - offer variant is not excluded (`bundle`, `insider_print`)
138
138
 
package/dist/index.js CHANGED
@@ -1944,7 +1944,7 @@ var ApplePayEntryPoint = /* @__PURE__ */ ((ApplePayEntryPoint3) => {
1944
1944
  ApplePayEntryPoint3["DUAL_OFFER_BANNER"] = "dual_offer_banner";
1945
1945
  return ApplePayEntryPoint3;
1946
1946
  })(ApplePayEntryPoint || {});
1947
- var APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-feature-flag-placeholder";
1947
+ var APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-checkout-on-banners";
1948
1948
  var APPLE_PAY_EXPRESS_VARIANTS = {
1949
1949
  CONTROL: "control",
1950
1950
  TREATMENT: "treatment"
@@ -1933,7 +1933,7 @@ var getSupportedBillingCountries = (offerCountry, offerVariant) => {
1933
1933
  };
1934
1934
 
1935
1935
  // src/constants.ts
1936
- var APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-feature-flag-placeholder";
1936
+ var APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-checkout-on-banners";
1937
1937
  var APPLE_PAY_EXPRESS_VARIANTS = {
1938
1938
  CONTROL: "control",
1939
1939
  TREATMENT: "treatment"
@@ -1941,7 +1941,7 @@ var getSupportedBillingCountries = (offerCountry, offerVariant) => {
1941
1941
  };
1942
1942
 
1943
1943
  // src/constants.ts
1944
- var APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-feature-flag-placeholder";
1944
+ var APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-checkout-on-banners";
1945
1945
  var APPLE_PAY_EXPRESS_VARIANTS = {
1946
1946
  CONTROL: "control",
1947
1947
  TREATMENT: "treatment"
@@ -1933,7 +1933,7 @@ var getSupportedBillingCountries = (offerCountry, offerVariant) => {
1933
1933
  };
1934
1934
 
1935
1935
  // src/constants.ts
1936
- var APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-feature-flag-placeholder";
1936
+ var APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-checkout-on-banners";
1937
1937
  var APPLE_PAY_EXPRESS_VARIANTS = {
1938
1938
  CONTROL: "control",
1939
1939
  TREATMENT: "treatment"
@@ -4,16 +4,18 @@ export declare enum ApplePayEntryPoint {
4
4
  DUAL_OFFER_BANNER = "dual_offer_banner"
5
5
  }
6
6
  /**
7
- * Amplitude experiment key for Apple Pay Express Checkout.
7
+ * Amplitude experiment key for Apple Pay Express Checkout on banners.
8
8
  * This package reads the variant for this key internally via
9
9
  * `window.experimentIntegration.getVariant()` — set up by the host page
10
10
  * before `createIfEnabled` is called. Gates all entry points (paywall, regwall, banner).
11
11
  *
12
- * TODO: Replace with the confirmed Amplitude experiment key once available.
13
- * The current value is a placeholder and must be verified against the
14
- * Amplitude experiment dashboard before going to production.
12
+ * Fail-closed: missing integration, missing key, `control`, or Amplitude fetch
13
+ * failure on the host → button is hidden (unless QA URL param is present).
14
+ *
15
+ * Must match the Feature experiment key in Amplitude and host app constants
16
+ * (Engagement / Insider / Podcasts).
15
17
  */
16
- export declare const APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-feature-flag-placeholder";
18
+ export declare const APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-checkout-on-banners";
17
19
  /**
18
20
  * Amplitude variant values for the Apple Pay Express Checkout experiment.
19
21
  * CONTROL → button hidden (baseline)
@@ -5,7 +5,7 @@ var ApplePayEntryPoint = /* @__PURE__ */ ((ApplePayEntryPoint2) => {
5
5
  ApplePayEntryPoint2["DUAL_OFFER_BANNER"] = "dual_offer_banner";
6
6
  return ApplePayEntryPoint2;
7
7
  })(ApplePayEntryPoint || {});
8
- var APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-feature-flag-placeholder";
8
+ var APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-checkout-on-banners";
9
9
  var APPLE_PAY_EXPRESS_VARIANTS = {
10
10
  CONTROL: "control",
11
11
  TREATMENT: "treatment"
package/dist/src/index.js CHANGED
@@ -1944,7 +1944,7 @@ var ApplePayEntryPoint = /* @__PURE__ */ ((ApplePayEntryPoint3) => {
1944
1944
  ApplePayEntryPoint3["DUAL_OFFER_BANNER"] = "dual_offer_banner";
1945
1945
  return ApplePayEntryPoint3;
1946
1946
  })(ApplePayEntryPoint || {});
1947
- var APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-feature-flag-placeholder";
1947
+ var APPLE_PAY_EXPRESS_EXPERIMENT_KEY = "apple-pay-express-checkout-on-banners";
1948
1948
  var APPLE_PAY_EXPRESS_VARIANTS = {
1949
1949
  CONTROL: "control",
1950
1950
  TREATMENT: "treatment"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@economist/web-apple-pay",
3
3
  "description": "Web component package for Apple Pay checkout UI",
4
- "version": "1.9.0",
4
+ "version": "1.9.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",