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);
remotePost.Post();
}