I'm using UC Beta1.
I have a module where I update the database after an order has been paid for. When using the check option for payment type the following code works perfectly. However, when I switch over to Paypal and complete my payment there I get returned back to my site and it appears as though this is not being executed. Is there something I am doing wrong?
Here's the code I'm using:
<?php
function credit_order($op, &$arg1, $arg2) {
switch ($op) {
case 'submit':
$credits = '1.50';
db_query("INSERT INTO {credit_user} (uid, credits) VALUES (%d, '%s')", $arg1->uid, $credits);
break;
}
}
?>Thanks,
Quinton



.