Skip to content

Conversation

@armando-rodriguez-cko
Copy link
Contributor

This pull request introduces several updates to the payments.go file, mainly focusing on improving type definitions, updating product and affiliate data structures, and cleaning up unused code. The most important changes are grouped below by theme.

Type Definitions and Refactoring:

  • Removed the ItemType type and its associated constants (DigitalIT, DiscountIT, PhysicalIT). The Product.Type field now uses a plain string instead of ItemType. [1] [2]
  • Updated ItemSubType constants for clarity by removing the IST suffix and using more conventional names (e.g., NFT instead of NftIST).

Affiliate Data Fields:

  • Added AffiliateId and AffiliateUrl fields to the main payment request struct, enabling tracking of affiliate information with payment requests.
  • Removed AffiliateId and AffiliateUrl fields from the CardPaymentRequest struct, consolidating affiliate data at a higher level.

Payment Details Consent:

  • Introduced a new StorePaymentDetailsType constant CollectConsent, allowing for explicit handling of user consent when storing payment details.

@armando-rodriguez-cko armando-rodriguez-cko requested a review from a team November 27, 2025 12:59
@sonarqubecloud
Copy link

@armando-rodriguez-cko armando-rodriguez-cko merged commit 09f648a into master Dec 4, 2025
4 checks passed
@armando-rodriguez-cko armando-rodriguez-cko deleted the feature/enhance-payment-details-structure-with-new-consent-and-item-subtypes branch December 4, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants