File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
SmartStore.AmazonPay/Services
SmartStore.PayPal/Providers Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
- # Release Notes
1
+ # Release Notes
2
2
3
3
## SmartStore.NET 3.2
4
4
34
34
* #1447 Checkout button payment methods (Amazon, PayPal Express) won't work in conjunction with mandatory checkout attributes
35
35
* When creating a topic, the widget zone input shows System.String[ ]
36
36
* Switching the language always redirected to the home page if SEO friendly URLs was deactivated.
37
- * Fixes file upload of a checkout attribute was not stored on cart page.
37
+ * File upload of a checkout attribute was not stored on cart page.
38
+ * Redirecting within checkout may have displayed an incorrect URL in the browser.
38
39
39
40
40
41
## SmartStore.NET 3.1.5
Original file line number Diff line number Diff line change @@ -988,7 +988,9 @@ public PreProcessPaymentResult PreProcessPayment(ProcessPaymentRequest request)
988
988
{
989
989
// Must be redirected to checkout payment page.
990
990
_httpContext . Session [ "AmazonPayFailedPaymentReason" ] = id ;
991
- _httpContext . Response . RedirectToRoute ( new { Controller = "Checkout" , Action = "PaymentMethod" , Area = "" } ) ;
991
+
992
+ var urlHelper = new UrlHelper ( _httpContext . Request . RequestContext ) ;
993
+ _httpContext . Response . Redirect ( urlHelper . Action ( "PaymentMethod" , "Checkout" , new { area = "" } ) ) ;
992
994
}
993
995
}
994
996
}
@@ -1125,7 +1127,9 @@ public ProcessPaymentResult ProcessPayment(ProcessPaymentRequest request)
1125
1127
{
1126
1128
// Must be redirected to checkout payment page.
1127
1129
_httpContext . Session [ "AmazonPayFailedPaymentReason" ] = reason ;
1128
- _httpContext . Response . RedirectToRoute ( new { Controller = "Checkout" , Action = "PaymentMethod" , Area = "" } ) ;
1130
+
1131
+ var urlHelper = new UrlHelper ( _httpContext . Request . RequestContext ) ;
1132
+ _httpContext . Response . Redirect ( urlHelper . Action ( "PaymentMethod" , "Checkout" , new { area = "" } ) ) ;
1129
1133
}
1130
1134
}
1131
1135
}
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
3
using System . Web ;
4
+ using System . Web . Mvc ;
4
5
using System . Web . Routing ;
5
6
using SmartStore . Core . Configuration ;
6
7
using SmartStore . Core . Domain . Orders ;
@@ -102,7 +103,8 @@ public override ProcessPaymentResult ProcessPayment(ProcessPaymentRequest proces
102
103
result . AddError ( T ( "Plugins.SmartStore.PayPal.SessionExpired" ) ) ;
103
104
104
105
// Redirect to payment wall and create new payment (we need the payment id).
105
- HttpContext . Response . RedirectToRoute ( new { Controller = "Checkout" , Action = "PaymentMethod" , Area = "" } ) ;
106
+ var urlHelper = new UrlHelper ( HttpContext . Request . RequestContext ) ;
107
+ HttpContext . Response . Redirect ( urlHelper . Action ( "PaymentMethod" , "Checkout" , new { area = "" } ) ) ;
106
108
107
109
return result ;
108
110
}
You can’t perform that action at this time.
0 commit comments