Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. /// <summary>
  2. /// Performs payment transaction reverse. Note that reverse and refund are not the same!!! Reverse will succeed if debited amount is in "blocked" state on your credit card.
  3. /// </summary>
  4. /// <param name="UfcTransactionID">Transaction ID created in UFC system</param>
  5. /// <param name="AmountDebited">Amount that has been debited by this transaction</param>
  6. /// <returns></returns>
  7. public async Task<bool> ReverseUfcTransactionTaskAsync(string UfcTransactionID, int? AmountDebited)
  8. {
  9. var RequestParameters = new Dictionary<string, string>
  10. {
  11. { "command", "r" },
  12. { "trans_id", Uri.EscapeDataString(UfcTransactionID) },
  13. { "amount", AmountDebited.ToString() },
  14. {"client_ip_addr", IP }
  15. };
  16. await PostValuesTaskAsync(RequestParameters);
  17. var IsSuccess = ResponseString?.Contains("RESULT: OK") == true;
  18. return IsSuccess;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement