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.

gform_paypal_fulfillment Parameters

  1. BruceMcK
    Member

    I know the Paypal add-on isn't finalised yet, but can you provide any information on the parameters passed to the gform_paypal_fulfillment hook?

    Posted 13 years ago on Wednesday January 12, 2011 | Permalink
  2. Hi Bruce,

    The gform_paypal_fulfillment hook is passed the following parameters:

    • $entry
      The $entry array contains all of the details from the Gravity Form submission that generated the payment that is being fulfilled.
    • $config
      The $config array contains the configuration settings of the PayPal feed (created with the GF PayPal Add-on) attached to the form this entry/payment was submitted from.
    • $transaction_id
      The $transaction_id contains the PayPal transaction ID of the fulfilled payment
    • $amount
      The $amount contains the amount of the fulfilled payment
    Posted 13 years ago on Wednesday January 12, 2011 | Permalink
  3. BruceMcK
    Member

    Hi David, Thanks for the info.

    Weird thing. To test this out I used:

    function paypal_payment_handler($entry, $config, $transaction_id, $amount){
    $message = "ID=".$entry["id"].", TransID=".$transaction_id.", Amount=".$amount;
    mail($my_email_addr, 'payment', $message);
    }

    I get this message:

    ID=105, TransID=, Amount=

    (I.e., no values provided for the TransID or the Amount).

    So I looked up the entry in wp_rg_lead, and it contains the transaction ID for that entry.

    I guess I can lookup wp_rg_lead to grab the values, but maybe this is a Paypal add-on 1.0.beta3 bug???

    Posted 13 years ago on Wednesday January 12, 2011 | Permalink
  4. Hi Bruce. I will do some testing on this and confirm. Thanks for reporting an issue. :)

    Posted 13 years ago on Thursday January 13, 2011 | Permalink
  5. BruceMcK
    Member

    David, just an update. I checked out gform_post_payment_status hook, and it seems to be passing empty values in its arguments as well.

    To get around the problem with gform_paypal_fulfillment, I tried doing a lookup of the entry in wp_rg_lead. But either the hook is triggered before wp_rg_lead is written, or MySql is slow with its write cache, because I'm reading a 'Pending' status from wp_rg_lead. However when I look at the record in myPhpAdmin, the transaction has been approved.

    Thanks, Bruce.

    Posted 13 years ago on Thursday January 13, 2011 | Permalink