[checkout] return to merchant error; main.php

jaa1180

Joined: 2005-02-11
Posts: 48
Posted: Sun, 2006-04-30 00:28

Currently I am testing in paypal sandbox. I know this is not paypal support, but no one is answering the posts. I was thinging perhaps others have run into this before.

While in sandbox, I click to purchase off the site, I am able to go through the purchase steps fine.
When I get to the last step to "Return to Merchant", I click on the button but receive the message
main.php cannot be found

The return url is correct.
http://www.avvedutiphotography.com/pc.html

However Paypal will not return.
Any ideas?


Gallery version = 2.1 core 1.1.0
PHP version = 5.0.4 cgi
Webserver = Apache
Database = mysql 4.1.18-standard-log, lock.system=flock
Toolkits = Exif, Getid3, ImageMagick, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux serv01.siteground118.com 2.6.14.2-grsec-grsec-test #1 SMP Fri Nov 18 02:27:52 CST 2005 i686
Default theme = PGtheme
Locale = en_US
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051010 Firefox/1.0.7 (Ubuntu package 1.0.7)

 
jaa1180

Joined: 2005-02-11
Posts: 48
Posted: Tue, 2006-05-02 23:56

Paypal support answered and states the code is passing the main.php to their site.
Here is what they sent me.

Quote:
Thanks for contacting us and talking about your issue.
In the code you are passing a 'return' variable that will look like:

<input type="hidden" name="return" value="main.php? etc.... ">

The value needs to be a real URL, or you can just remove this line of code and it will let the auto return function.
If you have any further questions or concerns please feel free to contact me again.

Where is this at? How can I change it ???

 
jaa1180

Joined: 2005-02-11
Posts: 48
Posted: Wed, 2006-05-03 04:17

I checked the code on the page and found...
[code]<input type="hidden" name="return" value="main.php?g2_view=checkoutpaypal.PaymentComplete" />[/code\

How can I change this... or use it?
Currently this is not working.

 
jaa1180

Joined: 2005-02-11
Posts: 48
Posted: Wed, 2006-05-03 14:37

In PaymentButton.tpl I found this...
<input type="hidden" name="return" value="{g->url arg1="view=checkoutpaypal.PaymentComplete"}" />

How can I change this to be the complete URL?

 
jaa1180

Joined: 2005-02-11
Posts: 48
Posted: Wed, 2006-05-03 16:17

Ok. I commented out the line and it is working fine now. However the cart will not clear out.
Anyone???

-Jeff
www.avvedutiphotography.com/gallery
<><

 
jaa1180

Joined: 2005-02-11
Posts: 48
Posted: Wed, 2006-05-03 16:27

Well, I did a hack and it is working now.
I took this line of code
<input type="hidden" name="return" value="{g->url arg1="view=checkoutpaypal.PaymentComplete"}" />

commented it out. Carrage Return. copy and pasted the same code but made a change.
<input type="hidden" name="return" value="{"http://www.avvedutiphotography.com/gallery/main.php?g2_view=checkoutpaypal.PaymentComplete"}" />

and it is working great. Clearing out the cart.
However I don't think this is the best way... but it is working.
-Jeff
www.avvedutiphotography.com
<><

 
jesphoto
jesphoto's picture

Joined: 2006-02-27
Posts: 46
Posted: Sat, 2006-06-10 15:45

Hi. I am looking for some answers about paypall and look like the developers can not answer or do not want to.
How does it work.I read the 3 pdf from paypal and got even more confuse.
I did autoreturn and I hope that I give the right link.
After the payments - does your web site send e-mail back with a link do download?.
can it be make automatic - after the payment user download the full size image?
thanks

looking trought the glass of a lenses