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