I'm developing a custom payment module for OpenCart. For this, i want a specific order total, but i'm unsure how to make a order total count only for this payment option.
So far i've laid out the basic file structures for a payment module, and i can choose it on checkout. I have also added my own order total to catalog/model/total
I'm guessing that i need some logic in the getMethod of catalog/model/payment/my_payment_module
Can anyone point me in the right direction?
I ended up solving this myself.
I added a new Order Total class. Inside it i checked for the correct payment method in the session before returning anything.
All the totals will update when the payment method is changed, so this works fine.