Contrib type:
Code/CSS Snippet
Status:
Initial upload
Moderation:
Awaiting moderation Downloads
Compatibility:
Ubercart 1.x This code in a custom module will allow for recurring billing through authorize.net based on order total.
The use case for this is recurring shippable physical goods. This will take into account things like coupons, taxes, discounts, and shipping. The use case would be a recurring physical good shipment like fruit of the month, flowers of the month, book of the month, or anthing you need to bill for and have the order total be the recurring fee.
<?php
function example_recurring_fee($order, $fee) {
$fee->fee_amount = $order->order_total;
return
uc_authorizenet_arb_create($order, $fee);
}
?>Related threads:
