Error message while make a payment in Latest version (2014-08-20)

931 views
Skip to first unread message

Sravan Mada

unread,
Aug 22, 2014, 7:27:58 AM8/22/14
to api-d...@lists.stripe.com
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.?

Upto last night it was working fine, since from the morning I'm facing the above error message when I've gone through just got to know that stripe sdk has been updated so please walk me through a solution ASAP.

I've tried to update my api keys and stripe connect app but I'm getting same error message.

elof...@tier1performance.com

unread,
Aug 22, 2014, 8:54:10 AM8/22/14
to api-d...@lists.stripe.com
Hi Sravan,

It sounds like you need to make sure that you're using the secret API key, not the publishable one. Here's a thread that might help: https://groups.google.com/a/lists.stripe.com/d/msg/api-discuss/eP_VkrlZKdI/KNVTG5vS60oJ

Best regards,

Elijah Lofgren

Sravan Mada

unread,
Aug 22, 2014, 9:34:42 AM8/22/14
to api-d...@lists.stripe.com
Hello elofgren,

I m using stripe connect api it is returning me a dictionary of values with access token, publish key. so I m using those values, previously it is working fine with its previous version and some times it is working with a time period of 10-15 seconds. 
--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at http://groups.google.com/a/lists.stripe.com/group/api-discuss/.

To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.


--
Thanks & Regards,

Sravan Kumar,
iOSDeveloper.

Jim Danz

unread,
Aug 22, 2014, 6:56:08 PM8/22/14
to api-d...@lists.stripe.com
Hi Sravan,

When using connect, your "access token" is essentially your secret key
for the connected user. So you'll want to use that, rather than the
publishable key, on all server-side requests.

Cheers,
Jim

Sravan Mada

unread,
Aug 23, 2014, 2:38:22 AM8/23/14
to api-d...@lists.stripe.com

On Sat, Aug 23, 2014 at 4:25 AM, Jim Danz <j...@stripe.com> wrote:
token

Hi Jim Danz,

I am following the functionality as per stripe connect document, before that it was working fine till Stripe Api updated.  when I've started debugging my code it's running fine with in the time period of 10-15 seconds. When I removed my debugging cache its throwing an error message as i've mentioned in my last mail. 

Attached my sample code for stripe with objective-c Language. please have a look and give us a suggestion.
StripeCode.rtf

Sravan Mada

unread,
Aug 23, 2014, 3:29:12 AM8/23/14
to api-d...@lists.stripe.com
Hello,

I've gone through the code thoroughly, finally i came to know that it's working good with Rest API.But i'm not sure about the SDK for IOS.

Right now as i'm going with API, it sounds great for me. 
Reply all
Reply to author
Forward
0 new messages