Insert bank detail in email if the user choose to pay with bank transfer I want to add a to order checkout emails the bank account details managed by commerce_bank_transfer module.
I create a rule for the order with the bank transfer payment method but I'm not undertanding how to add in the mail my site's bank account infos.

I tryed to add this code to the email 

&lt;?php
   $payment_method = commerce_payment_method_load('bank_transfer');
   echo commerce_bank_transfer_bank_details($commerce_order-&gt;order_id, $payment_method);  
?&gt;


I did some test and in the mail there is nothing where I was expecting my bank info.

Reading commerce_bank_transfer module I saw that commerce_bank_transfer_bank_details function request a 'setting' key in the $payment_method array but if I retry the payment method by  

commerce_payment_method_load('bank_transfer');


I have no 'setting' key.

How can I retry the setting from a payment method?
I solve with this code: 

&lt;?php 
$payment_method = commerce_payment_method_instance_load($commerce_order-&gt;data['payment_method']);
echo commerce_bank_transfer_bank_details($commerce_order-&gt;order_id, $payment_method); 
?&gt;


commerce_payment_method_instance_load() function need in input a string like  

'bank_transfer|commerce_payment_bank_transfer'   

and it returns a paymente method with all data [ setting included ]