use for payment processing ONLY?

Discussion in 'Payments processing' started by visionx, Mar 28, 2006.

  1. visionx

    visionx New Member

    Joined:
    Jan 15, 2006
    Messages:
    2
    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!
  2. alex

    alex Well-Known Member Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    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:
    <?php
    function 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');
    ?>

Share This Page