-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat(analytics): Add metrics, filters and APIs for Analytics v2 Dashboard - Payments Page #5870
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 4b1036796a1f7a36f954f2ef7297c0668f9ff99b Author: Sampras Lopes <[email protected]> Date: Mon Sep 30 18:35:46 2024 +0530 feat(sannkey): add sannkey api
… set of metrics for backwards compatibility with non sessionized metrics
… payment_failure_rate_distribution from intents
lsampras
approved these changes
Oct 11, 2024
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.
Thanks for this PR,
a lot of features to the query builder & accumulator as well
su-shivanshmathur
approved these changes
Oct 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Adding metrics, filters and APIs for Analytics v2 Dashboard - Payments page
The new Analytics Dashboard will now have the following metrics:
Sessionizer Payment Intents based Metrics:
Sessionizer Payment Attempts based Metrics:
Refunds based Metrics:
Disputes based Metrics:
All Disputes - Total number of disputes irrespective of status
The following filters have been added:
Payment Attempts:
Payment Intents:
New API endpoints for Payments Lifecycle (Sankey) on different levels:
Separated out the existing payment_attempts and payment_intents based metrics and sessionizer_payment_attempts and sessionizer_payment_intents based metrics to support backwards compatibility
Additional Changes
Motivation and Context
Enhancing dashboard experience and providing meaningful and important data analytics for the merchants to make informed decisions
How did you test it?
Curls for different metrics (which are newly created or modified):
Payment Attempts based metrics:
Fields to look out for in the response body:
queryData:
metaData:
Fields to look out for in the response body:
queryData:
Fields to look out for in the response body:
queryData:
metaData:
Payment Intents based metrics:
Fields to look out for in the response body
queryData:
metaData
Fields to look out for in the response body:
queryData:
metaData:
Fields to look out for in the response body:
queryData:
metaData:
Fields to look out for in the response body:
queryData:
Checklist
cargo +nightly fmt --all
cargo clippy