The uc_payflowpro_charge hook was incorrectly calling the uc_cart_complete_order function to create the user for use in the return array. I am guessing this was correct at some point in time but Ubercart has since changed how this should work, therefore I modified the hook using the uc_authorizenet module as an example. This fixes several issues including no order number showing up on the Order Complete page, anonymous users not being logged in after order complete as specified in the Ubercart configuration settings, order numbers being incremented by two, and possibly other side effects I didn't notice. This patch also includes other fixes and code style corrections.
Cheers,
Jon Antoine
www.antoinesolutions.com
| Comment | File | Size | Author |
|---|---|---|---|
| uc_payflowpro.patch | 7.21 KB | jantoine |
Comments
Comment #1
johnalbinWe're using this patch on a production site. Thanks, Antoine!
Comment #2
kwinters commentedI left some of the spacing in string concatenation the way it was, because of http://drupal.org/coding-standards - everything else is committed as provided in the patch for D5.
In the D6 version, the main bug in this issue (uc_cart_complete_order call) was already fixed, so the only net changes were putting the response into globals and the style changes.