paypal, ec_useracc and confirmation email

planctus - February 27, 2009 - 18:03
Project:e-Commerce
Version:5.x-3.6
Component:paypal
Category:support request
Priority:critical
Assigned:Unassigned
Status:active
Description

Lot of problems, i try to simplify:
I'm using paypal and i can't get the payment status change to complete.
This happens with the paypal sandbox but i can't tell how and if it works with the live paypal until it will work with the sandbox, actually.

I've read almost everything, would you like to post an howto about using the module with the paypal's sandbox anywhere and anyhow, because everyone willing to build an ecommerce website using paypal will always need to make tests first?
But everything on the paypal side seems to work fine now; buyer pays, seller gets the money, an ipn is being sent with the right transaction id.

Drupal is sleeping, instead.
Nothing happens, the transaction get created as soon as the user click to "place your order" and then nothing, silence.
No emails. no payment status changes, i've only watchdog telling me that drupal received an hit at /paypal/ipn and that it reported the right transaction's id.

I checked the "debug" checkbox for the ipn but i can't see any email being sent and i'm not even sure which would be the address to sent this to, the site email or the seller email? the second one is a fake email since i'm using the sandbox.

What's more is that with a recurring product, needing a user creation, nothing happens from that side too, not even if i manually change the payment status to completed.
I got useracc working only for c.o.d set to "payment completed" but this won't never be the case, even if the ipn confirmation was working this would mean a transaction change after it has been created and i'm not even sure it will work that way.
As i said it worked only when the transaction was created with the payment already set to "completed".

Anyway, payment status never changed to complete, no matter what i did.

I know these are a couple of issues not just one...
but i've hardly tried before to post it, i'm hoping someone will answer me.
thanks,
Da.

#1

Phillip Mc - May 22, 2009 - 12:39

hi planctus. just to confirm, the paypal module for 5.x-3.x is working fine for me...i.e. it is marking payments as complete.

I have a slightly related issue where the user account isn't being created. if you have found out why that is the case, can you update this thread?
cheers

#2

planctus - May 25, 2009 - 12:01

Yes, i do update...
even though it has been unanswered for 3 months.
I finally figured it out that this was caused by the paypal sandbox because it sends a partially different ipn message where the payment doesn't appear as completed.
I did some test using the real paypal website and everything went fine.
I still have to officially relaease the website so i'm hoping not to be surprised when i will :-)
Thanks,
Da.

#3

djungle - August 20, 2009 - 15:38

Hi,

I'm having trouble with this too.
I've tried running it out of the sandbox like you suggested planctus, but this hasn't worked either.

After accepting payment in the paypal sandbox, the drupal ecommerce payment status goes to complete,
without ever sending the email with the links. And obviously I can't access 'my files'.

Has no one really set this up before?

Thanks for any help.

DJ

#4

djungle - August 21, 2009 - 10:16

Having run it outside if the paypal sandbox, I received the invoice email from the module,
normally this is the email with the download link, but in place of the link I had : [dest_page]
Somehow the token wasn't applied.

Regards

#5

Dublin Drupaller - August 25, 2009 - 10:46

fwiw I gave up using the paypal sandbox quite a while ago. far too many problems with it. It's much easier and quicker to use a dummy paypal account in your control...setup a product with a low value and just use that for testing.

re: ec_useracc. I had a similar issue with that a while back for a music downloads shop I was working on...i.e. when the person returned from paypal with a succesfull transaction, I wanted them to be logged in automatically so they can download the files.

If I remember correctly, drupal ecommerce triggered the save transaction function (which in turn activates the user account functions) at the Paypal IPN stage of the process (in other words, while the user was still at the paypal site), so when the user returns to your site after making a payment, they aren't logged in.

Ergonomically, it's not as good as having an automatic login, but, the other method is to return the user from paypal to a page saying "thanks for your payment....please check your email for login instructions to download your files"...or words to that effect....with a user login form on the same page.

It would require a significant patch to workaround that issue, which I haven't done. the client at the time was happy with the "email/login" thing and seeing that version 3.x is being superceded by version 4.x (which is a complete re-write) I didn't tackle it.

hope that helps others faced with the same issue.

dub

 
 

Drupal is a registered trademark of Dries Buytaert.