The only place that createorder part is working is at processPayment so i put it there. My main problem is to find a way to pass the total amount from cart to vivapayment, i guess this has to be done using only the session and not db for example.
Ehm i want to ask something last. It is about the transaction.
I use this code github.com/VivaPayments/API/commit/089ac...138d13268564cd660351
into verifypayment() to verify transaction and get the transaction id. But it seems that verifypayment is never executed. Since the payment is completed(or not) in payment environment you return back to my eshop and done!
Where i write that code to get that transaction id so i can post it in completed order screen?