Skip to content

Refactor payment methods resolution#4

Open
hackmanser wants to merge 3 commits intomasterfrom
refactor/4927-payment-methods-resolver
Open

Refactor payment methods resolution#4
hackmanser wants to merge 3 commits intomasterfrom
refactor/4927-payment-methods-resolver

Conversation

@hackmanser
Copy link
Copy Markdown
Owner

Refs coopcycle#4927

  • Add PaymentMethodsResolver as single source of truth for order payment methods
  • Refactor API /orders/{id}/payment_methods + CheckoutPaymentType to use resolver
  • Harden /order/payment-method selection to reject methods not available for the order
  • Add unit tests for resolver

Notes:

  • Paygreen apple_pay/google_pay remain API-only for now

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant