• Store URL: https://brainwaveentrainment.eu
    WordPress version: 3.6.1
    WP e-Commerce version: 3.8.12.1
    Theme: Xyloto by Storefrontthemes

    I did this: Enabled IPN in Paypal with the store URL (https://brainwaveentrainment.eu) Enabled IPN in the PayPal Standard module. Send shipping details: No, Allow owerride: No. Currently i’m testing with a Sandbox account but it’s not working with a live account either. I set up paypal to accept payments automatically also.

    I expected WP e-Commerce to do this: Modify the “Incomplete sale” status to “Accepted payment”

    Instead it did this: It’s not changing the orders’ status.

    It’s pretty annoying. I tried everything, changed every setting, currency, IPN URL, etc but nothing helps. We want to start the store but we can’t until it’s not working. We purchased this theme and it’s only working with this shopping cart.

    One IPN log from paypal:

    Notification URL
    https://brainwaveentrainment.eu/?wpsc_action=gateway_notification&gateway=wpsc_merchant_paypal_standard
    HTTP response code
    What’s this?
    200
    Delivery status
    Sent
    No. of retries
    0
    Transaction ID
    7W214573HJ105310Y
    IPN type
    Transaction made

    mc_gross=7.00&invoice=4151379432588&protection_eligibility=Eligible&address_status=confirmed&item_number1=531&tax=0.00&item_number2=568&payer_id=LYXHGVEQ4ASFN&address_street=1 Main St&payment_date=08:42:47 Sep 17, 2013 PDT&payment_status=Completed&charset=windows-1252&address_zip=95131&mc_shipping=0.00&mc_handling=0.00&first_name=Ferenc&mc_fee=0.50&address_country_code=US&address_name=Ferenc Szepesi’s Test Store&notify_version=3.7&custom=&payer_status=verified&[email protected]&address_country=United States&num_cart_items=2&mc_handling1=0.00&mc_handling2=0.00&address_city=San Jose&verify_sign=AiPC9BjkCyDFQXbSkoZcgqH3hpacA.v.7UClmMzrTiiKgIJVSBufA1UT&[email protected]&mc_shipping1=0.00&mc_shipping2=0.00&tax1=0.00&tax2=0.00&txn_id=7W214573HJ105310Y&payment_type=instant&payer_business_name=Ferenc Szepesi’s Test Store&last_name=Szepesi&address_state=CA&item_name1=Gamma Energizer (Wind background), 45 minutes&[email protected]&item_name2=15 minutes relaxation Break (Wind chimes background)&payment_fee=0.50&quantity1=1&quantity2=1&receiver_id=5YKCMZKL6G46G&txn_type=cart&mc_gross_1=3.50&mc_currency=USD&mc_gross_2=3.50&residence_country=US&test_ipn=1&transaction_subject=&payment_gross=7.00&ipn_track_id=8542bf47e444e

    Please HELP! I’m clueless now and wee need to make it work.

    https://www.ads-software.com/plugins/wp-e-commerce/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Having similar problem. IPN don’t work and i have to change the status manually.

    Thread Starter szepesif

    (@szepesif)

    Maybe it’s a compatibility issue with the new WordPress version.

    I have some new informations. The Paypal IPN log shows this URL in my case: https://brainwaveentrainment.eu/?wpsc_action=gateway_notification&gateway=wpsc_merchant_paypal_standard

    I tried to open this and i got this error message: "Fatal error: Cannot use object of type WP_Error as array in C:\xampp\htdocs\brainwaveentrainment.eu\wp-content\plugins\wp-e-commerce\wpsc-merchants\paypal-standard.merchant.php on line 400"

    On line 400 i found this:

    if ( ‘VERIFIED’ == $response[‘body’] ) {

    I googled for the error message and i found this fix: https://getsatisfaction.com/tweet_blender/topics/fatal_error_cannot_use_object_of_type_wp_error_as_array

    So i changed that line to look like this:

    if ( ‘VERIFIED’ == $response->body ) {

    Result: The error message is gone when i open that page! But… the IPN is still not working. I don’t have PHP skills so i’m sure this single modification is not enough.

    Maybe somebody can help me with this here.

    It’s important. Developers, hello! Don’t abandon your plugin please.

    Thread Starter szepesif

    (@szepesif)

    UP!

    Thread Starter szepesif

    (@szepesif)

    I’m not giving UP!

    I don’t know if it was my problem but i used the standard paypal platform connecting with a business account. than i changed in PayPal Express Checkout 2.0 and it work fine.

    Thread Starter szepesif

    (@szepesif)

    I tried that too but that’s not working at all.

    After i click the “Purchase” button i receive this instead of the PayPal page:

    SetExpressCheckout API call failed.
    Detailed Error Message:
    Short Error Message:
    Error Code:
    Error Severity Code:

    I got the same error, but i changed the api details and it work.
    Try and let me know. I hope you will resolve your problem.

    Thread Starter szepesif

    (@szepesif)

    Okay, i found a fix. Sort of… The built-in Paypal Standard’s IPN is not working at all.

    I had to change the payment gateway to PayPal express but i received this after i clicked on the purchase button:

    SetExpressCheckout API call failed.
    Detailed Error Message:
    Short Error Message:
    Error Code:
    Error Severity Code:

    It’s caused by the missing php-curl from the server or the curl module is not enabled. I had to contact the server administrator, he enabled it and now the IPN is working with PayPal Express.

    For the developers: Please implement a solution to check for curl and when it’s not available show a more relevant error message. I found several threads with this issue and there was no solution at all. Most likely all of them are caused by the missing curl.

    I was able to fix this problem by updating the paypal-standard.merchant.php file

    seems that the IPN message was being received and verified, but the method never actually updated the purchase.

    Here is my version of that method if it will help anyone.

    /**
    	* parse_gateway_notification method, receives data from the payment gateway
    	* @access private
    	*/
    	function parse_gateway_notification() {
    		/// PayPal first expects the IPN variables to be returned to it within 30 seconds, so we do this first.
    		$paypal_url = get_option( 'paypal_multiple_url' );
    		$received_values = array();
    		$received_values['cmd'] = '_notify-validate';
    		$received_values += stripslashes_deep( $_REQUEST );
    		$options = array(
    			'timeout' => 20,
    			'body' => $received_values,
    			'user-agent' => ( 'WP e-Commerce/' . WPSC_PRESENTABLE_VERSION )
    		);
    
    		$response = wp_remote_post( $paypal_url, $options );
    		if ( 'VERIFIED' == $response['body'] ) {
    			$this->paypal_ipn_values = $received_values;
    			$this->session_id = $received_values['invoice'];
    			if ( strtolower( $received_values['payment_status'] ) == 'completed' ) {
    				$this->set_purchase_processed_by_sessionid( 3 );
    				transaction_results( $this->session_id, false );
    			} elseif ( strtolower( $received_values['payment_status'] ) == 'denied' ) {
    				$this->set_purchase_processed_by_sessionid( 6 );
    			}
    		} else {
    			exit( "IPN Request Failure" );
    		}
    	}
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘IPN with Paypal Standard is not working’ is closed to new replies.