Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// 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.
- /// </summary>
- /// <param name="UfcTransactionID">Transaction ID created in UFC system</param>
- /// <param name="AmountDebited">Amount that has been debited by this transaction</param>
- /// <returns></returns>
- public async Task<bool> ReverseUfcTransactionTaskAsync(string UfcTransactionID, int? AmountDebited)
- {
- var RequestParameters = new Dictionary<string, string>
- {
- { "command", "r" },
- { "trans_id", Uri.EscapeDataString(UfcTransactionID) },
- { "amount", AmountDebited.ToString() },
- {"client_ip_addr", IP }
- };
- await PostValuesTaskAsync(RequestParameters);
- var IsSuccess = ResponseString?.Contains("RESULT: OK") == true;
- return IsSuccess;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement