Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding config props to stories #2802

Merged
merged 12 commits into from
Aug 26, 2024
Prev Previous commit
Next Next commit
Updating paymentsConfig.ts in Storybook to use API v69+ compatible co…
…nfig for 3DS2
sponglord committed Aug 20, 2024
commit 42c7238564ad478ec570748b8d2407a4a4b9455b
16 changes: 15 additions & 1 deletion packages/lib/storybook/config/paymentsConfig.ts
Original file line number Diff line number Diff line change
@@ -12,7 +12,21 @@ const paymentsConfig = {
additionalData: {
// Force response code. See https://docs.adyen.com/development-resources/test-cards/result-code-testing/adyen-response-codes
// RequestedTestAcquirerResponseCode: 2,
allow3DS2: true
// allow3DS2: true,
/**
* To force threeds2InMDFlow:
* comment out "allow3DS2" & comment in the following 2 lines:
*/
// threeDS2InMDFlow: true,
// executeThreeD: true
},
// Ready for v69+ - lose any additionalData 3DS2 related lines e.g. allow3DS2: true
authenticationData: {
attemptAuthentication: 'always',
// To force MDFlow: comment out below, and just keep line above
threeDSRequestData: {
nativeThreeDS: 'preferred'
}
},
shopperEmail: 'test-shopper@storytel.com',
shopperIP: '172.30.0.1',