@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 +1 -1
- package/dist/index.js +1 -1
- package/dist/src/apple-pay-button.js +1 -1
- package/dist/src/apple-pay-button.stories.js +1 -1
- package/dist/src/apple-pay-modal.stories.js +1 -1
- package/dist/src/constants.d.ts +7 -5
- package/dist/src/constants.js +1 -1
- package/dist/src/index.js +1 -1
- package/package.json +1 -1
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
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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"
|
package/dist/src/constants.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
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-
|
|
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)
|
package/dist/src/constants.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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"
|