URGENT PayPal Issue

I have an application which calls a control module to pass invoice data to PayPal. It successfully works in development - I press the PayPal button and the initial PayPal web page pops up asking to login to PayPal or process a credit card.

When I move the project to my production website (Godaddy), I press the PayPal button on the control application and nothing happens. I get a blank screen with no error or return information. I’ve put in several echo statements in the paypal.class.php file under the submit_paypal_post() function. I can see it gets to this function but then nothing happens (I have an echo after the call to paypal but it doesn’t display on my webpage).

Any idea what is going on here? I cannot figure out why it doesn’t work in production.

Has anyone successfully implemented PayPal? This is a freaking nightmare… I have tried to trace the code and it’s a royal pain. All I want to do is send an invoice to paypal for payment. Sometimes I get it to work and sometimes it doesn’t. When I do try to test a success or cancel, the function is not displaying the message I set in the events. Why the hell doesn’t this work?:mad:

Did you checked the PayPal Integration video by aducon?

Yeah not very useful on the complete setup. It has everything pre-written and no steps on how to set up the application. Not very useful.

It appears the issue is with paypal.class.php.

After extensive testing (ever since I posted the original issue) I ended up downloading a sample PHP PayPal script onto the GoDaddy website. I was able to get that to work correctly.

When you use Microsoft Edge with my failing application, it throws an error message saying PayPal does not process requests within a frame (Firefox does not show this message). Looking at the paypal.class.php code, it does not open a new window. Once I added target="_blank" in the submit_paypal_post() function, it worked! PayPal displayed correctly and prompted for my test buyer account.

So it seems SC with their new tab and frame logic, PayPal no longer works.

This is the new code in paypal.class.php (submit_paypal_post() function):
echo “<form method=“post” name=“form” target=”_blank" action="".$this->paypal_url."">
"

NOT WORKING

Hello,

I have the same problem with paypal as pkrawetzky.
Is it some kind of bug in scriptcase?

I tried to enter the following order on paypal.class.php but it didn’t work.

This is the new code in paypal.class.php (submit_paypal_post() function):
echo “<form method=“post” name=“form” target=”_blank" action="".$this->paypal_url."">
" ;

Also it displayed the following error

Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/a8yht/public_html/_lib/lib/php/paypal/paypal.class.php on line 134

How can I make it work? Let me know about any ideas.

Thank you.