PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Prepopulating with PayPal IPN POST data?

  1. sirkhan
    Member

    I'd like to create two fields in my form, Transaction_ID and PayPal_Email that will be populated dynamically after payment has been made and PayPal sends over the data (via their IPN system). However GF only accepts GET and IPN sends via POST.
    Is there a workaround? If I have to write an intermediary php that transforms POST to GET I might as well create the whole form from scratch and leave out GF... :-(

    Posted 11 years ago on Saturday August 14, 2010 | Permalink
  2. There is no work around. Field are pre-populated via GET or via PHP. You can write code to accept that post and then use the available PHP hooks to take that data and pre-populate the fields.

    It isn't much different than the get, just takes a little more code as you need to write some code that does a request on the post to get the field values and then pre-populate the database fields using PHP. There are hooks to pre-populate fields. Do a search for pre-populate fields dynamically, pre-populate field, etc. and you will find code snippets for the hooks to pre-populate a field.

    Writing code to take the post data and pre-populate the fields with it is going to take far less code than it would take to create the whole form from scratch, store the data, etc.

    Posted 11 years ago on Monday August 16, 2010 | Permalink