1 reply [Last post]
PaulW's picture
Offline
Joined: 05/23/2008
Juice: 148
Was this information Helpful?

Ubercart 1.6; Drupal 5.14

When a credit card refund comes through (PayPal Website Payment Pro) I'd like to enter a comment for the user that indicates the payment was refunded. I set up an order status of "payment_refunded" (title: "Payment refunded", status: "completed"). I think if I can determine that the payment amount is negative in workflow_ng, then I can add a status record using something like:

<?php
($order->order_id, 0, 'Order status updated).', 'order', 'Payment refunded');
?>

But, how can I tell if the payment amount is negative?

Maybe there's a more simple way to set a comment for a refund - I'm all ears for that!

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Order Status for 'Refund'?

Hmm... you can't really... the only thing you can check it the order balance, which I suppose is somewhat helpful. If the order balance > $0.00 then a refund occurred. (Although it could be a case of partial completion.)