...
Activate and edit cardinity MID
...
Use zeroAuth to authenticate cards without sending an amount to Cardinity
Use sendUpsellToken to send a payment token on upsells. This is highly recommended if 3DS is required on your account. Checking this box may have the consequence of the upsells flagged as recurring orders.
STEP 3
Add If 3DS is required on your account, add the hidden input browserData inside of the same form as the card input.
...
Code Block |
---|
Script to get browserData: <script type="text/javascript"> const navigator = window.navigator; const browserData = { acceptHeader: 'application/json', colorDepth: screen.colorDepth, javaEnabled: navigator.javaEnabled(), javaScriptEnabled: true, language: navigator.language, screenHeight: screen.height, screenWidth: screen.width, timeZoneOffset: (new Date()).getTimezoneOffset().toString(), userAgent: navigator.userAgent }; document.getElementById('browserData').value = JSON.stringify(browserData); </script> |
STEP 5
Ensure the checkout page supports standard 3DS processing