Help modifying the commerce_bank_transfer module


I'm trying to fix the commerce_bank_transfer module so that it will display the bank info on the checkout completion page.

I'm stuck though, as I don't know which hook to use.

I've managed to change the order status to pending:

function commerce_bank_transfer_commerce_checkout_router($order, $checkout_page) {
if ($checkout_page['page_id'] == 'complete' && $order->data['payment_method'] == 'bank_transfer|commerce_payment_bank_transfer') {
drupal_set_message(t('Your order is in pending state.'), 'status');
commerce_order_status_update($order, 'pending', FALSE, TRUE, t('order status updated by commerce_bank_transfer module'));

but I cannot add the bank details in this page.

Could someone help?

Posted: Jun 19, 2011