Parsing the IPN string RRS feed

  • Question

  • User-341952562 posted

    I am working on PayPal IPN but I can't find out how best to analyse the string it sends.

    For example part of the string, called strRequest, is something like :

    &tax=0.00&address_street=3 King Park, Kinsonly Road
    Roxley&payment_date=12:18:37 Mar 04, 2010 PST&payment_status=Completed&charset=windows-1252
    &address_zip=QQ67 0DD&first_name=Paul&option_selection1=lkjhgf&mc_fee=0.26&address_country_code=GB
    &address_name=Paul Woolie&notify_version=2.9&custom=

    What I want to do is to put the word Completed in a local variable called Payment_status and lkjhgf in a local variable called cust_file_name.

    How do I separate out the components of the IPN message, please ?

    I noticed in some of the PayPal literature that they write


    cust_file_name = strRequest("option_selection1")


    But I don't recognise this syntax and anyway it doesn't work.

    Are there any namespaces that I should import ?

    Advice would be gratefully received.

    Saturday, March 6, 2010 6:41 AM

All replies

  • User-364289655 posted

    I'm not really familiar with paypal integration and passing strings back and forth - but it looks like that is part of the querystring?

    If that's the case you can use querystring functions to get the values you are looking for


    cust_file_name = Request.QueryString("option_selection1")



    Sunday, March 7, 2010 9:10 PM
  • User-341952562 posted

    OK Thanks for this.

    What I've done is to put a short note at http://www.3bbb3.com showing how I barged my way through the problem

    Tuesday, March 9, 2010 8:00 AM