I'm writing an offsite payment method for Drupal Commerce (I need that to interact with my bank API). The thing is that when I create a form to send to payment server via
PAYMENT_redirect_form I have the only button - SUBMIT there. I want to add one more button there - smth like GO A STEP BACK to return to checkout state. So, i've created one more button, but it performs the same action as SUBMIT - goes to payment server... I think i'm missing smth very simple, but how can i make that one more button in payment submition form to perform a step back like those we have in checkout proccess?
Will be very thankful for your advice :)