completely stumped with this. There are other, similar issues that have been fixed, but, here's the problem I'm having:

Using COD as the payment option (and the COD settings set to "mark payment as complete") an anonymous user is able to check out, the user account is generated and the user is automatically logged in.

however, when using paypal as the payment option, the user account is generated, but, the user is not automatically logged in.

I'm guessing it has something to do with the paypal IPN function....i.e. the transaction is saved at this stage, when paypal is "visiting" the site to carry out its instant payment notifications. store_transaction_save with the workflow set to '6' means that it triggers the "payment complete" hook, which in turn triggers the ec_useracc module.

The problem with that is the user account is generated for paypal, so to speak, not, the customer.

Here's a step by step:

1. anonymous user checks out with paypal as the payment option is redirected to paypal.com and leaves the drupal site.

2. Paypal "visits" the drupal site to carry out the Instant payment notificantion functions, the transaction is saved in drupal and a user account is generated and the "visitor" (paypal) is logged in.

3. The customer remains at the paypal site until the IPN function is complete. Paypal then confirms the transaction and redirects the customer back to the drupal site after 5 seconds.

4. When the customer returns to the drupal site, they are still logged out.

I hope that makes sense. If anyone has found a workaround for this, please post it up here.

ta

Phil

Comments

MediaFormat’s picture

I'm having the same issue.

From the logs, I see the message is IPN hit for txn: <em>8</em>

Somehow it seems wrong that the <em> is passed.

Phillip Mc’s picture

Dublin drupaller posted a comment here: http://drupal.org/node/386032 which looks like it's related.