Author: ashish
Date: Fri May 29 11:23:16 2009 New Revision: 779935 URL: http://svn.apache.org/viewvc?rev=779935&view=rev Log: For now we are providing the option to send cart info to the Google Checkout. So anonymous user can also do checkout after selecting cart lines items. No need to secure services for now. Modified: ofbiz/trunk/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/PrepareXMLTemplate.xml ofbiz/trunk/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/ShoppingCartServices.xml Modified: ofbiz/trunk/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/PrepareXMLTemplate.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/PrepareXMLTemplate.xml?rev=779935&r1=779934&r2=779935&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/PrepareXMLTemplate.xml (original) +++ ofbiz/trunk/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/PrepareXMLTemplate.xml Fri May 29 11:23:16 2009 @@ -22,7 +22,7 @@ xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd"> - <simple-method method-name="transmitRequest" short-description=""> + <simple-method method-name="transmitRequest" short-description="" login-required="false"> <!-- Connect, there may be ofbiz HttpClient.java that may handle this well --> <call-service service-name="connectToGoogleCheckoutServer"> <result-to-field result-name="conn"/> @@ -44,7 +44,7 @@ <field-to-result field="redirect"/> </simple-method> <!-- Step 1 --> - <simple-method method-name="connectToGoogleCheckoutServer" short-description="create connection to Google Checkout server"> + <simple-method method-name="connectToGoogleCheckoutServer" short-description="create connection to Google Checkout server" login-required="false"> <call-simple-method method-name="createRequestUrl"/> <call-simple-method method-name="getHttpAuth"/> <call-bsh><![CDATA[ @@ -64,7 +64,7 @@ ]]></call-bsh> <field-to-result field="conn"/> </simple-method> - <simple-method method-name="createRequestUrl" short-description=""> + <simple-method method-name="createRequestUrl" short-description="" login-required="false"> <!-- Setup Url spec --> <property-to-field resource="googleCheckout" property="basePostUrl" field="basePostUrl"/> <property-to-field resource="googleCheckout" property="merchantId" field="merchantId"/> @@ -74,7 +74,7 @@ <field field="urlSpec"/> </create-object> </simple-method> - <simple-method method-name="getHttpAuth" short-description=""> + <simple-method method-name="getHttpAuth" short-description="" login-required="false"> <property-to-field resource="googleCheckout" property="merchantId" field="merchantId"/> <property-to-field resource="googleCheckout" property="merchantKey" field="merchantKey"/> <set field="userNameAndPass" value="${merchantId}:${merchantKey}"/> @@ -84,7 +84,7 @@ <set field="HttpAuth" value="Basic ${encodedValue}"/> </simple-method> <!-- Step 2 --> - <simple-method method-name="createXMLOutput" short-description=""> + <simple-method method-name="createXMLOutput" short-description="" login-required="false"> <!-- create writer --> <create-object class-name="java.io.StringWriter" field="XMLWriter"/> <!-- create screen context --> @@ -123,7 +123,7 @@ <set field="content" value="${bsh:XMLWriter.toString()}"/> </simple-method> <!-- Step 3 --> - <simple-method method-name="setupContent" short-description=""> + <simple-method method-name="setupContent" short-description="" login-required="false"> <call-bsh><![CDATA[ sWriter = new OutputStreamWriter(conn.getOutputStream()); return org.ofbiz.base.util.UtilMisc.toMap("sWriter", sWriter); @@ -137,7 +137,7 @@ <call-object-method method-name="close" obj-field="writer"/> </simple-method> <!-- Step 4 --> - <simple-method method-name="getResponse" short-description=""> + <simple-method method-name="getResponse" short-description="" login-required="false"> <clear-field field="sReader"/> <call-bsh><![CDATA[ try { @@ -162,7 +162,7 @@ <set field="response" value="${bsh:buffer.toString()}"/> </simple-method> <!-- Step 5 --> - <simple-method method-name="getReDirectFromXmlDoc" short-description=""> + <simple-method method-name="getReDirectFromXmlDoc" short-description="" login-required="false"> <call-bsh><![CDATA[ document = org.ofbiz.base.util.UtilXml.readXmlDocument(response, false); return org.ofbiz.base.util.UtilMisc.toMap("document", document); @@ -172,7 +172,7 @@ Skipping for now --> <call-simple-method method-name="getRedirectFromRootElement"/> </simple-method> - <simple-method method-name="getRedirectFromRootElement" short-description=""> + <simple-method method-name="getRedirectFromRootElement" short-description="" login-required="false"> <call-class-method method-name="childElementList" class-name="org.ofbiz.base.util.UtilXml" ret-field="childList"> <field field="rootElement" type="org.w3c.dom.Element"/> </call-class-method> Modified: ofbiz/trunk/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/ShoppingCartServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/ShoppingCartServices.xml?rev=779935&r1=779934&r2=779935&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/ShoppingCartServices.xml (original) +++ ofbiz/trunk/specialpurpose/googlecheckout/script/org/ofbiz/googleCheckout/ShoppingCartServices.xml Fri May 29 11:23:16 2009 @@ -21,7 +21,7 @@ <simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd"> - <simple-method method-name="ConvertOfbizCartToGoogle" short-description=""> + <simple-method method-name="ConvertOfbizCartToGoogle" short-description="" login-required="false"> <set field="cart" from-field="parameters.shoppingCart"/> <call-simple-method method-name="createShoppingCart"/> <field-to-result field="googleCart"/> @@ -33,7 +33,7 @@ <field-to-result field="sendInitialAuthDetails"/> </simple-method> - <simple-method method-name="createShoppingCart" short-description=""> + <simple-method method-name="createShoppingCart" short-description="" login-required="false"> <call-simple-method method-name="setupItems"/> <set field="googleCart.items" from-field="items"/> @@ -44,7 +44,7 @@ <set field="googleCart.merchantPrivateData" from-field="merchantPrivateData"/> </simple-method> - <simple-method method-name="createCheckoutFlowSupport" short-description=""> + <simple-method method-name="createCheckoutFlowSupport" short-description="" login-required="false"> <property-to-field resource="googleCheckout" property="editCartUrl" field="flowSupport.editCartUrl"/> <property-to-field resource="googleCheckout" property="continueShoppingUrl" field="flowSupport.continueShoppingUrl"/> <property-to-field resource="googleCheckout" property="requestPhone" field="flowSupport.requestPhone"/> @@ -61,10 +61,10 @@ </simple-method> <simple-method method-name="createorderProcessingSupport" - short-description="holding method for improvement; must return sendInitialAuthDetails"> + short-description="holding method for improvement; must return sendInitialAuthDetails" login-required="false"> <set field="sendInitialAuthDetails" value="false" type="Boolean"/> </simple-method> - <simple-method method-name="setupItems" short-description=""> + <simple-method method-name="setupItems" short-description="" login-required="false"> <!-- Get Items from Cart --> <call-object-method method-name="items" obj-field="cart" ret-field="cartItems"/> <iterate entry="item" list="cartItems"> |
Free forum by Nabble | Edit this page |