function uc_recurring_hosted_paypal_wpp_renew 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_paypal_wpp_renew()
Setup a mock renew handler to process through UC Recurring.
Parameters
$order: Order object.
$fee: Recurring fee object.
Return value
TRUE if payment has been received.
1 string reference to 'uc_recurring_hosted_paypal_wpp_renew'
- uc_recurring_hosted_recurring_info in modules/
uc_recurring_hosted/ uc_recurring_hosted.module - Implements hook_recurring_info().
File
- modules/
uc_recurring_hosted/ uc_recurring_hosted.module, line 1003 - Provides hosted gateway specific code for recurring payments, specifically Authorize.net ARB and Paypal WPS
Code
function uc_recurring_hosted_paypal_wpp_renew($order, &$fee) {
module_load_include('inc', 'uc_recurring_hosted', 'uc_recurring_hosted.paypal_ipn');
$fee->ipn->order_id = $order->order_id;
_uc_recurring_hosted_paypal_ipn_payment($fee->ipn);
if ($fee->ipn->payment_status == 'Completed' && $fee->ipn->txn_type == 'recurring_payment') {
return TRUE;
}
return FALSE;
}