function hook_uc_payment_entered in Ubercart 6.2
Same name and namespace in other branches
- 7.3 payment/uc_payment/uc_payment.api.php \hook_uc_payment_entered()
Takes action when a payment is entered for an order.
Parameters
$order: The order object.
$method: The name of the payment method used.
$amount: The value of the payment.
$account: The user account that entered the order. When the payment is entered during checkout, this is probably the order's user. Otherwise, it is likely a store administrator.
$data: Extra data associated with the transaction.
$comment: Any comments from the user about the transaction.
1 invocation of hook_uc_payment_entered()
- uc_payment_enter in payment/
uc_payment/ uc_payment.module - Enters a payment for an order.
File
- docs/
hooks.php, line 1661 - These are the hooks that are invoked by the Ubercart core.
Code
function hook_uc_payment_entered($order, $method, $amount, $account, $data, $comment) {
drupal_set_message(t('User @uid entered a @method payment of @amount for order @order_id.', array(
'@uid' => $account->uid,
'@method' => $method,
'@amount' => uc_price($amount, array(
'location' => 'hook-payment',
'revision' => 'formatted-original',
)),
'@order_id' => $order->order_id,
)));
}