Please highlight the template copy it and then paste it in the forum we can not see the entire template. When you paste it here highlight it again and press the </> button.
At first glance with the small part of your template that you have shown @QMcKay is right you should only have one [PAYMENTS] section. Also it seems you may not understand how to build a template so please refer to here: