Has anyone got paypal ipn working with the latest version of ubercart. I am getting the following error on orders

An IPN transaction failed verification for this order

Not sure how to even go about debugging this.

I have turned on ipn in paypal settings and set the url to www.mysite.com/uc_paypal/ipn but failing every time.

Please comment if you have got this working or know how to.

Thanks

Comments

joeuk31 created an issue. See original summary.

tr’s picture

Category: Bug report » Support request
tr’s picture

That error message means that your site *did* receive an IPN from PayPal, but that the IPN contents received from PayPal did not match the data that your site sent to PayPal.

Go to the PayPal payment method settings on your site and select the option to show IPN debug. That will put the data from the incoming IPN into your dblog where you can see it. Examine that and you should be able to tell what's wrong.

You set the issue version to 7.x-3.9, but you also said you're using the "latest version of Ubercart". Those are not the same thing. If you're not using the latest, then you should upgrade. If you are, you should reset the issue version.

joe huggans’s picture

Version: 7.x-3.9 » 7.x-3.0-rc4
joe huggans’s picture

Thanks very much for the help. I am sorry about adding to the wrong version, bit of confusion there. I have looked at the changelog file in the ubercart directory and it states 3.0-rc4, so I have changed accordingy.

I will do some debugging today with your advice and report back when I find a solution.

Thanks again

tr’s picture

I swear I posted a reply here a few hours ago, but it seems to have disappeared. I'll try to reproduce what I said:

No, I'm pretty darn sure you don't have 7.x-3.0-rc4. If you downloaded Ubercart recently from the project page, you probably have 7.x-3.10.

The way to find out the version is to look at one of your module's .info files. For example, look at ubercart/uc_store/uc_store.info. At the bottom you should see something like:

Information added by Drupal.org packaging script on 2016-07-16
version = "7.x-3.10"
core = "7.x"
project = "ubercart"
datestamp = "1468644909"

That "version" tag tells you what version you have. All your module .info files should list this same version number.

joe huggans’s picture

You are right, it is 7.x-3.10

Should I download the latest dev?

From first glance at the Paypal IPN the time seems to be wrong, I think it is Pacific time when it should be GMT, looked at settings in sandbox seller account and they are set to GMT. Not sure if this would make it fail.

joe huggans’s picture

Version: 7.x-3.0-rc4 » 7.x-3.10
joe huggans’s picture

Here is my IPN array which is still failing.

Array
(
[transaction_subject] => Order 22 at ***
[payment_date] => 02:12:54 Nov 06, 2017 PST
[txn_type] => subscr_payment
[subscr_id] => I-AKYWL36RN6YH
[last_name] => buyer
[residence_country] => GB
[item_name] => Order 22 at ***
[payment_gross] =>
[mc_currency] => GBP
[business] => seller@fakeemail.net
[payment_type] => instant
[protection_eligibility] => Ineligible
[verify_sign] => APJcBrX7qQZI2NqZoN9Bj1u5q7DdAROASQ0Ll8egQ.ghfNTCk8N65Efy
[payer_status] => verified
[test_ipn] => 1
[payer_email] => buyer@fakeemail.net
[txn_id] => 00102024UR4410037
[receiver_email] => seller@fakeemail.net
[first_name] => test
[invoice] => 22-65
[payer_id] => 7L5KHE9V9NP88
[receiver_id] => FEBBC9VNX78ZC
[payment_status] => Completed
[payment_fee] =>
[mc_fee] => 0.32
[mc_gross] => 3.50
[charset] => windows-1252
[notify_version] => 3.8
[ipn_track_id] => a94a9003b0f08
)

joe huggans’s picture

Does it matter that I am working on a dev domain, it's a normal domain with https but it's not where the website will be once ready. I'm not sure how paypal works do they require you use the proper domain?

I have made sure the IPN url is correct, worked through this page - https://www.drupal.org/node/1311198

Just can't get this to work. Will try look at the IPN array and troubleshoot what is going on tomorrow because I've tried everything else now.

tr’s picture

Are there any non-ASCII characters or forward slashes being sent to PayPal? In your host name, email addresses, etc. ?

joe huggans’s picture

Ok so it is working with express checkout, I get a message 'PayPal IPN reported a payment of 3.50 GBP'.

I believe all my info being sent to paypal is ok.

tr’s picture

Does that mean everything is working now and this issue can be closed?

joe huggans’s picture

I guess so yes since I am going with express checkout

tr’s picture

Status: Active » Fixed

Mmm, OK - you didn't say prior to #12 which PayPal service you were using, so I was unaware that it was something different.

All PayPal services share the same IPN code.

Marking this as fixed.

joe huggans’s picture

Thanks for your help

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.