Hi,
I am new to gform and I need to use the paypal_fulfillment hook, but I face some issues:
-I added
"add_action("gform_paypal_fulfillment", "process_order", 10, 4); "
in Init function of paypal.php
-I created the following function in paypal.php:
function process_order($entry, $config, $transaction_id, $amount)
{
global $wpdb;
$order_id = $entry['id'];
$start_date = $entry['payment_date'];
$amount = $entry['payment_amount'];
$pseudo = $entry['7'];
$SQL = "INS ERT INTO test (order_id, pseudo, start_date, amount) VALUES ( $order_id, $pseudo, $start_date, $amount)";
$wpdb->query($SQL);
}
But nothing is inserted in test table.
Can you help me?
Regards
[chrishajer edited INSERT to get past firewall]