Hi
I am in process of writing a payment plugin and have a number of problems which have been unable to find answer for as yet.
1. In the 'onAfterOrderConfirm' method I make a SOAP call to payment server and am issued with a transaction id and redirection url. All good but when I try to update order details nothing is happening. I originally traced error with $order->order_url and have implemented your suggestion to place an unset command before the save, still no data goes to database.
2. After returning from the Payment Gateway screen in 'onPaymentNotification' I get all necessary data I was expecting and process and update order in database ( strangely the save works here even though order object looks same as in previous 'onAfterOrderConfirm' call ). One problem is that Joomla is not associating the page with the template correctly so it is reverting to the system template ebven though this is not default. The other problem may be directly related to this as nothing happens after this. I have checked the other payment plugins and seems nothing different, just process, send emails and then save order, yet with the other plugins a screen is displayed with appropriate messages.
The urls I am sending to payment gateway were constructed based on those I saw in other plugins
i.e.
This is what I send
www.website.co.uk/index.php?option=com_h...t&lang=en&Itemid=430
This is after payment gateway appends
www.website.co.uk/index.php?option=com_h...LINED&PageSource=WEB
( website address is on internal server so I cannot give access ).
I may be misunderstanding the process but it seems from looking at the other plugins that 'onPaymentNotification' is called, processes and returns, where and how is it then redirected to display another page?
Thanks in advance!