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/23 15:22:41 UTC

hosted payment page : paypal'ish

Hi

I am doing an integration to a hosted payment page which operates in a similar vein to PayPal and need a little assistance.

As per PayPal we specify a Return URL, Cancel URL and Image URL which are sent as url parameters in the redirect.

# Portal Universe Return URL
payment.portaluniverse.return=https://xxx-xxxx.dyndns.biz:8443/a4u-ecommerce/control/portalUniverseNotification

# Portal Universe Cancel URL
payment.portaluniverse.cancel=http://xxx-xxxx.dyndns.biz:8080/a4u-ecommerce/control/cancelonexternal

# Image To Use On Portal Universe
payment.portaluniverse.image=http://xxx-xxxx.dyndns.biz:8080/images/ofbiz_logo.jpg


The redirect to the hosted payment page is successful, with the hosted payment page displayed in my browser. The hosted payment page is able to display my logo, as defined by payment.portaluniverse.image, which leads me to believe that the basic networking setup is correct.

When the transaction is canceled on the hosted payment page a redirect to http://xxx-xxxx.dyndns.biz:8080/a4u-ecommerce/control/cancelonexternal should take place, but unfortunately fails with the following message "Firefox can't establish a connection to the server at xxx-xxxx.dyndns.biz:8080."

a4u-ecommerce is a custom version of the generic OFBiz ecommence component. Below is the definition of the cancelonexternal request.

<request-map uri="cancelonexternal">
        <security https="false" direct-request="false"/>
        <event type="java" path="com.gat.connectivity.cancel.external.Cancel" invoke="cancel"/>
        <response name="success" type="request" value="africa4youCancel"/>
        <response name="fail" type="request" value="africa4youCancel"/>
        <response name="error" type="request" value="africa4youCancel"/>
</request-map>

Any help would be appreciated.

Kind regards

Grant



      

Re: hosted payment page : paypal'ish

Posted by Marco Risaliti <mr...@libero.it>.
Hi Grant,

it seems to me that your request-map cancelonexternal is similar to  
the predefined in the ecommerce component that is "payPalCancel".
Have you tried to remove the attribute  direct-request="false" ?
Alternatively you can try with the "payPalCancel" request map and see  
if it's working and take a look at the console logs.

Marco

Il giorno 23/apr/09, alle ore 15:22, Grant Edwards ha scritto:

> Hi
>
> I am doing an integration to a hosted payment page which operates in  
> a similar vein to PayPal and need a little assistance.
>
> As per PayPal we specify a Return URL, Cancel URL and Image URL  
> which are sent as url parameters in the redirect.
>
> # Portal Universe Return URL
> payment.portaluniverse.return=https://xxx-xxxx.dyndns.biz:8443/a4u-ecommerce/control/portalUniverseNotification
>
> # Portal Universe Cancel URL
> payment.portaluniverse.cancel=http://xxx-xxxx.dyndns.biz:8080/a4u-ecommerce/control/cancelonexternal
>
> # Image To Use On Portal Universe
> payment.portaluniverse.image=http://xxx-xxxx.dyndns.biz:8080/images/ofbiz_logo.jpg
>
>
> The redirect to the hosted payment page is successful, with the  
> hosted payment page displayed in my browser. The hosted payment page  
> is able to display my logo, as defined by  
> payment.portaluniverse.image, which leads me to believe that the  
> basic networking setup is correct.
>
> When the transaction is canceled on the hosted payment page a  
> redirect to http://xxx-xxxx.dyndns.biz:8080/a4u-ecommerce/control/cancelonexternal 
>  should take place, but unfortunately fails with the following  
> message "Firefox can't establish a connection to the server at xxx- 
> xxxx.dyndns.biz:8080."
>
> a4u-ecommerce is a custom version of the generic OFBiz ecommence  
> component. Below is the definition of the cancelonexternal request.
>
> <request-map uri="cancelonexternal">
>        <security https="false" direct-request="false"/>
>        <event type="java"  
> path="com.gat.connectivity.cancel.external.Cancel" invoke="cancel"/>
>        <response name="success" type="request"  
> value="africa4youCancel"/>
>        <response name="fail" type="request" value="africa4youCancel"/>
>        <response name="error" type="request"  
> value="africa4youCancel"/>
> </request-map>
>
> Any help would be appreciated.
>
> Kind regards
>
> Grant
>
>
>