What code do i use to make this relationship between the button and the multiple price changes in all packs

Hellow everyone, i have a question on what code i must use that switch payment types like this exemple here, what is the code that i must use to make this relationship between the button and the price change?

Best Regards, Gustavo