PDA

View Full Version : PayPal IPN failing


cdelarte
10-05-06, 10:20 PM
I am setting up the default Paypal module that comes with miva and it fails after the order is processed by paypal and I click "return to merchant" The invoice page shows the error:
---
Unable to authorize payment.
---

Ithe log files on my webserver confirm that the paypal ipn response is being sent:

---
ipn.sandbox.paypal.com - - [05/Oct/2006:14:58:52 -0500] "POST /mm5/paypalp.mvc? HTTP/1.0" 200 11974 "-" "-"
---

As a test, when I put the IPN URL directly into my browser, I get the following error:

----
Runtime error in merchant.mvc @ [0000000d:000003c2]: merchant.mv: Line 979: MvDO: Unable to open '/mm5/5.00/': Is a directory
----


Any suggestions?

Vic - WolfPaw Computers
10-05-06, 11:21 PM
Which version and vendor's paypal module are you using?

Are you sure you have the correct path to the correct return file?

cdelarte
10-06-06, 12:38 AM
I am using the paypal module thats comes default with Miva 5.

I copied and pasted the URL from the paypal module configuration precisely.

Vic - WolfPaw Computers
10-06-06, 01:02 AM
Have you run all the MIVA Merchant updates?

cdelarte
10-06-06, 01:11 AM
Yes, all updates have been applied. I am on version:

Production Release 3
MIVA Engine v5.04


The contents of paypal.log from my server clearly indicate a problem however I am not sure how to interpret it:

------------------------
1160089031|68e40be79c86ec043d3d461ac33002a0|TN|pay pal:paypal|20038|PAYPALP: Retrieved SessionID=68e40be79c86ec043d3d461ac33002a0
1160089031|68e40be79c86ec043d3d461ac33002a0|TN|pay pal:paypal|20038|PAYPALP: Order not yet created, calling merchant.mvc with Action=AUTH
1160089032|68e40be79c86ec043d3d461ac33002a0|TN|pay pal:paypal|20038|PayPal Verify returned:INVALID
1160089032|68e40be79c86ec043d3d461ac33002a0|TN|pay pal:paypal|20038|Transaction Verify FAILED, txn_id=0XM07527BC882005G
------------------------

Vic - WolfPaw Computers
10-06-06, 01:25 AM
Looks like you might have the wrong IPN number.

cdelarte
10-06-06, 01:29 AM
What is the IPN number? Is it the same as the IPN URL?

Can you suggest how this can be resolved?

Thanks

Vic - WolfPaw Computers
10-06-06, 04:00 AM
You should have an IPN number that is being passed with the data to PayPal.

Personally, I'd suggest ditching the built in PayPal module for Weiland's PayPal module (http://tinyurl.com/qfbjm) which works MUCH better than the built in one.

And for $25, it will save you hours of frustration.

cdelarte
10-06-06, 04:21 AM
I just bought Bill's module, thanks for the advice.