Hi Cyrille,
I cuted the msg a bit ;o)
It would be great if we could have a skeletal solutions (Atos SIPS is widely
used in France and perhaps in Europe, at least Benelux I guess).
For the moment, all I can give you is an idea of what was done in last case. As
I said before It's *surely not best practices*, just to give you an idea of how
he did it. My friend gaves me that : (a bsh snippet). I did not review the code
(just made some formatting) ...
if("ORDER_PROCESSING".equals(orderHeader.getString("statusId"))) {
beganTransaction = TransactionUtil.begin(); // modify the order role first
- reset it to the current logged person
orderRoleList = delegator.findByAnd("OrderRole", UtilMisc.toMap("orderId",
orderId, "roleTypeId", "PLACING_CUSTOMER"));
orderRole = null;
if(orderRoleList.size() > 0) {
orderRole = orderRoleList.get(0);
delegator.removeByAnd("OrderRole", UtilMisc.toMap("orderId", orderId,
"roleTypeId", "PLACING_CUSTOMER"));
orderRole.set("partyId", userLogin.getString("partyId"));
delegator.create(orderRole);
}
}
HTH
Jacques
----- Original Message -----
From: Cyrille de Lambert
To: Jacques Le Roux
Cc: [email protected]
Sent: Wednesday, August 02, 2006 10:26 PM
Subject: Re: Add new payement method
I Jacques,
I use the same solution which was sent to me by cyberplus. I want to make a
reusable and easily skeletal solution as for the American means of payment. I
think of making an interface easy implemnt and usable for other means of
French payment.
I want know best practices
Regards
Cyrille
Jacques Le Roux a écrit :
Hi Cyrille,
The guys who did this job was working with Atos solution (SIPS : secured
internet paiement system). I don't know if your solution is alike, let me know.
His solution is working but he did it very quickly (so a bit dirty ;o) with
BeanShell.
Jacques