There is a typo in the following function for SEPA integration:
$ane_values['swift'] => Should have a P: $pane_values['swift']
So currently this variable does not work at all.
/**
* Payment method callback: submit form submission.
*/
function commerce_directdebit_submit_form_submit($payment_method, $pane_form, $pane_values, $order, $charge) {
$settings = $payment_method['settings'];
$order->data['commerce_directdebit'] = $pane_values;
if ($settings['merchant_enable_sepa']) {
commerce_directdebit_transaction($payment_method, $order, $charge, $pane_values['account_name'], '', '', $pane_values['debit_date'], $ane_values['swift'], $pane_values['iban']);
}
else {
commerce_directdebit_transaction($payment_method, $order, $charge, $pane_values['account_name'], $pane_values['sort_code'], $ane_values['account_number'], $pane_values['debit_date'], '', '');
}
}
Comments
Comment #1
anybodyComment #2
fastangel commentedThis bug was fixed with the last commit.