Payment Received Event not fired

sunsetco - December 8, 2008 - 12:17
Project:UC Free Order Payment Method
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Free Order returns the Event "Order Completed" after an order gets processed.

I checked the Workflows set up under Workflow_ng. Some items do not fire until "Payment Received" is triggered on the order. Since Free Order is not sending back that a payment was received, some things don't get processed.

In my case, I am using uc_node_access. Everything works fine for users who are making payments, but I am distributing some coupons to certain users for free access to certain nodes. They do not get access until I go into the Orders section and enter a payment ($0.00) for that order. As soon as I do, the workflow is fired and they get the access they "purchased" with the coupon.

Can Free Order return a "Payment Received" instead of just "Order Completed"? If so, then it should solve this problem for modules that are waiting for Payments before continuing.

Meanwhile, every order using Free Order needs to have a manual payment of ZERO entered so Ubercart thinks they got paid...

#1

rszrama - December 10, 2008 - 16:00
Status:active» fixed

I think I may have answered this for you on Ubercart.org, but I'll put the follow-up here as well:

The gist of it is a payment isn't being made, so I don't believe one should be entered for the order. However, this module could use a default Wf-ng configuration that updates orders to "Payment received" upon order completion. I used a simple one on a recent site...

Upon order completion
If payment method is "Free order"
and the balance <= $0.00
Update the order status to completed

#2

sunsetco - December 12, 2008 - 21:09
Status:fixed» active

Thanks to a suggestion from Ryan, I set up a new workflow that changes an order from Completed to Payments Received when the amount due is Zero. Now everything works fine.

#3

sunsetco - December 12, 2008 - 21:10
Status:active» closed

#4

jo1ene - March 6, 2009 - 19:43

This is a crucial action for uc_role and uc_file. I don't see why a payment of ZERO can't be made to ensure the granting roles and files if applicable.

#5

rszrama - March 10, 2009 - 14:08

Well... conceptually, you can't make a $0 payment to someone. You wouldn't have a $0 payment show up in your bank account to your checking account. Instead, you just know when an order doesn't need payment to be considered complete. That's why the recommended course of action was to define the Wf-ng configuration to implement the "what if this order is free?" business rule.

 
 

Drupal is a registered trademark of Dries Buytaert.