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.

PayPal - Specify Purpose

  1. blueprintds
    Member

    I've been racking my brain (and the forum) with this one for a couple days now, so I humbly submit to the all-knowing RocketBrain.

    How can I pass custom values through to the "Purpose" (or Prouduct Title) field in PayPal?

    I have a donation form, and a separate subscription form, where user's can select the gift amount and designation, but all that is passed through to PayPal in the purpose field is "$[amount], Specify Amount, Select Fund" (respectively, the amount they selected, a label for a hidden field for other, and the "select fund" label). What I'd really like to see instead is "[Specific Fund Selection]"

    I'll happily switch to Product fields over donate fields if that will help solve it.

    Sample form: http://hhcf.org/donate/special/

    Posted 12 years ago on Tuesday July 12, 2011 | Permalink
  2. How do you currently have that form setup? Can you go to Import/Export, Export that form to XML and provide me a link to that XML link where I can download it? That way I can import a copy of your form and see how you have things setup and suggest changes.

    Posted 12 years ago on Tuesday July 12, 2011 | Permalink
  3. blueprintds
    Member

    Sure thing, this export includes both our recurring form and our one-time gift form. (hint: they're basically identical): http://d.pr/7YYw

    Both of these use donation fields, I believe, and I made another that uses product fields, and also product fields for the staff/fund selectors. But, even so, all it passes to "purpose" is the field label and not the field value.

    Grace and Peace,
    Brian Richards

    Posted 12 years ago on Wednesday July 13, 2011 | Permalink
  4. blueprintds
    Member

    [Bump]

    Thanks again for your help, Carl [et all]!

    Posted 12 years ago on Monday July 18, 2011 | Permalink
  5. blueprintds
    Member

    I can do the heavy-lifting on this one if I just get a nudge in the right direction as to where I should look to filter/hook the output for that Purpose line.

    Thank guys, keep up the good work!

    Posted 12 years ago on Wednesday July 20, 2011 | Permalink
  6. Currently determining how to best implement this as well. Any additional information available at this time?

    Posted 12 years ago on Tuesday October 11, 2011 | Permalink
  7. Was this ever firgured out? This is exactly what I need as well. I need to pass what the donation is for in the paypal form...

    Posted 11 years ago on Sunday November 11, 2012 | Permalink
  8. You can modify the data being sent to PayPal by using the gform_paypal_query filter:
    http://www.gravityhelp.com/documentation/page/Gform_paypal_query

    Posted 11 years ago on Monday November 12, 2012 | Permalink
  9. Chris,
    First.. you guys rock! Thanks for your reply. The GF forums are super helpful. Second.. I had seen that this filter was available.. I was hoping I was just missing something easier. Oh well! Thanks again for your help!

    Posted 11 years ago on Monday November 12, 2012 | Permalink
  10. There is also a gform_paypal_invoice filter which might be easier to use, but I don't know if it allows the flexibility you need.

    http://www.gravityhelp.com/documentation/page/Gform_paypal_invoice

    Posted 11 years ago on Monday November 12, 2012 | Permalink