Easy PHP Paypal Class (Process/Create)

Discussion in 'PHP' started by Barti1987, Oct 29, 2008.

  1. #1
    Paypal Class V1.0
    Class features:
    • Create all types of Paypal Forms:
      • Buy now.
      • Subscriptions.
      • Paypal Shopping Cart.
      • Internal Shopping Cart.
      • Gift Certificates.
      • Donations.
    • Process all types of Paypal payments (IPN):
      • Very easy to use if payment was processed. No mess for you.
    • Enable custom buttons (or use standard).
    • Enable sandbox testing for paypal payment emulator.
    • Create click-able links instead of forms.
    [Download - Demo]

    Checking Payment is as easy as:

    
    <?php
    require_once('paypal.class.php'); 
    $doCheck = new Paypal; 
    $isPaid = $doCheck->checkPayment($_POST); 
    if($isPaid == true){ 
       if($payment_status == 'Completed'){
          //Insert into database
       }
    }
    ?>
    
    PHP:
    Peace,
     
    Barti1987, Oct 29, 2008 IP
  2. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Nice one! Thank you =D
    I will need this later on.
     
    ads2help, Oct 29, 2008 IP