Skip to content

Fix for removed statuses 'refunded', 'charged_back' and 'paidout'#10

Open
mworrell wants to merge 4 commits intomainfrom
payment-status-v2
Open

Fix for removed statuses 'refunded', 'charged_back' and 'paidout'#10
mworrell wants to merge 4 commits intomainfrom
payment-status-v2

Conversation

@mworrell
Copy link
Member

In the Mollie v2 API the statuses 'refunded', 'charged_back' and 'paidout' are removed.

The final status is now 'paid'. The removed statuses need to be derived from the presence of links in the _links object.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adapts the Mollie payment integration to support the v2 API, where statuses 'refunded', 'charged_back', and 'paidout' are no longer directly returned in the status field. Instead, these statuses must be derived from the presence of specific links in the _links object of payment responses.

Key changes:

  • Added payment_status/1 function to derive payment status from _links presence when necessary
  • Modified status_date to accept status as first parameter for proper date selection based on status
  • Updated all call sites to compute status via payment_status/1 before passing to status_date

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mworrell and others added 2 commits November 27, 2025 15:02
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants