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.

Does gform_paypal_fulfillment work with PayPal Pro add-on?

  1. Hello,

    I have a function set up to trigger when a PayPal transaction completes using the gform_paypal_fulfillment hook:

    /* FUNCTION TO INCREASE ACCOUNT BALANCE */
    add_action("gform_paypal_fulfillment", "credit_account", 10, 4);
    function credit_account($entry, $config, $transaction_id, $amount) {

    This worked fine when I was using the standard PayPal add-on. Now that I have switched over to PayPal Pro, the hook does not seem to be triggering.

    Best,
    tomdaq

    Posted 11 years ago on Tuesday April 2, 2013 | Permalink
  2. I found and tested the proper hook to use with PayPal Pro and it works fine. I used gform_paypalpro_fulfillment instead, which uses slightly different variable names.

    From the paypalpro.php file:
    do_action("gform_paypalpro_fulfillment", $entry, $config, $transaction_id, $initial_payment_amount, $subscription_amount);

    So now my function looks like this:

    /* FUNCTION TO INCREASE ACCOUNT BALANCE */
    add_action("gform_paypalpro_fulfillment", "credit_account", 10, 4);
    function credit_account($entry, $config, $transaction_id, $initial_payment_amount, $subscription_amount) {

    Thanks,
    Tom

    Posted 11 years ago on Wednesday April 3, 2013 | Permalink
  3. Thanks Tom. I know we discussed this via Priority Support as well. Thank you for the update.

    Posted 11 years ago on Friday April 5, 2013 | Permalink

This topic has been resolved and has been closed to new replies.