function uc_recurring_hosted_uc_auth_arb_payment in UC Recurring Payments and Subscriptions 7.2
Same name and namespace in other branches
- 6.2 modules/uc_recurring_hosted/uc_recurring_hosted.module \uc_recurring_hosted_uc_auth_arb_payment()
Implements hook_uc_auth_arb_payment(). Called during an ARB silent post.
File
- modules/
uc_recurring_hosted/ uc_recurring_hosted.module, line 432 - Provides hosted gateway specific code for recurring payments, specifically Authorize.net ARB and Paypal WPS
Code
function uc_recurring_hosted_uc_auth_arb_payment($post) {
$fee = uc_recurring_hosted_subscription_load($post['x_subscription_id'], 'subscription_id');
if (!empty($fee)) {
$fee = uc_recurring_fee_user_load($fee->rfid);
uc_recurring_renew($fee);
// Log the ARB payment if enabled.
if (variable_get('uc_authnet_report_arb_post', FALSE)) {
watchdog('uc_authorizenet', 'ARB payment reported for order @order_id: <pre>@post</pre>', array(
'@order_id' => $fee->order_id,
'@post' => print_r($post, TRUE),
));
}
}
}