File tree Expand file tree Collapse file tree 4 files changed +15
-8
lines changed
tests/unit/spec/src/components/modal/v2/lib Expand file tree Collapse file tree 4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ export default function useCalculator({ autoSubmit = false } = {}) {
70
70
devTouchpoint,
71
71
disableSetCookie,
72
72
features,
73
- language
73
+ language,
74
+ integrationIdentifier
74
75
} = useXProps ( ) ;
75
76
76
77
const [ state , dispatch ] = useReducer ( reducer , {
@@ -101,7 +102,8 @@ export default function useCalculator({ autoSubmit = false } = {}) {
101
102
deviceID : getOrCreateDeviceID ( ) ,
102
103
disableSetCookie,
103
104
features,
104
- language
105
+ language,
106
+ integrationIdentifier
105
107
} )
106
108
. then ( data => {
107
109
setServerData ( data ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ export const getContent = memoize(
25
25
devTouchpoint,
26
26
disableSetCookie,
27
27
features,
28
- buttonSessionId
28
+ buttonSessionId,
29
+ integrationIdentifier
29
30
} ) => {
30
31
const query = objectEntries ( {
31
32
currency,
@@ -47,7 +48,8 @@ export const getContent = memoize(
47
48
devTouchpoint,
48
49
disableSetCookie,
49
50
features,
50
- buttonSessionId
51
+ buttonSessionId,
52
+ integrationIdentifier
51
53
} )
52
54
. filter ( ( [ , val ] ) => Boolean ( val ) )
53
55
. reduce (
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ const Container = ({ children }) => {
36
36
ecToken,
37
37
contextualComponents,
38
38
disableSetCookie,
39
- features
39
+ features,
40
+ integrationIdentifier
40
41
} = useXProps ( ) ;
41
42
const [ transitionState ] = useTransitionState ( ) ;
42
43
const [ loading , setLoading ] = useState ( false ) ;
@@ -80,7 +81,8 @@ const Container = ({ children }) => {
80
81
contextualComponents,
81
82
deviceID : getOrCreateDeviceID ( ) ,
82
83
disableSetCookie,
83
- features
84
+ features,
85
+ integrationIdentifier
84
86
} ) . then ( data => {
85
87
setServerData ( data ) ;
86
88
setLoading ( false ) ;
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ describe('zoidPollyfill', () => {
99
99
describe ( 'sets up xprops for browser' , ( ) => {
100
100
beforeAll ( ( ) => {
101
101
mockLoadUrl (
102
- 'https://localhost.paypal.com:8080/credit-presentment/lander/modal?client_id=client_1&logo_type=inline&amount=500&devTouchpoint=true'
102
+ 'https://localhost.paypal.com:8080/credit-presentment/lander/modal?client_id=client_1&logo_type=inline&amount=500&devTouchpoint=true&integration_identifier=messagesModal '
103
103
) ;
104
104
105
105
zoidPolyfill ( ) ;
@@ -122,7 +122,8 @@ describe('zoidPollyfill', () => {
122
122
clientId : 'client_1' ,
123
123
logoType : 'inline' ,
124
124
amount : '500' ,
125
- devTouchpoint : 'true'
125
+ devTouchpoint : 'true' ,
126
+ integrationIdentifier : 'messagesModal'
126
127
} )
127
128
) ;
128
129
} ) ;
You can’t perform that action at this time.
0 commit comments