1 reply [Last post]
kerunt's picture
Offline
Bug Finder
Joined: 05/05/2008
Juice: 158
Was this information Helpful?

Hi all,

I'm using uc_subscriptions to handle renewing orders (membership subscriptions).

Here's a scenario: a user's subscriptions needs to renew. It gets processed in the cron hook and for one reason or another the payment processor declines the transaction.

In this case I need to send an email to the user informing them of the problem.

I've looked through the uc_subscribe code (hook_order in particular), and can't seem to find the place where this event occurs. Any suggestions on how to tackle this?

Thanks!

kerunt's picture
Offline
Bug Finder
Joined: 05/05/2008
Juice: 158
OK, finally found it . In

OK, finally found it Smiling.

In uc_subscribe, this is the line:

<?php
$res
= uc_payment_process($neworder->payment_method, $neworder_id, uc_payment_balance($neworder), NULL, TRUE);
?>