@paypal/checkout-components 5.0.228 → 5.0.229
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/zoid/buttons/component.jsx +2 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## <small>5.0.229 (2022-06-23)</small>
|
|
2
|
+
|
|
3
|
+
* chore: remove Inline XO experiment (#1956) ([edc220d](https://github.com/paypal/paypal-checkout-components/commit/edc220d)), closes [#1956](https://github.com/paypal/paypal-checkout-components/issues/1956)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
1
7
|
## <small>5.0.228 (2022-06-22)</small>
|
|
2
8
|
|
|
3
9
|
* Inline XO: Experiment (#1955) ([86f0b47](https://github.com/paypal/paypal-checkout-components/commit/86f0b47)), closes [#1955](https://github.com/paypal/paypal-checkout-components/issues/1955)
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import { getLogger, getLocale, getClientID, getEnv, getIntent, getCommit, getVau
|
|
|
6
6
|
getMerchantID, getPayPalDomainRegex, getCurrency, getSDKMeta, getCSPNonce, getBuyerCountry, getClientAccessToken, getPlatform,
|
|
7
7
|
getPartnerAttributionID, getCorrelationID, getEnableThreeDomainSecure, getDebug, getComponents, getStageHost, getAPIStageHost, getPayPalDomain,
|
|
8
8
|
getUserIDToken, getClientMetadataID, getAmount, getEnableFunding, getStorageID, getUserExperienceFlow, getMerchantRequestedPopupsDisabled,
|
|
9
|
-
|
|
9
|
+
getVersion } from '@paypal/sdk-client/src';
|
|
10
10
|
import { rememberFunding, getRememberedFunding, getRefinedFundingEligibility } from '@paypal/funding-components/src';
|
|
11
11
|
import { ZalgoPromise } from '@krakenjs/zalgo-promise/src';
|
|
12
12
|
import { create, EVENT, type ZoidComponent } from '@krakenjs/zoid/src';
|
|
@@ -264,19 +264,11 @@ export const getButtonsComponent : () => ButtonsComponent = memoize(() => {
|
|
|
264
264
|
onShippingAddressChange: {
|
|
265
265
|
type: 'function',
|
|
266
266
|
required: false,
|
|
267
|
-
queryParam: true,
|
|
268
|
-
queryValue: ({ value }) => {
|
|
269
|
-
return value ? QUERY_BOOL.TRUE : QUERY_BOOL.FALSE;
|
|
270
|
-
}
|
|
271
267
|
},
|
|
272
268
|
|
|
273
269
|
onShippingOptionsChange: {
|
|
274
270
|
type: 'function',
|
|
275
271
|
required: false,
|
|
276
|
-
queryParam: true,
|
|
277
|
-
queryValue: ({ value }) => {
|
|
278
|
-
return value ? QUERY_BOOL.TRUE : QUERY_BOOL.FALSE;
|
|
279
|
-
}
|
|
280
272
|
},
|
|
281
273
|
|
|
282
274
|
onCancel: {
|
|
@@ -732,21 +724,7 @@ export const getButtonsComponent : () => ButtonsComponent = memoize(() => {
|
|
|
732
724
|
[ FPTI_KEY.TRANSITION ]: `inline_xo_eligibility_${ String(eligible) }`
|
|
733
725
|
}).flush();
|
|
734
726
|
|
|
735
|
-
|
|
736
|
-
const inlinexoExperiment = createExperiment('inlinexo', 50, logger);
|
|
737
|
-
const treatment = inlinexoExperiment.getTreatment();
|
|
738
|
-
|
|
739
|
-
logger
|
|
740
|
-
.info(treatment)
|
|
741
|
-
.track({
|
|
742
|
-
[FPTI_KEY.EXPERIMENT_NAME]: 'inlinexo',
|
|
743
|
-
[FPTI_KEY.TREATMENT_NAME]: treatment
|
|
744
|
-
}).flush();
|
|
745
|
-
|
|
746
|
-
return inlinexoExperiment.isEnabled() ? EXPERIENCE.INLINE : '';
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
return '';
|
|
727
|
+
return eligible ? EXPERIENCE.INLINE : '';
|
|
750
728
|
}
|
|
751
729
|
},
|
|
752
730
|
|