
Ok i did this
and don't give a damn about verified and it's working..
+ added check for ips so only paypal can use callback function.
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'));
}
+ added check for ips so only paypal can use callback function.
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?
Paypal doesn't get the order, open cart don't get the order nothing happens just sits there.
Any suggestions?
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....
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.
if (strcmp($response, 'VERIFIED') == 0) {
That is what is used for final order state.
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:
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:
Then see what the message is inside that ipndebug.txt file
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');
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);
code
within the callback function is executed which I believe means that the function is not called...
Now what do .. ??
Code: Select all
file_put_contents ( 'ipndebug.txt', 'test');
Now what do .. ??
the link of ipn respons ... is... :
http://www.mysite.com/store/index.php?r ... d/callback
????????????????????????
http://www.mysite.com/store/index.php?r ... d/callback

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.
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.
Who is online
Users browsing this forum: No registered users and 6 guests