Payment method configuration 1.70

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 yıl önce
Yes, I'm still on 1.7, my web developer promised me he would update it to the latest version and it would take a month. That was October 2017!

In the mean time, Worldpay has changed the URL to connect to their payment gateway and I am unable to find where to change it.

The obvious place would be payment methods>worldpay>configuration but there is nowhere to input the URL there.

Does anyone remember how to do this?
Thanks for reading.
5 yıl önce
The url is hardcoded in the payment method

        /// <summary>
        /// Gets Worldpay URL
        /// </summary>
        /// <returns></returns>
        private string GetWorldpayUrl()
        {
            return useSandBox ? "https://secure-test.wp3.rbsworldpay.com/wcc/purchase" :
               "https://secure.wp3.rbsworldpay.com/wcc/purchase";
        }

You need to change the source code and rebuild the payment method
5 yıl önce
Thank you Yidna, you're a star!
5 yıl önce
Yidna wrote:
The url is hardcoded in the payment method

        /// <summary>
        /// Gets Worldpay URL
        /// </summary>
        /// <returns></returns>
        private string GetWorldpayUrl()
        {
            return useSandBox ? "https://secure-test.wp3.rbsworldpay.com/wcc/purchase" :
               "https://secure.wp3.rbsworldpay.com/wcc/purchase";
        }

You need to change the source code and rebuild the payment method


So I have found this in a folder called "nopCommerce_1.7_Source Folder" that is outside the root folder on my computer, but I am unable to access this via ftp on the remote site.
Is there somewhere else I should be looking for it in the root folder?
What is the breadcrumb trail please?
5 yıl önce
Source code files really should not be on the site.  You need to have them local on a developer's PC.  You will need Visual Studio to rebuild the plugin dll.
5 yıl önce
OK. If the source code is not on the site, how does the site know which URL to direct customers to for payment?
5 yıl önce
The source code is compiled into executable assemblies (e.g. .dll files), by a tool like Visual Studio.  The executables run on the site.

The exception is the .cshtml files ("views") which will be compiled just-in-time by the ASP.NET.  I.e. You can use any text editor to edit .cshtml files.   But in your case, "The url is hardcoded in the payment method ", and you need to rebuild that project.
5 yıl önce
Hi Adam I sent you a PM
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.