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.

Sending data to paypal

  1. ASMBS IT
    Member

    We're tying to use the gform_paypal_query filter to send some data to PayPal for accounting purposes. We were excited to see the data going to the custom field successfully, however for now obvious reasons this breaks the built in functions for IPN. Is there a way without breaking the IPN services to use the custom variable? This is only option I can find to solve this request - maybe there is another variable we could try? We also tried the memo variable without success.

    http://pastie.org/5444322

    Posted 11 years ago on Tuesday November 27, 2012 | Permalink
  2. How does it break the IPN? Are you including the original query string parameters as shown in the documentation? http://www.gravityhelp.com/documentation/page/Gform_paypal_query

    Also, if you don't send an IPN URL in the query string, PayPal will default to the one you have configured at paypal.com for your IPN. Does that setting at PayPal point to your Gravity Forms IPN URL or is that being used for something else?

    Posted 11 years ago on Wednesday November 28, 2012 | Permalink
  3. ASMBS IT
    Member

    Thanks for the reply. I mean to say, IPN works perfectly - status 200. The issue is related to how Gravity Forms uses the custom variable.

    I'll try to describe a little better. The return message is received and not connecting to the entry. It seems Gravity Forms is using the custom variable for the purpose of applying the IPN to the appropriate entry. With the function, I attached above, to use the custom variable provided by IPN is applied, Gravity Forms does not recognize the return message and does not apply logic for payment received, specifically notifications.

    Is there a way to use the custom variable provided by IPN (in conjunction with the values sent by Gravity Forms or is there knowledge of another variable provided by IPN which will allow for sending custom information to PayPal) and not break the Gravity Form functions related to the returned IPN message?

    Posted 11 years ago on Thursday November 29, 2012 | Permalink
  4. Let me ask the development team about this one. I'm afraid I don't know the answer to your question.

    Posted 11 years ago on Saturday December 1, 2012 | Permalink
  5. Unfortunately the custom field is required by Gravity Forms to link up the IPN message with the entry.
    What you could do is add your string at the end of the custom field contents required by Gravity Forms, separated by a pipe (|). For example, if the current content of the custom field is "3|abasneaypxsapo", change it so that it looks like the following: "3|abasneaypxsapo|your accounting data". Not ideal, but that could work.
    Note that PayPal poses a limit on the size of custom fields (256 characters), so make sure your string won't cause the custom variable to go over that limit.

    Posted 11 years ago on Monday December 3, 2012 | Permalink
  6. ASMBS IT
    Member

    Thanks Alex, we'll give that a try. Thanks again for the reply,

    Posted 11 years ago on Tuesday December 4, 2012 | Permalink