RE: Free event and event passes
Hi Mika,
Currently we need knowledge of Angular to ahieve your requirement.
The total price will be calcuated in eventregistration.component.ts, (get the value in browserSessionService.getRegistrationTotal() function)
You could take following steps as reference:
1. In following modified code, registerToEvent function(It already existed in default file, I just changed code inside the function) will be executed when we click "Checkout" button
it will only navigate user to payment gateway when total price is greater than 0.
2. Execute logic in finalizePurchase(in payment.demo.ts) directly in previous else condition.
You should modify your own finalizePurchase(actually finalizeRegistration) function to complete final registration.
(I have only trial marketing application environment, which I can't test real payment gateway feature. )
In other word, you still need to modify your own payment gateway code to skip payment process based on value from browserSessionService.getRegistrationTotal().
Regards,
Clofly