Where is the ReversalRequest file in dotnet library

0

To create a refund payment we use a file called RefundRequest from Adyen.Model.Modification, but I did not found a file called ReversalRequest to use the reversals endpoint. Please help me.

Comments

1 comment
  • Hey there! 

     

    Not sure which API Version you are talking about so I'll gather that it's the latest one. 

    If I look at the Checkout service, which contains all of the reversal and refund enpoints, there is a CreatePaymentReversal class that is being mentioned in the file. You can find its source here. Is it the file you are searching for by any chance? 

     
       
       
       
       
       
     
    publicPaymentReversalResourcePaymentsReversals(stringpaymentPspReference, CreatePaymentReversalRequestcreatePaymentReversalRequest)
     
    {
     
    varpaymentReversal=newPaymentsReversals(this, paymentPspReference);
     
    varjsonRequest=Util.JsonOperation.SerializeRequest(createPaymentReversalRequest);
     
    varjsonResponse=paymentReversal.Request(jsonRequest);
     
    returnJsonConvert.DeserializeObject<PaymentReversalResource>(jsonResponse);
     
    }

     

     

    Hope this helps, let me know if I can help further.

     

    Regards!

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post