Skip to content

feat: client payment fields#1100

Open
lissavxo wants to merge 5 commits intomasterfrom
feat/arbitrary-fields-client-payment
Open

feat: client payment fields#1100
lissavxo wants to merge 5 commits intomasterfrom
feat/arbitrary-fields-client-payment

Conversation

@lissavxo
Copy link
Collaborator

@lissavxo lissavxo commented Dec 29, 2025

Related to #1021

Description

Added fields param to client payment table
Changed generate payment id endpoint to add the new fields param
Added functions to update and get fields

Test plan

Test api/payments/paymentId endpoint sending an array of objects in string format called fields

Summary by CodeRabbit

  • New Features

    • Add custom payment fields: create, store, retrieve, and update structured metadata on payments; schema migrated to persist fields.
  • Bug Fixes / Validation

    • New validation errors and explicit responses for malformed fields, invalid field structure, and invalid amounts.
  • Chores

    • Request parsing and payment creation flows updated to accept/process optional payment fields; added APIs to fetch and update those fields.

✏️ Tip: You can customize this high-level summary in your review settings.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement (behind the scenes) Stuff that users won't see

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants