-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[NT-486] Tracking event for Update Payment Method #923
Conversation
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.
Reviewed w/ @Scollaco
|
||
//Tracking | ||
projectAndPledgeAmount | ||
.filter { context, _, _ in context == .changePaymentMethod} |
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.
Change to .filter { $0.0 == .changePaymentMethod }
@@ -548,6 +548,17 @@ public class PledgeViewModel: PledgeViewModelType, PledgeViewModelInputs, Pledge | |||
|
|||
self.submitButtonTitle = context.map { $0.submitButtonTitle } | |||
self.title = context.map { $0.title } | |||
let projectAndPledgeAmount = Signal.combineLatest(context, project, pledgeAmount) |
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.
rename to contextAndProjectAndPledgeAmount
updateBackingResult: .success(updateBackingEnvelope) | ||
) | ||
|
||
withEnvironment(apiService: mockService, currentUser: .template) { |
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.
remove environment.
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.
🚢
…update-payment-method-event
Thanks for approving, it will merge when tests pass. Fixed merge conflict and organized the tracking test a little better. |
…update-payment-method-event
📲 What
Improvements in monitoring user behavior for v1 checkout. This tracks update payment methods.
🤔 Why
We now have the
Update Payment Method Button Clicked
event.✅ Acceptance criteria
Change Payment Method
. Change your payment method and tapConfirm
, you should see the"Update Payment Method Button Clicked"
triggered.