problem with PayPal sandbox payment for events

i've been trying to test a new implementation of the Events+ plugin for paid events and every time i make a payment (using sandbox mode) and return to the website, it tells me the event is not yet paid for.

i also tested using live PayPal and it seems to work fine, so the problem appears to only be with sandbox mode.

i've tracked down where the problem is, and was wondering if the plugin could be fixed?

i know it's only the sandbox but it would be good if my client could fully test the implementation using fake money (before we go live with real money).

i added some logging code to the Eab_EventsHub::process_paypal_ipn method and the response from PayPal sandbox is:
Invalid Host header

i don't know enough about PayPal sandbox to know why this response is being generated but this should help your developer to track down the problem.

regards
michaela :slight_smile:

  • bluefern

    sorry, looks like i can't attach log or txt files, so here is my log content:

    Connecting to PayPal sandbox.
    
    REQUEST ...
    cmd=_notify-validate&action=eab_paypal_ipn&blog_id=1&booking_id=35&mc_gross=56.12&protection_eligibility=Ineligible&address_status=unconfirmed&payer_id=KXBR7KCAEG492&tax=0.00&address_street=1+Cheeseman+Ave+-+East&payment_date=16%3A46%3A00+Sep+24%2C+2013+PDT&payment_status=Completed&charset=windows-1252&address_zip=3001&first_name=Test&mc_fee=1.65&address_country_code=AU&address_name=Test+Buyer&notify_version=3.7&custom=&payer_status=verified&business=test-seller%40mkhala.com&address_country=Australia&address_city=Melbourne&quantity=1&verify_sign=Ai1PaghZh5FmBLCDCTQpwG8jB264AWcAN4TWgrOlnRDnJEcBlVfNzI8l&payer_email=test-buyer%40mkhala.com&txn_id=75V942745F951615X&payment_type=instant&last_name=Buyer&address_state=Victoria&receiver_email=test-seller%40mkhala.com&payment_fee=&receiver_id=DRD9GCRCLLFU4&txn_type=web_accept&item_name=A+new+test+-+try+paying+for+this&mc_currency=AUD&item_number=449&residence_country=AU&test_ipn=1&handling_amount=0.00&transaction_subject=&payment_gross=&shipping=0.00&ipn_track_id=c54ecf9bbdfbc
    
    RESPONSE ...
    Invalid Host header
  • Vaughan

    hiya

    let me just get the developer on this for you. i seem to remember there can be some issues with sandbox mode, but can't remember whether it was this plugin or something entirely unrelated. though live mode works, so that's good.

    hopefully he'll respond shortly.

    i do notice though in the pdf you posted, might be unrelated. but the headers are using http 1.0 and paypal requires http 1.1

    thanks

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.