0

每当我尝试创建客户对象时,都会出现此错误。我尝试将文件路径包含到我的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")
        );
4

0 回答 0