uCommerce SagePay Integration Issues - Payment page not shown to user
I am wokring on uCommerce site and trying to integrate SagePay with uCommerce.
The set up from backend (ucommerce settings) looks ok but when user submits the order, user is redirected to confirmation page instead of payment page. The sage pay payment page is not shown at all. Can anyone please help?
at UCommerce.Transactions.Payments.UrlPaymentExtractor.Extract(HttpRequest httpRequest)
at UCommerce.Transactions.Payments.GenericPaymentHandler.Execute(HttpContext context, IPaymentWindow& paymentWindow, Payment& payment) at UCommerce.Transactions.Payments.PaymentProcessor.ProcessRequest(HttpContext context)
Now there is no error message in umbracoLog, and when I submit order, an entry is added to uCommerce_Payment table, but user is never presented by 'SagePay' payment page.
uCommerce SagePay Integration Issues - Payment page not shown to user
I am wokring on uCommerce site and trying to integrate SagePay with uCommerce.
The set up from backend (ucommerce settings) looks ok but when user submits the order, user is redirected to confirmation page instead of payment page. The sage pay payment page is not shown at all. Can anyone please help?
I am using uCommerce Demo Store (Razor).
SagePay configuration:
vendor="xxxxxx"
txType="PAYMENT"
debug="true"
testMode="LIVE"
successUrl="http://www.abc.com/success.aspx"
abortUrl="http://www.abc.com/abort.aspx"
failureUrl="http://www.abc.com/error.aspx"
notificationURL="(auto)"
/>
Hello Masood!
Which version of uCommerce and the Razor store are you using?
Also, which settings have you set in the backend?
Are there any messages in the log file?
Kind regards,
Jesper
Thanks Jesper,
I am using uCommerce v3.0.5 & umbraco 4.11.5 and latest Razor store.
I have set up Payment method 'SagePay' with pipeline 'Checkout'
There used to be an error previously which was:
Could not find the Payment with PaymentMethodName: '8', and one of PaymentId: '67' or PaymentGuid: ''.
UCommerce.EntitiesV2.Payment Extract(System.Web.HttpRequest)
at UCommerce.Transactions.Payments.UrlPaymentExtractor.Extract(HttpRequest httpRequest)
at UCommerce.Transactions.Payments.GenericPaymentHandler.Execute(HttpContext context, IPaymentWindow& paymentWindow, Payment& payment) at UCommerce.Transactions.Payments.PaymentProcessor.ProcessRequest(HttpContext context)
Hello Masood,
It sounds like there might be a problem with the backend setup.
Could you please post a screen dump of your setup? Specifically the "Common" and "Access" tabs of the Settings/Orders/Payment Methods page.
Kind regards,
Jesper
This has been fixed now.
The redirect to confirmation page was removed and it worked fine. Changes to Preview.cshtml
var request = HttpContext.Current.Request;
if (request.HttpMethod == "POST" && request.Form.AllKeys.Any(x => x == "send-order"))
{
TransactionLibrary.ExecuteBasketPipeline();
TransactionLibrary.RequestPayments();
@*HttpContext.Current.Response.Redirect("Confirmation.aspx");*@
}
is working on a reply...