I have solved "Receiving response" by creating URI as you suggested before.
<!-- cybersource -->
<request-map uri="csreceipt">
<event type="service" invoke="csreceipt"/>
<response name="success" type="view" value="PaymentReceipt"/>
<response name="error" type="view" value="main"/>
</request-map>
where csreceipt is a java service which takes some not all parameters
posted by CyberSource return.
works like a dream.
Thank you
Jacek
BJ Freeman wrote:
Payments are setup different than the way your are doing it
the paypal is in the accounting and is setup through the product store
as an external payment.
http://docs.ofbiz.org/display/OFBIZ/Payment+Services
you can find the code
http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/
this is the cycbersource code for gateway
http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/thirdparty/cybersource/
you would use the post method
http://apps.cybersource.com/library/documentation/sbc/SOP_UG/html/
look at reply pages
Jacek Wagner sent the following on 4/20/2009 4:52 PM:
Calling cybersource is done and i will be more than happy to share my
solution. Receiving response is my problem. I could not find any paypal
specific reference in controller for payment and order application alike.
J
BJ Freeman wrote:
if you want to integrate it into ofbiz, like paypal take a look at that
implementation.
Note: you have to pass information so they have someway to Identify you.
one piece is the return URL
so make a URI in your controller that will process the returned info.
Jacek Wagner sent the following on 4/20/2009 4:21 PM:
All,
From the ftl written form I am calling cybersource to process credit
card payment (note i am not allowed to pass any information)
What would be the best way to capture cybersource posted response?
<!-- //
function lookupOrders(click) {
document.lookuporder.action =
"https://orderpagetest.ic3.com/hop/orderform.jsp";
if (click) {
document.lookuporder.submit();
}
return true;
}
// -->
Jacek