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

Improve example for session with multi components #339

Merged
merged 21 commits into from
Jan 22, 2025

Conversation

Robert-SD
Copy link
Collaborator

No description provided.

@Robert-SD Robert-SD changed the title Improve multi session components Improve example for session with multi components Jan 21, 2025
Copy link

LCOV of commit 5b33dfd during Check PR #1013

Summary coverage rate:
  lines......: 9.9% (136 of 1376 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

Comment on lines +24 to +30
final cardComponentConfiguration = CardComponentConfiguration(
environment: Config.environment,
clientKey: Config.clientKey,
countryCode: Config.countryCode,
amount: Config.amount,
shopperLocale: Config.shopperLocale,
);
Copy link
Contributor

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?

Copy link
Collaborator Author

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),
Copy link
Contributor

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?

@Robert-SD Robert-SD merged commit 5721aca into main Jan 22, 2025
16 of 17 checks passed
@Robert-SD Robert-SD deleted the improveMultiSessionComponents branch January 22, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants