Feat/dodo products creation#98
Merged
SteakFisher merged 7 commits intoJul 6, 2026
Merged
Conversation
Greptile SummaryThis PR updates the Dodo Payments onboarding flow. The main changes are:
Confidence Score: 5/5Safe to merge based on the reviewed changes. The changed onboarding path now has rollback coverage for created Dodo resources and addresses the earlier webhook URL, cleanup, and import concerns. No files require special attention.
What T-Rex did
Important Files Changed
Reviews (6): Last reviewed commit: "fix(products): correct path to import Cu..." | Re-trigger Greptile |
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
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.
This pull request refactors and improves the onboarding flow for Dodo Payments integration. The main changes are automatic creation of product IDs during onboarding (instead of requiring them from the user), better error handling for common Dodo Payments API errors, and stricter, normalized validation of the
currencyfield. These changes simplify the onboarding process and make it more robust.Onboarding Flow Improvements:
dodo_live_product_id,dodo_test_product_id) are now created automatically during onboarding, rather than being provided by the user. The code creates both live and test products and stores their IDs.createCheckout).Validation and Schema Updates:
currencyfield inonboardingSchemais now a strict enum (usd, eur, gbp, inr, jpy) and is mapped to uppercase codes for consistency.Error Handling Improvements:
AuthenticationErrorandBadRequestErrorfrom the Dodo Payments SDK, returning clearer error messages to the user when onboarding fails due to invalid API keys or configuration issues.These changes make onboarding with Dodo Payments more user-friendly and reliable.