Click here to Skip to main content
12,950,090 members (69,711 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I want to refund amount from Paypal to buyer which he/she already paid to seller, I am using Paypal's post method. Please suggest me any good link for refund from Paypal.

My code for sending Refund Request and my Method is RefundTransaction
public void PostDataToPaypal(PaypalPayment paypal)
        var remotePost = new RemotePost(PaypalResponseURL);
        remotePost.Amount = paypal.AssignmentAmount;
        remotePost.Add("cmd", "_xclick");
        remotePost.Add("business", PaypalMerchantBusinessAccount);
        remotePost.Add("amount", paypal.AssignmentAmount);
        remotePost.Add("item_name", string.Format("Assignment Amount for Assignment Id : {0}",paypal.AssignmentId));
        remotePost.Add("return", string.Format("{0}?tempCartId={1}", PaypalSuccessReturnUrl, paypal.AssignmentId));
        remotePost.Add("notify_url", string.Format("{0}?tempCartId={1}", PaypalNotifyUrl, paypal.AssignmentId));
        remotePost.Add("cancel_return", string.Format("{0}?assignmentId={1}", PaypalCancelUrl, paypal.AssignmentId));
        remotePost.Add("currency_code", PaypalCurrencyCode);
        remotePost.Add("transaction_id", paypal.TransactionId);
        remotePost.Add("refund_type", paypal.RefundType);
Posted 9-Jan-13 2:22am
Updated 9-Jan-13 2:24am
ryanb31 9-Jan-13 8:24am
Have you looked on paypal's developer site?
Saurabh Srivastava100 9-Jan-13 8:27am
yes i have gone through Paypal Website but not able to understand the flow of refund transaction

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

All you have to do is follow the instructions here[^] by translating those actions into the remotePost commands you are using right now.

I fear that google is not working for you: "Paypal Refund Transaction API" gave me this link right off the bat.[^]
Useful, a 5.
Marcus Kramer 10-Jan-13 9:10am
Thanks, Sergey
Saurabh Srivastava100 10-Jan-13 1:10am
I want to do it through C# Code by using API of Paypal what you have suggested is manual work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,749
CHill60 3,380
Maciej Los 2,953
Jochen Arndt 1,935
ppolymorphe 1,820

Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 25 Jun 2015
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100