Ejemplo n.º 1
0
                $transaction_array[$row]['Zip/Postal_Code'] = $data[$i++];
                $transaction_array[$row]['Country'] = $data[$i++];
                $transaction_array[$row]['Contact_Phone_Number'] = $data[$i++];
                $row++;
            }
            fclose($handle);
        }
    }
    public function __destruct()
    {
        mysql_close(PayPal::$database_connect);
    }
}
if (!empty($_POST)) {
    $PayPal = new PayPal();
    $PayPal->ipn();
}
/*
if(!empty($_GET['action'])){
    $PayPal = new PayPal();
    switch($_GET['action']){
        case "TransactionSearch":
            $PayPal->TransactionSearch("paintings.suppliersz_api1.gmail.com", "BQ3G47PGEUPFJYUW", "AFAonZoEN5Tlf1AdMI6LHryIRiuXAZmyV1n8z4H3aK3CTTmVXIajebfk", "2009-07-04 00:00:00", "2009-07-05 00:00:00");
        break;
    
        case "GetTransactionDetails":
            $PayPal->GetTransactionDetails("paintings.suppliersz_api1.gmail.com", "BQ3G47PGEUPFJYUW", "AFAonZoEN5Tlf1AdMI6LHryIRiuXAZmyV1n8z4H3aK3CTTmVXIajebfk", "9YE0607179577100D");
        break;
    }
}
*/
Ejemplo n.º 2
0
<?php

$objPayPal = new PayPal();
$objPayPal->ipn();