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?
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?
Hi Bruce,
The gform_paypal_fulfillment hook is passed the following parameters:
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???
Hi Bruce. I will do some testing on this and confirm. Thanks for reporting an issue. :)
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.