Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Since we will be consuming services from Google over secure socket layer (SSL) we will need to add two certificates from google to our trusted key store, otherwise our call to Google will fail with the following error:

Panel

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 






...

...

  • After updating the properties file, restart OFBiz
  • in your ecomerce application, create a request-uri; for example:
Code Block

<request-map uri="google">

...


  <security auth="false" https="false"/>

...


  <event type="service" invoke="transmitRequest"/>

...


  <response type="view" name="success" value="google"/>

...


</request-map>
  • create a view-map that points to the redirect screen in the google component:
Code Block

<view-map name="google" type="screen" page="component://googlecheckout/widget/GoogleCheckoutScreens.xml#redirect"/>
  • place an link with the google checkout button that points to your google uri next to where ever you have a checkout link
Code Block

<a href="<@ofbizUrl>google</@ofbizUrl>"><img src="googleButton.gif"/></a>