function hook_payment_gateway_charge in Ubercart 6.2
Credit card charge callback.
Called when a credit card should be processed. Credit card details supplied by the user are available in $order->payment_details[].
Parameters
$order_id: The order ID that the payment relates to.
$amount: The amount that should be charged.
$data: An array of data related to the charge. By default, includes a 'txn_type' key which defines the transaction type, usually UC_CREDIT_AUTH_ONLY or UC_CREDIT_AUTH_CAPTURE.
Return value
Returns an associative array with the following members:
- "success": TRUE if the transaction succeeded, FALSE otherwise.
- "message": a human-readable message describing the result of the transaction.
- "log_payment": TRUE if the transaction should be regarded as a successful payment.
See also
File
- docs/
hooks.php, line 1007 - These are the hooks that are invoked by the Ubercart core.
Code
function hook_payment_gateway_charge($order_id, $amount, $data) {
}