XML interface to user payments

Discussion in 'Integration' started by marcel, Aug 18, 2005.

  1. marcel

    marcel New Member

    Joined:
    Aug 18, 2005
    Messages:
    7
    Has anyone ever created a XML interface to query
    Who paid,
    When they paid
    User payments within a time period

    This code won't be executed inside of site.inc.php. It will be executed by a remote script. like http://example.com/get_user_payments.php


    What initial hooks or functions should I use to do this ?

    I'm looking to develop something like this, but someone has code on this, I would be happy to use it instead.

    Just saw this in the amember manual

    db->get_user_payments($member_id, $completed) ;

    PHP:
    <?
     
    $pl = array();  
     
     
    $dat date('Y-m-d');  
     
     foreach (
    $db->get_user_payments($member_id1) as $p){  
     
        if ((
    $p['begin_date']<=$dat) && ($p['expire_date']>=$dat)){  
     
           
    $pl[] = $p;  
     
        }  
     
     }  
     


    ?>
    Thanks
    Marcel
    http://01wholesale.com
    http://businessletters.com
  2. marcel

    marcel New Member

    Joined:
    Aug 18, 2005
    Messages:
    7
    ..,..............
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Marcel,
    I see you have already answered your own question, am I wrong?

Share This Page