function uc_pma_method_items in Ubercart Payment Method Adjustments 6
1 string reference to 'uc_pma_method_items'
- uc_pma_menu in ./
uc_pma.module - Implementation of hook_menu().
File
- ./
uc_pma.module, line 133 - This module hooks into a few different parts of Ubercart to allow store administrators to associate a fee or discount with payment methods.
Code
function uc_pma_method_items($payment_method) {
drupal_set_header("Content-Type: text/javascript; charset=utf-8");
$order = $_POST['order'];
if ($order = unserialize(rawurldecode($order))) {
$order->payment_method = $payment_method;
$adjustment = _payment_method_adjustment($order);
print $adjustment['value'] . '|' . $adjustment['description'];
}
exit;
}