-
Notifications
You must be signed in to change notification settings - Fork 62
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
base: main
Are you sure you want to change the base?
Conversation
f590197
to
143f4b4
Compare
firstEvent: bool, | ||
paymentMethod: string, | ||
paymentMethod?: string, | ||
metadata: JSON.t, | ||
ephemeralKey: string, |
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 also optional
firstEvent: bool, | ||
paymentMethod: string, | ||
paymentMethod?: string, | ||
metadata: JSON.t, |
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 also optional
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 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, |
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.
this will log the hostname of the iframe
This is not the expected behaviour
Consume hostname of parent from Elements over a postmessage
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.
Incorrect Implementation
Type of Change
Description
Made Some keys optional instead of passing of passing empty string
How did you test it?
Checklist
npm run re:build