Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for get payment refund #321

Closed
sebbertho opened this issue Sep 4, 2023 · 2 comments
Closed

Support for get payment refund #321

sebbertho opened this issue Sep 4, 2023 · 2 comments

Comments

@sebbertho
Copy link

I would like to access the get-payment-refund call: https://docs.mollie.com/reference/v2/refunds-api/get-payment-refund. Do I miss something or shall I implement a suggestion and issue a pull request?

@Viincenttt
Copy link
Owner

Hi @sebbertho ,

This method is available in the RefundClient:

public async Task<RefundResponse> GetRefundAsync(string paymentId, string refundId, bool testmode = false) {

public async Task<RefundResponse> GetRefundAsync(string paymentId, string refundId, bool testmode = false) {
    this.ValidateRequiredUrlParameter(nameof(paymentId), paymentId);
    this.ValidateRequiredUrlParameter(nameof(refundId), refundId);
    var queryParameters = this.BuildQueryParameters(testmode: testmode);
    return await this.GetAsync<RefundResponse>($"payments/{paymentId}/refunds/{refundId}{queryParameters.ToQueryString()}").ConfigureAwait(false);
}

Let me know if you have any question about this method.

Kind regards,
Vincent

@Viincenttt
Copy link
Owner

Closing this for now, let me know if you need any further help regarding this issue

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

No branches or pull requests

2 participants