Hello
How do i change the default checkout action? The installation checkout action is /EditCartSubmit.do. I need to change this to point to the Google checkout URL. I changed the EditCartBody.jsp to include the following form action
<html:form method="POST" action="https://sandbox.google.com/checkout/cws/v2/Merchant/xxxxxxxx/checkout">
but it seems to break the site and i notice the following error in the Tomcat logs
31-Oct 12:20:35 ERROR (InsertTag.java:doEndTag:922) ServletException in '/WEB-INF/jsp/EditCartBody.jsp': javax.servlet.jsp.JspException: Cannot retrieve mapping for action /https://sandbox.google.com/checkout/cws/v2/Merchant/643237515230848/checkout
org.apache.jasper.JasperException: An exception occurred processing JSP page /WEB-INF/jsp/EditCartBody.jsp at line 33
30:
31: <% boolean outOfStock=false; %>
32: <table border="0" width="100%" cellspacing="0" cellpadding="0">
33: <html:form method="POST" action="https://sandbox.google.com/checkout/cws/v2/Merchant/xxxxxxxx/checkout">
34:
35:
36: <html:hidden name="EditCartForm" property="goToCheckout" value=""/>
I believe there are some changes required in the struts-config.xml file and/or updates to the forms code.
Please advise
Regards
Shiva
Hello Shiva,
It's difficult to help you since we don't really understand what you are trying to accomplish. If you are attempting to integrate KonaKart with a new payment gateway you should follow one of our examples and look at some previous forum threads such as http://www.konakart.com/forum/index.php/topic,97.0.html for further guidelines.
-Julie
Hi Julie
What i'm trying to do is, to link the checkout process to Google checkout, instead of posting to the default method that is configured with the installation. I checked out the link that you sent me but its basically related to SOAP/XML payment methods. Google checkout offers a SOAP/XML API as well as the traditional HTML API. The HTML API requires constructing an HTML form with hidden form objects for the product, viz quantity, price, etc and the form action needs to be set to https://sandbox.google.com/checkout/cws/v2/Merchant/xxxxxxxx/checkout
Also, coming back to the link you sent to me, I'm not sure if that would work for Google checkout as i'm not using the XML API version for Google
Please let me know if you have any further details i could send out
Warm Regards
Shiva
Quote
The HTML API requires constructing an HTML form with hidden form objects for the product, viz quantity, price, etc and the form action needs to be set to https://sandbox.google.com/checkout/cws/v2/Merchant/xxxxxxxx/checkout
The Chronopay, PayPal and WorldPay gateways that we ship work exactly like this. You should follow these examples. The jsp that actually does the post using the parameters returned by the payment modules is CatalogCheckoutExternalPaymentBody.jsp.
-Julie