You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Grant Edwards <a4...@yahoo.com> on 2009/04/24 13:33:50 UTC

Re: PayPay Integration : SOLVED

Hi,

It turns out that my local network knew nothing about xxx-xxxx.dyndns.biz, hence the NS_ERROR_CONNECTION_REFUSED that was been displayed in HttpFox, a FireFox plugin that monitors http request and response messages.

Kind regards

Grant




________________________________
From: Grant Edwards <a4...@yahoo.com>
To: user@ofbiz.apache.org
Sent: Friday, April 24, 2009 8:55:49 AM
Subject: Re: PayPay Integration

Hi Marco

Thanks for your input.

The url's are correct, its was a cut and paste error as I was writing the email.

Cheers

Grant 




________________________________
From: "mrisaliti@libero.it" <mr...@libero.it>
To: user <us...@ofbiz.apache.org>
Cc: user <us...@ofbiz.apache.org>
Sent: Friday, April 24, 2009 8:49:34 AM
Subject: Re:PayPay Integration

Hi Grant,

I see that the URLs are not correct:

http:///xxx-xxxx.dyndns.biz:8080/a4u-ecommerce/control/orderhistory (http:/// --> http://)

http:///xxx-xxxx.dyndns.biz:8080/a4u-ecommerce/control/payPalCancel/main (http:/// --> http://)

Are they correct ?

Marco

> Hi,
>
> My PayPal configuration is as follows :
>
> payment.paypal.business=vote@ofbiz.org
> payment.paypal.notify=http://xxx-xxxx.dyndns.biz:8080/a4u-ecommerce/control/payPalNotify
> payment.paypal.return=http:///xxx-xxxx.dyndns.biz:8080/a4u-ecommerce/control/orderhistory
> payment.paypal.cancelReturn=http:///xxx-xxxx.dyndns.biz:8080/a4u-ecommerce/control/payPalCancel/main
> payment.paypal.image=http:///xxx-xxxx.dyndns.biz:8080/images/ofbiz_logo.jpg
> payment.paypal.confirmTemplate=/order/emailconfirmation.ftl
> payment.paypal.redirect=https://www.paypal.com/cgi-bin/webscr
> payment.paypal.confirm=
>
>
> where a4u-ecommerce is a custom OFBiz ecommerce component.
>
> The PayPal request maps are per OOTB, OFBiz release 755534.
>
> <request-map uri="payPalCancel">
>         <security https="true"/>
>         <event type="java" path="org.ofbiz.accounting.thirdparty.paypal.PayPalEvents" invoke="cancelPayPalOrder"/>
>         <response name="success" type="view" value="main"/>
>         <response name="error" type="view" value="main"/>
> </request-map>
>
>
> I am able to redirect to the PayPal site no problem, but when clicking on the "Cancel and Return" link I get the following error:
>
> Firefox can't establish a connection to the server at xxx-xxxx.dyndns.biz:8080
>
>
> Given the correct payment.paypal.image url, a number of my friends are able to see the ofbiz_logo.jpg, so I am fairly happy that the networking is correctly configured.
>
> Starting OFBiz from the command line using ./startofbiz.sh
> Have the vm command line args got anything to do with this?
>
>  uname -a
> Linux gedwards-laptop 2.6.27-11-generic #1 SMP Wed Apr 1 20:57:48 UTC 2009 i686 GNU/Linux
>
>  java -version
> java version "1.6.0_02"
> Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
> Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)
>
>  netstat -nap | grep 8080
> (Not all processes could be identified, non-owned process info
>  will not be shown, you would have to be root to see it all.)
> tcp6       0      0 :::8080                 :::*                    LISTEN      20751/java
>
>
> Any help would be appreciated.
>
> Kind regards
>
> Grant Edwards
>
>
>
>
> Some logging:
>
> RequestHandler.java:539:INFO ] Ran Event [java:org.ofbiz.order.shoppingcart.CheckOutEvents#checkExternalPayment] from [request], result is [paypal]
> 2009-04-23 23:32:39,612 (http-0.0.0.0-8443-1) [     RequestHandler.java:468:INFO ] [RequestHandler.doRequest]: Response is a chained request. sessionId=90E866146FFE865E146DEECFA9F2A97A.jvm1
> 2009-04-23 23:32:39,612 (http-0.0.0.0-8443-1) [     RequestHandler.java:155:INFO ] [RequestHandler]: Chain in place: requestUri=callPayPal overrideViewUri=null sessionId=90E866146FFE865E146DEECFA9F2A97A.jvm1
> 2009-04-23 23:32:39,677 (http-0.0.0.0-8443-1) [     RequestHandler.java:539:INFO ] Ran Event [java:org.ofbiz.accounting.thirdparty.paypal.PayPalEvents#callPayPal] from [request], result is [success]
> 2009-04-23 23:32:39,698 (http-0.0.0.0-8443-1) [     ControlServlet.java:299:INFO ] [[[processorder] Request Done- total:1.427,since last([processorder] Re...):1.427]]
> 2009-04-23 23:32:52,572 (default-invoker-Thread-6) [         JobInvoker.java:230:INFO ] Invoker [default-invoker-Thread-6] received job [1240522359067] from poller [org.ofbiz.service.job.JobPoller@9444d1]
> 2009-04-23 23:32:52,579 (default-invoker-Thread-6) [PersistedServiceJob.java:176:INFO ] org.ofbiz.service.job.PersistedServiceJob@1be4050[45702] -- Next runtime: Thu Jan 01 01:59:59 SAST 1970
> 2009-04-23 23:32:52,770 (default-invoker-Thread-6) [  ServiceDispatcher.java:578:INFO ] Sync service [JobDispatcher/addSuggestionsToShoppingList] finished in [105] milliseconds
>
>
>