PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds Bug Reports (http://www.photopost.com/forum/classifieds-bug-reports/)
-   -   Blank Page on Payment_Verification and PayPal IPN (http://www.photopost.com/forum/classifieds-bug-reports/143306-blank-page-payment_verification-paypal-ipn.html)

bam-mark July 4th, 2010 09:25 PM

Blank Page on Payment_Verification and PayPal IPN
 
I am going through the process of placing an ad, then process of purchasing, then cancel of purchase - but am getting a blank page when I cancel the ad from Paypal.

The price - item info transfer to Paypal fine.

I have made the IPN settings as: http://www.mydomain.com/classifieds/...rification.php

I have downloaded a new build - then re-up'ed the new verification script.

Is there anything you could suggest for me?

Thank you for your help :)

Mark

Chuck S July 4th, 2010 09:44 PM

what is the url of the cancel request?

we pass the cancel url to be the index of your classifieds

Code:

Content visible to verified customers only.

bam-mark July 4th, 2010 09:47 PM

The URL sends the canceled request through the payment_verification.php script. That's at least what I have set on IPN. Should I turn the IPN off in Paypal then?

bam-mark July 4th, 2010 09:50 PM

The URL for the classifieds is: Main Index - IncontinenceNET Marketplace

bam-mark July 4th, 2010 10:13 PM

I'm going to hang it up for the night and hit this tomorrow. But - I have changed payment settings in Paypal - and turned on and off the IPN - but still comes up blank. I'm sure it's a simple fix. I'll look into it too tomorrow... Thank you very much Chuck...

Mark

Chuck S July 5th, 2010 06:02 AM

yeah wonder why paypal does not pick up the cancel_return variable.

bam-mark July 6th, 2010 05:32 AM

Hey Chuck - can we fix this error?
 
Quote:

Originally Posted by Chuck S (Post 1271740)
yeah wonder why paypal does not pick up the cancel_return variable.

I'm hoping for more of a concrete answer than - I wonder why they don't pick up this variable. Can you help me resolve this error - I would very much appreciate it. Otherwise - it's really a useless piece of software for our business. If I can't actually sell and process purchases - then why have it. I very much appreciate any assistance you can give us.

Thank you,

Mark Taborn - Space Coast Studios of Florida

bam-mark July 6th, 2010 06:38 AM

I also did a search of source code in the complete classified files - and cancel_return is not found, unless this is part of PayPal only...

bam-mark July 6th, 2010 07:53 AM

Chuck - I also noticed on the code that it is different from what Paypal gives as a test php code

They say to use:

$fp = fsockopen ('www.paypal.com', 443,

and classifieds is listed as:

$fp = fsockopen ('www.paypal.com', 80,

It doesn't make a difference in the payment verification - and all the code looks really clean and up to standards. Great job with commenting the code by the way. I'll have to call PayPal and see if it's something that is on their end. Although - it does do what the script intends - returning to the payment_verification.php

It just acts as if there is misbehaving code return in php schema. Almost like a whitespace error of some sort.

I'll keep digging....

Mark

Chuck S July 6th, 2010 09:38 AM

Mark if paypal changed something I would need to investigate that but your talking about payment verification and that only runs if an ad is payed for. Your issue is with the cancel_return variable which we pass to paypal through the payment template. I noted that line above. It looks like its passed right.

You cant run payment verification directly thats only a call back script written for paypal to use on payment verification.

https://www.x.com/message/137680#137680

There may be paypal bug here your dealing with as we definately pass a cancel return variable. If paypal is not following that then thats outside our code and paypal causes that.

Chuck S July 6th, 2010 09:40 AM

Now here is a little dirty hack that might help you a little in payment_verification.php since you seem to be going to that script instead of the index try this.

Code:

Content visible to verified customers only.
change to this

Code:

Content visible to verified customers only.

bam-mark July 6th, 2010 09:46 AM

KEWL - Thanks Chuck - I was toying with that... and - just didn't know the correct syntax... :)

bam-mark July 6th, 2010 10:04 AM

Chuck - still no work. Where exactly in the code is cancel_return var ?? I'm wondering where that var is passed? is it in the payment_verification.php? Thanks Chuck - this looks like an error with the PayPal folks...

bam-mark July 6th, 2010 10:17 AM

I found it in the payment,tmpl file

Chuck S July 6th, 2010 10:30 AM

Mark this issue has nothing to do with our code or payment_verification.php

The cancel_return variable is defined in the payment template which is used by payment.php a totally different script.

Your issue is because paypal is not passing the correct cancel_return url which is clearly defined so this seems like a total paypal issue.

There site is littered with issues with cancel_return url issues. There is nothing I can give you to work if there site does not work right as we have no control over paypal. All I can do is code our code to match what they tell us and clearly that is defined as I see correctly.

https://cms.paypal.com/us/cgi-bin/?&..._htmlvariables

I have relooked at paypal and our payment template seems to be coded correctly to pass a cancel_return url

Code:

Content visible to verified customers only.

bam-mark July 6th, 2010 10:35 AM

You are right there Chuck - I really think your code is clean and commented really well. It is PayPal's issue. Thank you for helping me sort this out... I may go with another payment system altogether. Mark

Chuck S July 6th, 2010 10:59 AM

yeah there is more than once payment solution. Not the first time I have heard of the issue and clearly not the first time they have heard of it although why they have not fixed there site I cant say.

bam-mark July 6th, 2010 04:03 PM

From the PayPal MTS Guys. Passing the buck I guess.. GREAT... I guess no one is wrong - and it's the other guys fault type of response...

Mark


-------------------------------------------------------------------|
Hello Mark,

Thank you, this is exactly what I needed. Here is the code that was generated (the HTML code that your PHP code generated):

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input class="primary textbox" type="hidden" name="cmd" value="_xclick">
<input class="primary textbox" type="hidden" name="business" value="mark@indianriverstudio.com">
<input class="primary textbox" type="hidden" name="item_name" value="Hoyer Lift - Manual never used">
<input class="primary textbox" type="hidden" name="item_number" value="96c9cf2c34eadecf03cdd2ef14d4f552" />
<input class="primary textbox" type="hidden" name="amount" value="550">
<input class="primary textbox" type="hidden" name="quantity" value="1">

<input class="primary textbox" type="hidden" name="shipping" value="0.00" />
<input class="primary textbox" type="hidden" name="return" value="http://www.incontinencenet.com/mp/payment_verification.php">
<input class="primary textbox" type="hidden" name="cancel_return" value="http://www.incontinencenet.com/mp/payment_verification.php" />
<input class="primary textbox" type="hidden" name="notify_url" value="http://www.incontinencenet.com/mp/payment_verification.php" />
<input class="primary textbox" type="hidden" name="custom" value="mrmark" />
<input class="primary textbox" type="hidden" name="cbt" value="IncontinenceNET.com" />
<input class="primary textbox" type="hidden" name="txn_type" value="cart" />
<input class="primary textbox" type="hidden" name="rm" value="2">
<input class="primary textbox" type="hidden" name="image_url" value="http://www.incontinencenet.com/mp/images/mplogo-pp.jpg">

<input class="primary textbox" type="hidden" name="currency_code" value="USD">
<div align="center"><input class="primary textbox" type="submit" value="Proceed to payment"></div>
</form>

This is working correctly, because when I click the "Cancel and return to...." link during the checkout, it takes me to http://www.incontinencenet.com/mp/pa...rification.php as expected (which incedently shows as a blank white page).

Chuck S July 6th, 2010 04:15 PM

Mark okay well your payment template is not current. As noted change the cancel_return line to what I posted as thats whats in our current downloadable code so maybe your classifieds is older.


All times are GMT -5. The time now is 07:01 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97