I'd like to call drupal_set_message from my ipn handling code, but this does not work because the message is associated with the session from paypal, not the users session.
The attached patch stores the messages before exiting lm_paypal_ipn_in(), using the txn_id as a key. When the user is returned to the merchant site, the messages are looked up and shown to the user. So drupal_set_message() works essentially as you'd hope it would.
| Comment | File | Size | Author |
|---|---|---|---|
| lm_paypal_message.patch | 1.08 KB | Dave Cohen |
Comments
Comment #1
john franklin commentedClosing all 5.x and earlier issues. If this is still an issue, please reopen and update with 6.x or 7.x details.