Jump to content

ionflux

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by ionflux

  1. i made successful donation transactions to the sandbox paypal but the donation credits are not reflected in the fluxcp account. will the account only get credits if it's made through real paypal?

    here's the data/logs/paypal.log.php

     

    [2013-04-15 00:12:39] Received notification from x.x.x.x (ipn.sandbox.paypal.com)
    [2013-04-15 00:12:39] Query string: cmd=_notify-validate&mc_gross=10.00&protection_eligibility=Eligible&address_status=confirmed&payer_id=BB6HNW64QS38W&tax=0.00&address_street=1+Main+St&payment_date=09%3A12%3A34+Apr+14%2C+2013+PDT&payment_status=Completed&charset=windows-1252&address_zip=95131&first_name=ionflux&mc_fee=0.59&address_country_code=US&address_name=ionflux+xantara&notify_version=3.7&custom=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czoxMjoiUXVpY2tTcGF3blJPIjtzOjEwOiJhY2NvdW50X2lkIjtzOjc6IjIwMDAwMDAiO30%3D&payer_status=unverified&business=xxxx-facilitator%40gmail.com&address_country=United+States&address_city=San+Jose&quantity=0&verify_sign=Az2t09yJ3TkW2faEluex4m7hhFESAbM2OmiK9NOasmr0sUU1QLYWHLjg&payer_email=xxxx%40gmail.com&txn_id=9KT88458TC183182K&payment_type=instant&last_name=xantara&address_state=CA&receiver_email=xxxx-facilitator%40gmail.com&payment_fee=0.59&receiver_id=75J64ANDWJJDL&txn_type=web_accept&item_name=Donation+Credits%3A+100+CREDIT%28s%29&mc_currency=USD&item_number=&residence_country=US&test_ipn=1&transaction_subject=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czoxMjoiUXVpY2tTcGF3blJPIjtzOjEwOiJhY2NvdW50X2lkIjtzOjc6IjIwMDAwMDAiO30%3D&payment_gross=10.00&ipn_track_id=aed77ccd193ba
    [2013-04-15 00:12:39] Establishing connection to PayPal server at www.sandbox.paypal.com:80...
    [2013-04-15 00:12:39] Connected. Sending request back to PayPal...
    [2013-04-15 00:12:39] Sent 1176 bytes of transaction data. Request size: 1329 bytes.
    [2013-04-15 00:12:39] Reading back response from PayPal...
    [2013-04-15 00:12:39] Notification failed to verify. (recv: )
    [2013-04-15 00:12:39] Transaction invalid, aborting.
    
  2. i know this shows whether a user is logged in:

     

     

    <?php
    if ($session->isLoggedIn()):
    //do something here
    endif;
    ?>
    

     

     

    but what's the code to check the account level of the user logged in? for example, i only want a GM to see some links which a normal user cannot

     

    <?php if (AccountLevel==ADMIN) { echo "show this thing;" } ?>
    
×
×
  • Create New...