-
Notifications
You must be signed in to change notification settings - Fork 237
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
Add Shopper Session ID param #1241
Conversation
/** | ||
* Used for sending Shopper Insights session ID provided by merchant to FPTI | ||
*/ | ||
private var shopperSessionId: String? = null |
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.
Should we save this in a repository singleton outside of the Client class? Maybe a PayPalRepository that holds all PayPal specific values.
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.
I considered adding it to the AnalyticsParamRepository
but since it is passed in by the merchant at each step there didn't seem much value there and it seemed a little confusing that we don't do that for any other general analytics event params. Open to a new param repository or adding it to the existing one if folks think that would be more helpful!
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.
Ah gotcha. That makes sense 👍
@@ -17,6 +17,7 @@ import androidx.annotation.RestrictTo | |||
* the experiment, as a JSON string, that the merchant sent to the us. | |||
* @property paymentMethodsDisplayed A ShopperInsights module specific event that indicates the | |||
* order of payment methods displayed to the shopper by the merchant. | |||
* @property shopperSessionId A ShopperInsights session ID provided by the merchant |
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.
nit: do we want to match iOS?
/// The Shopper Insights customer session ID created by a merchant's server SDK or graphQL integration.
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.
Updated 👍
Summary of changes
sessionId
for shopper insightsshopper_session_id
FPTI tag to be used specifically for shopper insights and related payment flowsshopper_session_id
is getting to FPTI as expectedshopper_session_id
to FPTI braintree_ios#1485Checklist
Authors
@sarahkoop