Implementing a simple stripe/PHP page

I need a second set of eyes here.  Below is some code I copied off their site.  They had already entered the Test Secret Key for me.
When I fill-out the form, and click submit, I get the error message: The Stripe publishable API key is not correct.  Well, the sample has the Test Secret Key, and they provided me with a Test Publishable Key, but do not see anywhere in the same where I am suppose to put the Test Publishable Key.

<!DOCTYPE html>
 <html>
 <body>
<form action="" method="POST">
  <script
    src="https://checkout.stripe.com/checkout.js" class="stripe-button"
    data-key="sk_test_00000000Qflqc4xxxxxxxxxx"
    data-amount="8995"
    data-name="Demo Site"
    data-description="OSS_OPTIONS-M"
    data-image="/128x128.png">
  </script>
</form>



<?php
// Set your secret key: remember to change this to your live secret key in production
// See your keys here https://dashboard.stripe.com/account
\Stripe\Stripe::setApiKey("sk_test_00000000Qflqc4xxxxxxxxxx");

// Get the credit card details submitted by the form
$token = $_POST['stripeToken'];

// Create a Customer
$customer = \Stripe\Customer::create(array(
  "source" => $token,
  "description" => "payinguser@example.com")
);

// Charge the Customer instead of the card
\Stripe\Charge::create(array(
  "amount" => 1000, # amount in cents, again
  "currency" => "usd",
  "customer" => $customer->id)
);

// Save the customer ID in your database so you can use it later
saveStripeCustomerId($user, $customer->id);

// Later...
$customerId = getStripeCustomerId($user);

\Stripe\Charge::create(array(
  "amount"   => 8995, # $89.95 this time
  "currency" => "usd",
  "customer" => $customerId)
);
?>
</body>
</html>

Open in new window

rrhandle8Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bernard S.CTOCommented:
B-) you should not put your key here, keep it secret. If you don't know how, click on "request attention" to ask for help

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rrhandle8Author Commented:
I wrote the company. The sample is wrong.  The form should be using the publication key.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.