From 25bbfae2608553eddbcd88ec3449060fa4221f77 Mon Sep 17 00:00:00 2001 From: Vitalii Dasaev Date: Fri, 8 May 2020 10:08:03 +0300 Subject: [PATCH] remove UrlEncode for urls (check redirect after payment by 302 http code to not encoded location) --- .../Models/Requests/PaymentGatewayRequest.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/MAVN.Service.PayrexxIntegration.Client/Models/Requests/PaymentGatewayRequest.cs b/client/MAVN.Service.PayrexxIntegration.Client/Models/Requests/PaymentGatewayRequest.cs index 633faea..98b9a2f 100644 --- a/client/MAVN.Service.PayrexxIntegration.Client/Models/Requests/PaymentGatewayRequest.cs +++ b/client/MAVN.Service.PayrexxIntegration.Client/Models/Requests/PaymentGatewayRequest.cs @@ -37,7 +37,7 @@ public string SuccessRedirectUrl get { return _successRedirectUrl; } set { - _successRedirectUrl = HttpUtility.UrlEncode(value); + _successRedirectUrl = value; if (_failedRedirectUrl == null) { _failedRedirectUrl = _successRedirectUrl; @@ -51,7 +51,7 @@ public string FailedRedirectUrl get { return _failedRedirectUrl; } set { - _failedRedirectUrl = HttpUtility.UrlEncode(value); + _failedRedirectUrl = value; if (_cancelRedirectUrl == null) _cancelRedirectUrl = _failedRedirectUrl; } @@ -63,7 +63,7 @@ public string CancelRedirectUrl get { return _cancelRedirectUrl; } set { - _cancelRedirectUrl = HttpUtility.UrlEncode(value); + _cancelRedirectUrl = value; if (_failedRedirectUrl == null) _failedRedirectUrl = _cancelRedirectUrl; }