Skip to content

Conversation

@MathijsK93
Copy link
Contributor

In the API it's possible to embed refunds, so it's not necessary to do another request for them. In this PR I'm adding support for using this embedded refunds when doing something like payment.refunds.

The same needs to be done for chargebacks and captures. Maybe someone can help with adding those resources to test/fixtures/payments/get_embedded_resources.json

@MathijsK93
Copy link
Contributor Author

@justincase can you take a look? 🙏🏼 Otherwise I will first create a monkey patch in our own code to make this happen.

@justincase
Copy link
Collaborator

@MathijsK93 Thanks! I'll take a look, likely next week.

@MathijsK93
Copy link
Contributor Author

Friendly bump 😃

@justincase justincase merged commit 1f0b1d2 into mollie:master Mar 11, 2025
7 checks passed
@justincase
Copy link
Collaborator

Thanks, I'll add the other embedded resources and publish a new version. 👍

@justincase
Copy link
Collaborator

Added to v4.16.0.

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