@@ -56,6 +56,30 @@ protected function getBaseAuthorizeData()
5656 $ data ['VendorTxCode ' ] = $ this ->getTransactionId ();
5757 $ data ['ClientIPAddress ' ] = $ this ->getClientIp ();
5858
59+ $ data ['BrowserJavascriptEnabled ' ] = $ this ->getBrowserJavascriptEnabled () ?: static ::BROWSER_JAVASCRIPT_NO ;
60+ $ data ['BrowserLanguage ' ] = $ this ->getBrowserLanguage () ?: static ::BROWSER_LANGUAGE ;
61+ $ data ['ThreeDSNotificationURL ' ] = $ this ->getThreeDSNotificationURL ();
62+ $ data ['BrowserAcceptHeader ' ] = $ _SERVER ['HTTP_ACCEPT ' ] ?? null ;
63+ $ data ['BrowserUserAgent ' ] = $ _SERVER ['HTTP_USER_AGENT ' ] ?? null ;
64+ $ data ['ChallengeWindowSize ' ] = $ this ->getChallengeWindowSize () ?: static ::CHALLENGE_WINDOW_SIZE_05 ;
65+
66+ // Proctocol v4.00 - if BrowserJavascriptEnabled
67+ $ data ['BrowserJavaEnabled ' ] = $ this ->getBrowserJavaEnabled ();
68+ $ data ['BrowserColorDepth ' ] = $ this ->getBrowserColorDepth ();
69+ $ data ['BrowserScreenHeight ' ] = $ this ->getBrowserScreenHeight ();
70+ $ data ['BrowserScreenWidth ' ] = $ this ->getBrowserScreenWidth ();
71+ $ data ['BrowserTZ ' ] = $ this ->getBrowserTZ ();
72+
73+ // repeat payments required fields
74+ $ data ['MITType ' ] = $ this ->getMITType ();
75+ $ data ['COFUsage ' ] = $ this ->getCOFUsage ();
76+ $ data ['InitiatedType ' ] = $ this ->getInitiatedType ();
77+ $ data ['SchemeTraceID ' ] = $ this ->getSchemeTraceID ();
78+ $ data ['RecurringExpiry ' ] = $ this ->getRecurringExpiry ();
79+ $ data ['RecurringFrequency ' ] = $ this ->getRecurringFrequency ();
80+ $ data ['ACSTransID ' ] = $ this ->getACSTransID ();
81+ $ data ['DSTransID ' ] = $ this ->getDSTransID ();
82+
5983 $ data ['ApplyAVSCV2 ' ] = $ this ->getApplyAVSCV2 () ?: static ::APPLY_AVSCV2_DEFAULT ;
6084 $ data ['Apply3DSecure ' ] = $ this ->getApply3DSecure () ?: static ::APPLY_3DSECURE_APPLY ;
6185
0 commit comments