SagePay for 2.4 version

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
carlosmartinezt wrote:


By reading your code, it seems like you are using an old version of the plugin which had the problem of not keeping the session becuase it was automatically redirecting to the order confirmation:
 $('#confirmorderform').submit();


Make sure the view ResponsePage.cshtml is the correct one. It should have:


<script type="text/javascript">
                $('#PaymentInfoForm').submit();
            </script>


The plugin now posts to the PaymentInfo action which stores the payment info session and then redirects to the Confirm action (for a user to pres the button to confirm the order).

Also, if even updating the plugin does not work, it is safer to use a multiple page checkout.

I must also mention, that the plugin was well tested in NopCommerce 2.4. Versions 2.3 and 2.2 should work but a few references to the mobileDevice helper have to be removed.


Hi Carlos,

Thanks a lot for this information! We will use the new version of the SagePay plugin, but the client is stuck with nopCommerce 2.3 for now.

I would like to mention that we are using a multiple page checkout.
Also I believe we managed to reproduce the problem. Basically our sagepay is configured in nopCommerce to return to:

http://www.domain.co.uk/

Now if the customer starts a checkout process from http://domain.co.uk, when sagepay returns to the

http://www.domain.co.uk/ResponsePage?uid=.... the session is lost.

So it has to do with the www in front of the domain name.
This is something really weird, which probably has to do with the fact that this is an IFrame integration, but we still have not got to the bottom of it.

Thanks
12 years ago
There are a few solutions to your problem in this post:

https://www.nopcommerce.com/boards/t/12963/canonical-url-improvement-www-subdomain-redirection-to-avoid-duplicate-pages.aspx

I hope it helps
12 years ago
carlosmartinezt wrote:
There are a few solutions to your problem in this post:

https://www.nopcommerce.com/boards/t/12963/canonical-url-improvement-www-subdomain-redirection-to-avoid-duplicate-pages.aspx

I hope it helps


Yes thanks again for the info! I think this has to do with SEO optimization but our problems seem to be related somehow to asp.net and iframe trying to do a cross domain redirect. How is an iframe opened in a page http://domain.com/paymentinfo redirecting to http://www.domain.com/responsepage a cross domain redirect I fail to see.
Just a problem that is there and could be reproduced and fixed by redirecting http://domain.com to http://www.domain.com but nevertheless not explained and driving us crazy :-).

Thanks
12 years ago
Noticed the plugin is not taking into account the field length restrictions from sagepay, specifically billing phone number. client's customers are entering rather long phone numbers including extension and sagepay is returning an error.

line 212 PaymentSagePayServerController

data.Add("BillingPhone", _workContext.CurrentCustomer.BillingAddress.PhoneNumber.Substring(0,20));

and

line 237 (same controller)

data.Add("DeliveryPhone", _workContext.CurrentCustomer.ShippingAddress.PhoneNumber.Substring(0, 20)

sorted it.
12 years ago
suggestion, noticed the commented out code that sends the basket to sagepay. we are going to be implemented GPC level 3 for our client which requires this, would be nice if that was a config setting for the plugin (SendCart or something).
12 years ago
Hi there Guys.

Have implemented the set up for this version of Sagepay on a fresh install of Nopcommerce 2.4.

I have configured to use the 'TEST' setting.

I can go from the checkout to Sagepay to enter my card details on a test product to the value of £1.00 absolutely fine.

If I complete the transaction or cancel out of the transaction I get the following error everytime:

HTTP Status Code:   500
HTTP Status Message:   The request was unsuccessful due to an unexpected condition encountered by the server.
Error Code :   5006
Error Description :   Unable to redirect to Vendor's web site. The Vendor failed to provide a RedirectionURL.

Does anybody who currently has this working on 2.4 know what is going on or where I am going wrong?
(it also happens in a 'LIVE' test too!)

thanks in advance

John
12 years ago
Scrap that - i have sorted it ;)

cheers

john
11 years ago
Hi,

Did anybody's manage to resolve this issue as I am using version 2.4 with the Iframe and I am trying to use a onepagecheckout but I am also getting the payment back from sagepay and then the screen saying "please wait to be redirected...."
Hence money taken but no order within nopcommerce :( nightmare!

I confirm that the process works with the multiple page cart but it just isn't as slick as the onepage and my client would also prefer this.

I am using the latest version of this plugin which includes the code mentioned above.

Can anyone help or point me in the right direction as I unfortunately have to use sagepay.

Also is there anyway of making this process work without the need for the customer to confirm the order again at the end of the transaction - this seems like an additional step that isn't needed.

Any help greatly appreciated
:)
11 years ago
Has anyone successfully integrated Carlos' SagePay Plugin with 2.50? Or even 2.60?

If so, did you have to do anything other than add "2.50" or "2.60" to description.txt?

Neville
11 years ago
Hi,

We are also in need of using the sagepay plugin for version 2.6, is anyone able to help with this please?

Many thanks

Chris
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.