为什么我收到了致命错误:Class' Stripe_Customer'找不到'当我尝试创建客户对象时?

时间:2016-04-25 03:02:15

标签: php stripe-payments stripe-connect

每当我尝试创建客户对象时,都会遇到此错误。我尝试将文件路径包含到我的Stripe库中,但我可能指向了错误的路径。发生错误的脚本部分:

function checkout()
    { 
        error_reporting(E_ALL); 
        $success = '';
        $error = '';

        if(isset($_POST['stripeToken'])) {

        error_reporting(E_ALL);
        $conn = dbconnection();
        $stripeToken = $_POST["stripeToken"];
        $random_id2 = $_POST["random_id2"];
        $userid = get_current_user_id();

        require_once('Stripe/lib/Stripe.php');              

        $customer = Stripe_Customer::create(array(
            "source" => $stripeToken,
            "description" => "Customer")
        );

0 个答案:

没有答案