function uc_recurring_hosted_subscription_save 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_subscription_save()
Save a new subscription ID
2 calls to uc_recurring_hosted_subscription_save()
- uc_recurring_hosted_authorizenet_arb_process in modules/
uc_recurring_hosted/ uc_recurring_hosted.module - Set up the recurring fee using the ARB API.
- uc_recurring_hosted_paypal_wpp_process in modules/
uc_recurring_hosted/ uc_recurring_hosted.module - PayPal website payments pro process.
File
- modules/
uc_recurring_hosted/ uc_recurring_hosted.module, line 166 - Provides hosted gateway specific code for recurring payments, specifically Authorize.net ARB and Paypal WPS
Code
function uc_recurring_hosted_subscription_save($rfid, $subscription_id) {
// Delete an existing record.
uc_recurring_hosted_subscription_delete($rfid);
$object = new stdClass();
$object->rfid = $rfid;
$object->subscription_id = $subscription_id;
module_invoke_all('uc_recurring_hosted_subscription_save', $object);
drupal_write_record('uc_recurring_hosted', $object);
}