Well, invesitgatin the code and testing with some code of the paypal gateway i almos have the sistem automated.
I pass the PAYMENT_OK url to the bank --> http:/
www.example.com/es/component/booking/?co...itcard&paid=receive&cid[0]=79&hash=4232ed4a3f77680cbfa0439a6947c3f1">
So when the payment is ok, it calls to the reservation controler and it changes the reservation as PAYED. Thats ok.
I also pass the PAYMENT_KO (not OK) url to the bank --> http:/
www.example.com/es/component/booking/?co...itcard&paid=storno&cid[0]=79&hash=4232ed4a3f77680cbfa0439a6947c3f1">
So when the payment is not OK, it calls to the reservation controler and it cancels the reservation. Thats ok.
The only thing is, when the payment is not made, it returns again to the payment page, but it display a "SUCESFULL" mensage at the top, so it would be confusing for the client.
How can it desactivate it when the paid is 'storno'? Thats the correct value for canceling an order and keep it as non-paided?
Thanks & Best Regards.