function commerce_sermepa_submit_form_submit in Commerce sermepa 7
Payment method callback: submit form submission.
File
- ./
commerce_sermepa.module, line 668 - Provides a payment method for Drupal Commerce using Sermepa/Redsys gateway.
Code
function commerce_sermepa_submit_form_submit($payment_method, $pane_form, $pane_values, $order, $charge) {
// We need to discern if the payment is being added through the administration
// form to create the transaction. We haven't found a better way than checking
// that the form element "Ds_AuthorisationCode" is present.
if (!empty($pane_form['Ds_AuthorisationCode'])) {
commerce_sermepa_process_transaction($order, $payment_method, $pane_values);
}
}