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

refactor: logs refactor #549

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

refactor: logs refactor #549

wants to merge 1 commit into from

Conversation

Sanskar2001
Copy link
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Made Some keys optional instead of passing of passing empty string

How did you test it?

Checklist

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

firstEvent: bool,
paymentMethod: string,
paymentMethod?: string,
metadata: JSON.t,
ephemeralKey: string,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is also optional

firstEvent: bool,
paymentMethod: string,
paymentMethod?: string,
metadata: JSON.t,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is also optional

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this even sent in the payload?

paymentId: clientSecret.contents->getPaymentId,
merchantId: merchantId.contents,
browserName: arrayOfNameAndVersion->Array.get(0)->Option.getOr("Others"),
browserVersion: arrayOfNameAndVersion->Array.get(1)->Option.getOr("0"),
platform: Window.Navigator.platform,
userAgent: Window.Navigator.userAgent,
appId: "",
appId: Window.Location.hostname,
Copy link
Member

@vsrivatsa-edinburgh vsrivatsa-edinburgh Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will log the hostname of the iframe
This is not the expected behaviour

Consume hostname of parent from Elements over a postmessage

Copy link
Member

@vsrivatsa-edinburgh vsrivatsa-edinburgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect Implementation

@PritishBudhiraja PritishBudhiraja added Enhancement / Refactoring New feature or request or any refactoring Added Comments - waiting for author Add this label when comments added in the PR and waiting for the author to get those resolved. labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Added Comments - waiting for author Add this label when comments added in the PR and waiting for the author to get those resolved. Enhancement / Refactoring New feature or request or any refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants