• Welcome to KonaKart Community Forum. Please login or sign up.
 
May 01, 2024, 09:50:56 am

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - kevix

1
If you configure the Cash on Delivery (COD) payment module there is an option "set order status" which allows you to choose the status that, presumably, an order will be set to when submitted with this payment type.

However the status is always Pending.

In CheckoutConfirmationSubmitAction.java the status is always set to Pending for PaymentDetails.COD

2
I have written a set of shipping modules with availability depending on the address (currently just country but I also plan one to depend on postcodes). The behaviour that I expected to see was that if the customer changed the address the Shipping Quotes would be regenerated, a new one selected if necessary, and the possible quotes displayed in the pull down on the one page checkout. But, out of the box 6.5.0.0 doesn't do this. The methods on the pulldown and the shipping cost in the totals are still for the original address.

I have customised CheckoutAction so that if the address changes it will recreate the quotes and select an appropriate one (either the original, if still valid) or the first of the new set of quotes, and I can see this change is passed on and used in the totals.

How, in CheckoutAction, can I send the new array of quotes to the OnePageCheckout so that they are displayed in the Shipping pulldown menu?

3
I'm still having problems with 6.5.0.0 and Paypal callbacks not coming through. I noticed this problem...

Some payment modules have a neat feature where if the callback, success or failure urls contain "host:port" then these will be replaced with the actual values for the site, this allows a default URL to be put in the module that works out of the box.

With Paypal the success and failure URLs are modified in this way, but the callback URL is not, and you can see this in logs:


notify_url        = http://host:port/konakart/PayPalCallback.action
return             = http://example.co.uk:8780/konakart/CheckoutFinished.action
cancel_return = http://example.co.uk:8780/konakart/CatalogCheckoutExternalPaymentErrorPage.action


A quick workaround is to set the callback URL explicitly. It could also be fixed in the code in modules/src

com.konakart.bl.modules.payment.paypal.Paypal.java

change:


        parmList.add(new NameValue("notify_url", sd.getPayPalCallbackUrl()));

        sd.setPayPalReturnUrl(sd.getPayPalReturnUrl().replaceFirst(hostPortSubstitute,
                info.getHostAndPort()));
        sd.setPayPalCancelUrl(sd.getPayPalCancelUrl().replaceFirst(hostPortSubstitute,
                info.getHostAndPort()));


to:

      sd.setPayPalCallbackUrl(sd.getPayPalCallbackUrl().replaceFirst(hostPortSubstitute,
                info.getHostAndPort()));
         parmList.add(new NameValue("notify_url", sd.getPayPalCallbackUrl()));
       
sd.setPayPalReturnUrl(sd.getPayPalReturnUrl().replaceFirst(hostPortSubstitute,
                info.getHostAndPort()));
        sd.setPayPalCancelUrl(sd.getPayPalCancelUrl().replaceFirst(hostPortSubstitute,
                info.getHostAndPort()));

4
Hello

In 6.5.0.0 default reset passwords are 5 characters, but the login form expects 8

If I go to /konakart/LogIn.action

Click on "Forgot your Password?" it goes to /konakart/ForgotPassword.action

Enter in a valid user email address, and click SEND it goes to /konakart/ForgotPasswordSubmit.action

The password in the email is 5 characters long, when entered in the form the error message appears: "Please enter at least 8 characters."

In konakartadmin Configuration > minimum Values the Minimum value for passwords is set to 5.

If you change this minimum from 5 to 8 and re-reset the password you will get a new password 8 characters long and be able to login.

5
We are evaluating konakart community edition 6.3.0.0. I am testing the Paypal Standard integration using a sandbox test account. I believe I have set up the module correctly and I can see that the payment is made to the paypal sandbox merchant account from the sandbox customer account however a callback is not received.

I have set the callback user to the "out of the box" admin user. Although our development server is behind our firewall port forwarding seems to be working and I think the callback is received but it fails producing this exception in the log... can anyone offer advice on how to get the callback to work?


java.lang.Exception: The callback from PayPal did not contain the 'custom' parameter.
at com.konakart.actions.ipn.PayPalAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)