My checkout has been running great. Until the latest API release on August 5th .
Now I keep getting
Error: This API call cannot be made with a publishable API key. Please
use a secret API key. You can find a list of your API keys at
https://dashboard.stripe.com/account/apikeys.So I realized, Stripe upgraded the API so I clicked upgrade in the dashboard, upgraded the API keys. so now i have pk_live_#########
When i use the Publisher Key all my jquery runs fine, and i get the above error message. However, when i use Secret Key my jquery breaks. Then i noticed, Stripe's sample form is now using
Stripe.card.createToken and note Stripe.createToken. So i upgraded that.. and i'm still getting the same problem.
Here is where its crashing
jQuery('#PlanForm').submit(function() {
// alert('Handler for .submit() called.');
LoadBlockUI();
// createToken returns immediately - the supplied callback submits the form if there are no errors
Stripe.createToken({
number: jQuery('.cardNumbz').val(),
cvc: jQuery('.CVV').val(),
exp_month: jQuery('.monthExpires').val(),
exp_year: jQuery('.yearExpires').val()
}, stripeResponseHandler);
return false;
});
Any ideas?