Get Payment method settings in Drupal Commerce


In this example I'm using the Commerce payment gateway integration module, which provides the payment method named as "authnet_aim". The commerce_payment_method_instance_load() function, Returns a payment method instance array which includes the settings specific to the context of the instance.

Get raw version
  1. <?php
  2. $payment = commerce_payment_method_instance_load('authnet_aim|commerce_payment_authnet_aim');
  3. ?>