Button In Payment Gateway Tpl

Hi Guys,

I am trying to create a new payment gateway where a user has to validate a code sent to his phone as a payment option. I have done the tpl code it works. What i want to do is add a button to check the database for the code before the order is completed.

Heres my code

{__("customer_name")}:
{__("customer_phone")}:
{__("receipt_code")}:

I need to add a button below to validate code the tell the user congratulations you can now submit your order.

I have a php file but its not in cs cart format.

[attachment=10824:buy.php]

Please help

buy.php

Our team can help you to complete this integration. Feel free to contact us to get a free quote