-
Notifications
You must be signed in to change notification settings - Fork 9
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
Improve example for session with multi components #339
Conversation
LCOV of commit
|
Quality Gate passedIssues Measures |
final cardComponentConfiguration = CardComponentConfiguration( | ||
environment: Config.environment, | ||
clientKey: Config.clientKey, | ||
countryCode: Config.countryCode, | ||
amount: Config.amount, | ||
shopperLocale: Config.shopperLocale, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it only CardComponent specific?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's used in two places, for the card component and for creating the sessions object. I'm considering exposing the underlying baseConfiguration class or creating a dedicated sessionCreationConfiguration class for requesting the session object. Then there is no need to reuse the card (or any other) configuration to create the session object. But this will happen in a separate PR.
_extractSchemePaymentMethod(sessionCheckout.paymentMethods); | ||
|
||
return Padding( | ||
padding: const EdgeInsets.fromLTRB(0, 0, 0, 0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Padding is gone. Is this expected?
No description provided.