[SOLVED] [Checkout] Paypal error page on submission: iframes or frames

paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Tue, 2010-02-23 19:13

I have a client who is using Checkout
Versions shown below
who is getting a PayPal generic error page when using IE (specifically IE8 I'm informed),
with FF the error hasn't been seen as yet.
It does not seem to be 100% reproducible but seems to happen very frequently.

All goes well until you press the pay by PayPal button in the shopping basket.

Attached is screenshot
Not sure how you can debug in IE8
I do notice that in FF looking at the Net report, the 2nd GET statement never finishes loading

Thanks

Paul

Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.8 cgi-fcgi
Webserver = Apache
Database = mysqli 5.0.67-log, lock.system=flock
Toolkits = Gd, ImageMagick
Acceleration = full/900, full/900
Operating system = Linux shadow.unitedhosting.co.uk 2.6.9-78.0.13.ELsmp #1 SMP Wed Jan 14 16:12:46 EST 2009 i686
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 577
Rows in GalleryAccessSubscriberMap table = 7136
Rows in GalleryUser table = 2
Rows in GalleryItem table = 7135
Rows in GalleryAlbumItem table = 38
Rows in GalleryCacheMap table = 695

Checkout 0.4.3
Checkout by PayPal 0.4.0

AttachmentSize
paypal error from explorer-1.pdf133.81 KB
 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2010-02-23 19:20

At what stage is this error seen? Is it the first page source from paypal, or (eg) subsequent to confirming paypal credentials on the paypal site?

Please post the form html from the confirm page (the form for which the paypal button is the "submit" button) for an order where this error occurs.

I should add that I have never used nor even installed IE8, so if it's browser specific, someone else will have to look into it.

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Tue, 2010-02-23 19:45

This is the first page from paypal when pressing the paypal button in the confirm page.

Form HTML shown below

<td align="right" class="checkoutPaymentButtons">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="return" value="http://thedomainname.co.uk/gallery2/main.php?g2_controller=checkout.Complete&amp;g2_transactionId=42795&amp;g2_verify1=1266953233&amp;g2_verify2=8062683514b842c112fdd66.17989010&amp;g2_authToken=bbd85ca31b3f" />
<input type="hidden" name="cancel_return" value="http://thedomainname.co.uk/gallery2/main.php?g2_controller=checkout.Complete&amp;g2_error=cancel&amp;g2_transactionId=42795&amp;g2_verify1=1266953233&amp;g2_verify2=8062683514b842c112fdd66.17989010&amp;g2_authToken=bbd85ca31b3f" />
<input type="hidden" name="notify_url" value="http://thedomainname/gallery2/main.php?g2_view=checkoutpaypal.IPN" />
<input type="hidden" name="image_url" value="" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="no_shipping" value="2" />
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="business" value="srostron@thedomainname.co.uk" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="invoice" value="42795" />
<input type="hidden" name="lc" value="GB" />
<input type="hidden" name="cbt" value="Return to SDR-Digital Online Photo Gallery"/>
<input type="hidden" name="item_name_1" value="IMG_7820.jpg" />
<input type="hidden" name="item_number_1" value="40934" />
<input type="hidden" name="amount_1" value="2.60" />
<input type="hidden" name="shipping_1" value="0" />
<input type="hidden" name="quantity_1" value="1" />
<input type="hidden" name="on0_1" value="Product" />
<input type="hidden" name="os0_1" value="6 inch x 4 inch Print" />
<input type="hidden" name="on1_1" value="Notes:" />
<input type="hidden" name="os1_1" value="Gloss Finish" />

<input type="hidden" name="item_name_2" value="Shipping" />
<input type="hidden" name="item_number_2" value="" />
<input type="hidden" name="amount_2" value="1.50" />
<input type="hidden" name="shipping_2" value="0" />
<input type="hidden" name="quantity_2" value="1" />
<input type="hidden" name="on0_2" value="Category" />
<input type="hidden" name="os0_2" value="Standard Delivery " />

<div style="width:200px">
<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif"
name="submit" alt="Pay with PayPal" />
<input type="image" name="submit" alt="Pay with PayPal"
src="modules/checkoutpaypal/images/logo_ccVisa.gif" />
<input type="image" name="submit" alt="Pay with PayPal"
src="modules/checkoutpaypal/images/logo_ccMC.gif" />
</div>
</form>
</td>

I am accessing now using IE7 and get the same issue

This is the url from the paypal error page
https://www.paypal.com/uk/cgi-bin/webscr?cmd=_flow&SESSION=_qtOinTWoBRb-bvSkrBDZsLMi9C_QoxBZo0bqe7Rr9_rszBIF1LrS3TgWpm&dispatch=50a222a57771920b6a3d7b606239e4d529b525e0b7e69bf0224adecfb0124e9b5eb2336391e7cbed125f6c5bdaf8a1cd2bd526d80f731bcf

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2010-02-23 19:44

It all looks fine to me. You'll have to do some poking around, see if you can narrow down the circumstances of the error a bit.

Quote:
This is the url from the paypal error page...

That doesn't mean anything to me, it might do to the folks at paypal though.

What's the customer's website? you can pm me if you prefer.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2010-02-23 19:55

Your customer's site uses iframes. Paypal explicitly isn't compatible with frames. See here for a workaround.
http://www.pdncommunity.com/pdn/board/message?board.id=basicpayments&thread.id=15340

(This has been mentioned on this forum before, but I can't find the thread. Curiously it does seem to work in some browsers, but it's still forbidden.)

 
paulcobb

Joined: 2006-05-04
Posts: 122
Posted: Tue, 2010-02-23 20:15

Yep, well spotted.
I have taken the gallery link to create a _blank page outside the frameset and this seems to have done the trick.
Customers will fiddle around with their own websites!

Thanks Alec

Paul

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2010-02-23 20:44

I've added a note to the checkout codex page.