Post by tommix » Tue Aug 25, 2009 11:34 pm

ok thanks..today i will try to understand why it's not working...and if i still do not get any results i probably tro my earlier posted method :)

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by tommix » Wed Aug 26, 2009 12:37 am

Ok i did this

Code: Select all

	if (substr_count($request, "payment_status=Completed") ==1 /* && substr_count($request, "payer_status=verified") ==1 */) {
					$this->model_checkout_order->confirm($order_id, $this->config->get('pp_standard_order_status_id'));
				}
and don't give a damn about verified and it's working..

+ added check for ips so only paypal can use callback function.

Active Member

Posts

Joined
Mon Apr 20, 2009 5:21 am

Post by silentcoast » Thu Aug 27, 2009 9:52 am

I am having the same issue and tried your code snippet but still did not work for me. It is acting like its not even running code when the button is clicked.

Paypal doesn't get the order, open cart don't get the order nothing happens just sits there.

Any suggestions?

Newbie

Posts

Joined
Fri Jul 24, 2009 3:33 am

Post by Qphoria » Thu Aug 27, 2009 11:13 am

Your error is paypal direct.
This thread is about normal paypal.. completely different issues

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by andrewc117 » Tue Sep 22, 2009 8:47 pm

I own my own server and I cannot find a way to make the paypal work. The money goes through to my account but it does not register on the website at all....

Newbie

Posts

Joined
Sun Sep 20, 2009 6:23 pm

Post by Daniel » Tue Sep 22, 2009 9:36 pm

yourt won server?

localhost?

please post a link to your site.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by andrewc117 » Thu Sep 24, 2009 2:36 am

localhost

http://searchshop.eu

Im just stumped. Please help

Newbie

Posts

Joined
Sun Sep 20, 2009 6:23 pm

Post by zeeb100 » Thu Sep 24, 2009 6:02 pm

Same problem is on the site server aruba ... please help :(

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by zeeb100 » Thu Sep 24, 2009 9:23 pm

here's the picture when it terminates a transaction with paypal test mode
Immagine 1.png

Immagine 1.png (207.17 KiB) Viewed 3013 times

here is the result with firebug ....
Immagine 2.png

Immagine 2.png (278.88 KiB) Viewed 3013 times

Why??

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by Qphoria » Thu Sep 24, 2009 10:15 pm

That just means the buyer is unverified.. the order status came back as "Pending". The pp_standard module doesn't have support for "Return Click" processing (although it should) so those post values are only used for message verification. You need to check the ipn return message which is the response from the curl process:

if (strcmp($response, 'VERIFIED') == 0) {

That is what is used for final order state.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by zeeb100 » Thu Sep 24, 2009 10:35 pm

graize for the answer ... I hope that the solution to the problem of orders is fixed soon ... :-\

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by Qphoria » Thu Sep 24, 2009 11:03 pm

Well i didn't present it as a problem, just not as robust as it could be.

The problem is that you are either not getting the IPN (which is a server issue on your side) or the ipn is not coming back as "VERIFIED" which needs to be debugged.

First step you need to put a checkpoint at the callback function to assure you are receiving it.

Place:

Code: Select all

file_put_contents('ipndebug.txt', 'TEST');
at the top of the callback function. Then check out with paypal and you should see a file created in the root path of your store named "ipndebug.txt".

If you do see it, then you are at least getting the callback.

Then you can move that code above down to right after:
$response = curl_exec($ch);
and change it to:

Code: Select all

file_put_contents('ipndebug.txt', $response);
Then see what the message is inside that ipndebug.txt file

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by zeeb100 » Fri Sep 25, 2009 12:00 am

code

Code: Select all

file_put_contents ( 'ipndebug.txt', 'test');
within the callback function is executed which I believe means that the function is not called...



Now what do .. ??

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by zeeb100 » Fri Sep 25, 2009 6:01 pm

the link of ipn respons ... is... :


http://www.mysite.com/store/index.php?r ... d/callback ???????????????????????????

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by Qphoria » Fri Sep 25, 2009 7:09 pm

Are you using GoDaddy for hosting?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by zeeb100 » Fri Sep 25, 2009 7:17 pm

I'm Italian and the site hosting on Aruba

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by zeeb100 » Fri Sep 25, 2009 7:42 pm

:) However Qphoria wanted to thank you for the help you're giving me and apologize for the inconvenience

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by zeeb100 » Sun Sep 27, 2009 9:23 pm

... There are no new news ????

New member

Posts

Joined
Tue Sep 15, 2009 11:18 pm

Post by aatelfer » Tue Oct 13, 2009 9:15 am

Daniel, are you saying that there is a possibility that the server is modifying the information before it is sent to PayPal? If that is the case what exactly would that be?

Newbie

Posts

Joined
Tue Oct 13, 2009 9:09 am

Post by aatelfer » Tue Oct 13, 2009 3:21 pm

Hey you guys, I did some tests and realized that something is happening inside "http://servername.com/shop/payment/pp_standard/callback" that is causing a problem.

I created a paypal.php file in the shop root and changed the callback to that url. It seems to be working well.

Something is happening before the callback is called.

Newbie

Posts

Joined
Tue Oct 13, 2009 9:09 am
Who is online

Users browsing this forum: No registered users and 6 guests