public function createSubscription($id) { $user = Organization::findOrFail($id); $token = Input::get('stripeToken'); $user->subscription(1)->quantity(1)->create($token); Session::flash('successMessage', 'Subscription Successful! You are now a premium user'); return Redirect::back(); }EDIT: I am using both secret test key and publishable test key.
--
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+unsubscribe@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/.
Hey Thomas,Whenever you get that error, it's almost always an API key issue. Something in your code is creating the card token with the Publishable API key (pk_test_XXXX) from one account and then trying to charge that same token with the Secret API key (sk_test_XXXX) from a different account.I'd recommend to double check your integration first and make 100% sure that you're using the exact API keys you're seeing in your dashboard [1]. You should also try and search the codebase for pk_ and sk_ to make sure there isn't a key hardcoded somewhere.Hope this helps,Remi
On Tue, Nov 22, 2016 at 12:00 PM, Thomas Young <tom.you...@gmail.com> wrote:
EDIT: I am using both secret test key and publishable test key.
--
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 unsubscribe from this group and stop receiving emails from it, send an email to api-discuss+unsubscribe@lists.stripe.com.