I'm using a script called Jobs and Recruitment Script, which uses paypal as payment to buy 'credits' for job postings. I'd like to use a real 'on-site' payment system, so I'd like to know if there's a way to pass a 'paid' value from amember an 'external' php script. the jobs script would need to know how much money was 'deposited' into the user's account. thanks!
This particular task is easy to solve, but I don't think aMember is usable when used for payment processing only. In any case, solution is easy: create amember/site.inc.php PHP: <?phpfunction fwp($payment_id){ global $db; $p = $db->get_payment($payment_id); $u = $db->get_user($p['member_id']); print "<br>amount=$p[amount] login=$u[login]<br>"; // do what you need to pass values into your script // print_r($p); print_r($u);}setup_plugin_hook('finish_waiting_payment', 'fwp');?>