Add merchant enrichment support to card transactions - #39
Open
MusabShakeel576 wants to merge 1 commit into
Open
MusabShakeel576 wants to merge 1 commit into
MusabShakeel576 wants to merge 1 commit into
Conversation
The issuer returns merchant enrichment alongside the raw acquirer descriptor. Lead the Merchant column with the clean brand name and its logo, and keep the raw descriptor underneath whenever the two differ — disputes and support tickets quote what the network actually sent, not the brand. Category is appended to the location line, preferring the enriched category over the issuer's own. All the fields are optional (enrichment never arrives before settlement), so an unenriched transaction renders exactly as it did before. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XnuxHDT4YapsUvRzyRqhUR
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Enhanced the card transactions table to display enriched merchant data (clean brand names, categories, and logos) alongside the raw transaction descriptor from the payment network.
Key Changes
Type definitions: Added three new optional fields to
CardTransactioninterface:merchantCategory: Issuer's human-readable category for the raw descriptorenrichedMerchantName: Clean brand name from issuer enrichment (e.g., "Google Play" instead of "GOOGLE *Play Books")enrichedMerchantCategory: Category from enriched dataenrichedMerchantIcon: Logo URL for the merchantUI improvements: Redesigned the merchant display cell to:
Implementation Details
object-containto maintain aspect ratio and includes appropriate styling for consistencynext/next/no-img-elementas the image source is dynamichttps://claude.ai/code/session_01XnuxHDT4YapsUvRzyRqhUR