-
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
Shopper insights rp2 feature #1256
base: main
Are you sure you want to change the base?
Conversation
…hts (#1228) * Add methods to ShopperInsightsClient * update unit tests * Add CHANGELOG * Fix typo
* Add shopper insights session ID to paypalRequest * Update factory for paypal request * remove extra setting of email address * Remove optional null and check for null in PayPalRequestFactory * Use String type and fix check for null to prevent run time crashes * Remove DEMO UI updates * Update comment for shopperSessionId * Add experimentalAPI for shopper session Id * Remove unused shopperInsightsSessionIdNullSwitch * Check for null and empty string * Update to use putOpt method for shopperId * Update changelog * Check for null and empty strings for request properties. * Update unit tests * Update test * Update unit tests * Update changelog
* setSessionId from paypalClient * Move analytics instance out of constructor * Update PayPalClient tests to take in a mock analyticsParamRepo * Add unit tests
* Add new shopper session ID analytics param * Fix unit tests * Fix missing analytics * fix lint * Fix lint and add unit tests * update doc string * fix lint
* Add new classes and enums * Update new objects, introduce new method * Use a data class instead * Use the built in functionality to convert the treatment to a string * Update content, update analyticsEventParam to take in a buttonType * Use refactored sendPresentedEvent fun * Remove comments * Update sendPresentedEvent signature * Remove unused methods * Update comments button order * Update comments for button type * Update comments * Update signature * Resolve conflicts * Update PresentmentDetails signature * Update analyticsEvent and add button selected string name * Add comment for shopperSessionId * Update AnalyticsClient * Update unit test * Update presentment signature * Add changelog * Remove shopperSessionId from signature * Remove comment * Remove extra line * Fix lint issues * Newline * Update unit test to test venmo and control type button * Lint issues * Update ButtonOrder * Update keys * PR Comments * Analytics update * Add accessors to enum func to get internal string value * Use upper case notation for enums with a string representation for the page type * Updates * Fix unit test
* fun sendSelectedEvent * Remove PresentmentDetails from selected analytics * Update comment
# Conflicts: # CHANGELOG.md
…-feature # Conflicts: # CHANGELOG.md # PayPal/src/test/java/com/braintreepayments/api/paypal/PayPalClientUnitTest.java
CHANGELOG.md
Outdated
|
||
* PayPal | ||
* Fix bug to ensure that `PayPalVaultRequest.userAuthenticationEmail` is not sent as an empty 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.
Let's not delete this
CHANGELOG.md
Outdated
* ShopperInsights (BETA) | ||
* Add `isPayPalAppInstalled` and `isVenmoAppInstalled` methods | ||
* Add `shopperSessionId` parameter to `ShopperInsightsClient` | ||
* BraintreePayPal | ||
* Add `shopperSessionId` to `PayPalCheckoutRequest` and `PayPalVaultRequest` | ||
* Fix bug to ensure that `PayPalVaultRequest.userAuthenticationEmail` is not sent as an empty string | ||
* Replace `sendPayPalPresentedEvent()` and `sendVenmoPresentedEvent()` with `sendPresentedEvent()` | ||
* Replace `sendPayPalSelectedEvent()` and `sendVenmoSelectedEvent()` with `sendSelectedEvent()` | ||
* ThreeDSecure | ||
* Return error if no `dfReferenceId` is returned in the 3D Secure flow |
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 pick - I think the indentation is correct on the original 3DS entry and the new entries are indented too far
* @property buttonOrder optional Represents this buttons order in context of other buttons. | ||
* @property pageType optional Represents the page or view the button is rendered on. |
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.
* @property buttonOrder optional Represents this buttons order in context of other buttons. | |
* @property pageType optional Represents the page or view the button is rendered on. | |
* @property buttonOrder Represents this buttons order in context of other buttons. | |
* @property pageType Represents the page or view the button is rendered on. |
These are not optional based on the code - should they be?
Can we do PR step "Tested and confirmed payment flows affected by this change are functioning as expected" to make sure everything is working as expected before merging? |
paymentMethodsDisplayed = paymentMethodsDisplayed | ||
) | ||
) | ||
fun isPayPalAppInstalled(context: Context): Boolean { |
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.
Quick ? - should these methods be marked beta too?
Summary of changes
Merge ShopperInsights Feature RP2 to main. Updated from main -> rp1 -> rp2.
Checklist
Authors
@jwarmkessel
@warmkesselj