function uc_recurring_mock_gateway_order in UC Recurring Payments and Subscriptions 6.2
Same name and namespace in other branches
- 7.2 test/uc_recurring_mock_gateway.module \uc_recurring_mock_gateway_order()
Implements hook_order
File
- test/
uc_recurring_mock_gateway.module, line 30 - Uc recurring implementation for the test gateway module.
Code
function uc_recurring_mock_gateway_order($ops, $arg1, $arg2) {
switch ($ops) {
case 'submit':
if ($arg1->payment_method == 'mock_gateway') {
uc_payment_enter($arg1->order_id, 'mock_gateway', $arg1->order_total, 0, NULL, t('Inital order payment.'));
}
break;
}
}