Tags/topics: 
2
Answers
Vote up!
1
Vote down!

How do I complete orders when IPN validation fails but Paypal payments made?

I had a couple of orders fail processing because of an IPN validation error from Paypal so that, although the payments were completed in Paypal, the orders are still in the shopping cart "Checkout: Review" state.

How can I make these orders complete as they would normally as though the IPN was validated?

I also need the user accounts to be created. I also need the orders to be listed in the orders view and in the users' orders view.

I am comfortable tinkering in the database via phpMyAdmin but obviously the rules would not be triggered and some of these steps would also need to be taken manually.

I am just looking for the most convenient and least error prone method.

Many thanks.

Asked by: authentictech
on February 12, 2013

2 Answers

Vote up!
1
Vote down!

There were various answers given at this link (the anchored one being the most likely to resolve this problem, in my opinion):

https://drupal.org/node/1330882#comment-5441078

However, the issue appears to have been resolved by updating to Commerce 1.6.

Answer by: authentictech
Posted: Apr 24, 2013

Comments

I also just created new user accounts manually for those that failed the first time.

- authentictech on April 24, 2013
Vote up!
1
Vote down!

Hopefully Ryan will correct me if I'm wrong, but you should be able to edit the Order and change the status to the next step. That is the same process that has failed and would trigger all the correct actions as needed.

Josh Miller
Answer by: Josh Miller
Posted: Feb 14, 2013

Comments

Thanks for the response. At this point, when I click on edit, I get an error message "The website encountered an unexpected error. Please try again later." Not sure at all why that should be so.

- authentictech on February 15, 2013

This error message occurs for the two orders for which IPN validation failed and has been occurring for several weeks. Nothing else is failing on the website as far as I can tell.

- authentictech on February 15, 2013

The log when this error occurs is:

EntityMalformedException: Missing bundle property on entity of type commerce_customer_profile. in entity_extract_ids() (line 7633 of /home/www/example.com/includes/common.inc). Backtrace:

entity_extract_ids('commerce_customer_profile', Object) field.attach.inc:191
_field_invoke('form', 'commerce_customer_profile', Object, Array, Array, Array) field.attach.inc:386
_field_invoke_default('form', 'commerce_customer_profile', Object, Array, Array, Array) field.attach.inc:568
field_attach_form('commerce_customer_profile', Object, Array, Array) commerce_customer.module:1017
commerce_customer_field_widget_form(Array, Array, Array, Array, 'und', Array, 0, Array) field.form.inc:112
field_default_form('commerce_order', Object, Array, Array, 'und', Array, Array, Array) field.attach.inc:209
_field_invoke('form', 'commerce_order', Object, Array, Array, Array) field.attach.inc:386
_field_invoke_default('form', 'commerce_order', Object, Array, Array, Array) field.attach.inc:568
field_attach_form('commerce_order', Object, Array, Array) commerce_order.forms.inc:34
commerce_order_order_form(Array, Array, Object)
call_user_func_array('commerce_order_order_form', Array) form.inc:798
drupal_retrieve_form('commerce_order_ui_order_form', Array) form.inc:339
drupal_build_form('commerce_order_ui_order_form', Array) form.inc:131
drupal_get_form('commerce_order_ui_order_form', Object) commerce_order_ui.orders.inc:51
commerce_order_ui_order_form_wrapper(Object)
call_user_func_array('commerce_order_ui_order_form_wrapper', Array) menu.inc:517
menu_execute_active_handler() index.php:21
- authentictech on February 19, 2013

I wonder if the error could be caused by me adding a new field (phone number) to the billing profile after these shopping carts were created?

I don't recall if I added it before or after but I'm leaning to "after".

I've tried deleting the field but the error still shows, so perhaps not relevant.

- authentictech on February 19, 2013

Also the meta tag module has added an additional field to billing profile.

- authentictech on February 19, 2013