Maybe I haven't found the right place in the docs, but...
1) in the logs (after a successful payment in paypal's sandbox) I have:
"Attempting to process IPN ..... . Array..."
"sent mail ...."
"IPN validated for Order 2 with ID ..... ."
"IPN processed for Order 2 with ID ..... ."
and I find the order is in the "pending" status: is this all right? i.e.: IPN accepted should set order to "pending" or "complete"? I think this should be ok, but I want confirmation, so should we consider "pending"="paid" and "complete"="product sent" (or service given)? Is it so?
Moreover:
to execute custom actions after IPN is triggered, would I go to set a rule checking for order status changed to "pending"?
thank you all
Comments
Comment #1
josh waihi commentedI'm experiencing similar issues, I'm currently testing with paypal sandbox. Payments get as far as "pending". The amount withdrawn shows up on the purchasers account as "unclaimed". No records are shown on business accounts transaction logs.
Comment #2
andyg5000Comment #3
andyg5000Pending is the default state of orders since Commerce doesn't make assumptions about what kind of products you're selling. To change this go to admin/config/workflow/rules/reaction/manage/commerce_checkout_order_status_update and edit the rule to select your preferred order state. As for the unclaimed message. This is the default when your order is authorized but not captured or if there are other criteria that need to be confirmed in the paypal account (ie: additional fees or currency conversion before capturing amount). I'm closing this issue feel free to reopen if you're still having trouble.
Comment #4
Elementica commented...so, for the "moreover" question: to execute custom actions after IPN is triggered, would I go to set a rule checking for order status changed to "pending"? Or is there any other way to react to IPN?
Thanx you.
Comment #5
shushu commentedAndy, I think there should be a better rules integration with IPN, to allow the customization like you described.
Is it still something you are looking for ?
Did you find something to do it ?
Thanks,
Shushu
Comment #6
Elementica commented@shushu
yes, it's something I'm still looking for ...and... no: found nothing to do it (presently I've set a custom snippet, but I'd like something else)... question is still on the way...
Comment #7
shushu commentedHi,
Here it is - http://drupal.org/project/commerce_paypal_ipn_rules_integration (well, I should've selected a shorter name...).
I made it since when trying to achieve some customization with existing Commerce subscription modules and "Node checkout" modules I found out nothing fits...
If relevant, I will be happy to see you try it out, and I will be happy to handle issues arises from it.
Soon, after verifying it works as expected, I will also release a "stable" version.