Newbie alert. Trying to start the api for stripe. Here is the code thus, far:--//cannot get this to work states err "Uncaught Error: Class 'Stripe\Stripe' not found in..."require_once('stripe-php-6.28.0/init.php');$stripe = ["secret_key" => "sk_test_identifier here","publishable_key" => "pk_test_identifier here",];\Stripe\Stripe::setApiKey($stripe['secret_key']);$pid = $_GET['pid'];$token = $_POST['stripeToken'];$email = $_POST['stripeEmail'];$customer = \Stripe\Customer::create(['email' => $email,'source' => $token,]);\Stripe\Subscription::create(["customer" => $customer->id,"items" => [["plan" => "plan_identifier here",],]]);echo '<h1>Successfully charged $5.00!</h1>';?><form action="https://mydomain.com/activated" method="POST" <?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>><scriptsrc="https://checkout.stripe.com/checkout.js" class="stripe-button"data-key="pk_test_identifier here"data-amount="500"data-name="mydomain.com"data-description="Subscription(s)"data-locale="auto"data-currency="usd"data-zip-code="true"></script></form>I loaded the folderin the same folder as the plugin page. Getting errorstripe-php-6.28.0/init.php"Uncaught Error: Class 'Stripe\Stripe' not found in..."
I have looked through the stripe php folder and do not see what is referenced. Any assistance would be greatly appreciated.
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.