php - Why am I receiving a 'Fatal Error: Class 'Stripe_Customer' not found' when I attempt to create a customer object? -
whenever attempt create customer object, presented error. have tried including file paths stripe
library, might pointing incorrect path. portion of script error occurs:
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") );
Comments
Post a Comment