Thread: Major Additions - microCART: Shopping System for vB4
View Single Post
  #68  
Old 01-15-2011, 09:44 AM
micheal332001 micheal332001 is offline
 
Join Date: Apr 2004
Posts: 1,112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lomak View Post
got another mail from paypal - you had any luck?

Code:
Hello Lomak,

Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:

http://mysite.com/cart_gateway.php?method=paypal

If you do not recognize this URL, you may be using a service provider that is using IPN on your behalf. Please contact your service provider with the above information. If this problem continues, IPNs may be disabled for your account. 

Thank you for your prompt attention to this issue.


Thanks,

PayPal
and this SQL error still persist.. (as I updated to the latest version to test)

Code:
Invalid SQL:
UPDATE microcart_usercoupon SET valid=0 WHERE userid=;

MySQL Error   : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number  : 1064
Request Date  : Wednesday, January 14th 2011 @ 10:28:43 AM
Error Date    : Wednesday, January 14th 2011 @ 10:28:44 AM
Script        : http://mysite.com/cart_gateway.php?method=paypal
Referrer      : 
IP Address    : 66.211.170.66
Username      : 
Classname     : vB_Database
MySQL Version :
I also cannot now View invoices in AdminCP (But Can edit)

Just to be clear..

all people must be registered and logged in to access the store.
required Customer data is turned on.
We do not have any active coupons.

All help is very much appreciated.

Regards
Quote:
Originally Posted by Lomak View Post
Tried it. I uploaded the one file: cart_gateway.php

I now do not get the SQL error. But the invoices are still not getting updated.. it says 'Unpaid'

I also cannot go in to the invoices (Via AdminCP) to see what 'options' the customer chose. Therefore I cannot ship any goods.

Thanks in advance
Hi there m8

Im trying to sort out your problem but will need your help to do this.

open the cart_gateway.php file and find this.

PHP Code:
$tax doubleval($_REQUEST['tax']);

    
$query[] = 'cmd=_notify-validate';
    foreach(
$_POST AS $key => $val) {
        if(!empty(
$val))
            
$query[] = $key '=' urlencode ($val);
    }
    
$query implode('&'$query); 
Replace it with this.

PHP Code:
$tax doubleval($_REQUEST['tax']);
      
$text '['.date('m/d/Y g:i A').'] - '

      
$text .= "IPN POST Vars from Paypal:\n";
    
$query[] = 'cmd=_notify-validate';
    foreach(
$_POST AS $key => $val) {
        
$text .= "$key=$val, \n";
        if(!empty(
$val))
            
$query[] = $key '=' urlencode ($val);
    }
      
$text .= "\nIPN Response from Paypal Server:\n ";
    
$fp=fopen('microcart_paypal_ipn_log.txt','a');
      
fwrite($fpstrtolower($text) . "\n\n"); 

      
fclose($fp);  // close file
      
    
$query implode('&'$query); 
Then put it back to the way it was i just need you to do this so that i can see the reply from paypal once an order has been passed back.

PM me with the results as this will show info you dont want to be seen by enyone.

Also remove the file microcart_paypal_ipn_log.txt when done.

Thanks m8
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01517 seconds
  • Memory Usage 1,799KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete