post data issue

  • Profile Image
    Asked on October 25, 2012 at 11:21 PM


    having an issue with the post data from a purchase form.

    here is an example of the array output


    array(6) { ["submission_id"]=> string(17) "0000000000000" ["formID"]=> string(11) "1111111111" ["ip"]=> string(11) "" ["myproducts"]=> array(1) { [0]=> string(5) "Array" } [3]=> string(8) "5555555" [4]=> string(3) "001" } 

    trying to access the form fields for cc_firstName cc_lastName etc... within ["myproducts"] it appears that ["myproducts"][0] contains a string "Array" and not the array data as expected?


    results in NULL


    results in NULL


    results in array(1) { [0]=> string(5) "Array" }


    results in string(5) "Array"

    any help would be appreciated we are trying to customize  our thank you page and seem to be having a little trouble.

    if you would like more information on the issue just ask.


    thank you for your time.




  • Profile Image
    Answered on October 26, 2012 at 04:07 AM

    Hello. Regarding your empty array, this happens because you did not select any product in your items. 

    In regards to getting the payer information, unfortunately, It's not possible to get these at the moment.  You can only get this information via e-mail alerts.

    But let me forward this matter to the development team.  Although, I cannot guarantee that this can be implemented anytime soon, or if this can be considered for implementation.  We'll inform you as soon as we have updates on this.

    Thanks for your patience.

  • Profile Image
    Answered on October 26, 2012 at 12:37 PM


    thank you for your response, when you say a product was not selected in the items do you mean at the time of purchase, like no product was chosen? 

    that example array output did come from a live test transaction. i just changed some of the data so it didn't reveal form id, ip, etc... 

    if you mean in the array call i couldn't access that array and was killing me trying to figure out why, which is why i kept flipping through different var_dump's trying to access it. i did try directly accessing the ["myproducts"][0]["cc_firstName"] but that would just result in NULL.

    would be great if you guys could add support for the purchase data, none of the cc data is obviously needed. just need ( first name, last name, city, state, zip, country ). we store the customer information along with transaction id and product purchased, normally, so we can track the transactions of what they have purchased within our own database. 

    anyway appreciate your time and help.

  • Profile Image
    Answered on October 26, 2012 at 01:28 PM

    Hello guest, yes that is correct and was what my colleague meant with his answer as to basically there was no product chosen/selected.

    As far as the array output goes this is something that our developers would need to take a look at for consideration since it appears that the provided variables are unable to work because this type of logic it seems is currently known as unsupported. This is something that may be possible by modifying the form's full source but it is not guaranteed which is most likely a huge factor as to the reason of why it's not working properly to begin with.

    Also, you are very welcome. Our developers will respond to you shortly and in the meantime we really appreciate your patience and understanding, thanks.

  • Profile Image
    Answered on January 31, 2013 at 04:52 AM

    Hello.  I have just added to post data information for payer's first name, last name, e-mail, and address for Paypal standard payment tool.  If you're using another payment tool, please do let us know so we can work on it as well. 

    The payer information forwarded is serialized so you will need to use the unserialize(); function (if you're using PHP) to parse it back to array for its corresponding keys and values.

    If you need further assistance or if you have other concerns, please do let us know.