#Zachary C. Smouse-android

1 messages · Page 1 of 1 (latest)

wraith tusk
#

Hello! I'm not exactly sure what you're trying to do - can you give me some more detail? Are you following a specific guide?

neat heath
#

So I'm trying to integrate Stripe in my Android app, and I have it to where customers get their cus_xxxx but I need to get my publisher key hoooked up for payments

normal gorge
#

Is this your stripe publishable API key? Or is this an Android specific key?

neat heath
#

Yes it's my Stripe publishable key

normal gorge
#

Which guide are you following right now? Is this the accept a payment doc?

neat heath
#

Correct

normal gorge
#

Are you running in to a question with a specific part of that step?

neat heath
#

I just was wondering if I needed my publisher key in the beginning of the app or at checkout

normal gorge
#

In the flow in that doc, you do not need your publishable key. Just your secret key and the ephemeral keys that you create with it.

neat heath
#

Oh okay thank you

#

I was wondering because I needed my publishable key in the beginning for iOS

normal gorge
#

iOS is similar to Android. No publishable key, the iOS app will use an ephemeral key that your server makes

neat heath
#

I think I'm thinking about something different then an endpoint. I'm needing to set my publishable key at the beginning

normal gorge
#

What exactly is the issue that you are running in to?

#

Where are you setting it now? Can you send me the snippet of code that you are working with?

neat heath
normal gorge
#

Thank you for the details. Checking in to this.

#

So when you pass that key, are you getting some sort of error?

neat heath
#

I don't know how to pass the key in Kotlin, that's why I'm getting that error

#

The second code picture is iOS

normal gorge
#

It looks like your app is reaching out to your server and expects to get json back that contains the publishable key

#

Like that BackendUrl from the first code points to your server, correcT?

neat heath
#

Correct, so instead of the BackendUrl, should I try my key?

marble idol
#

Hello! The error in your screenshot above is not related to Stripe, the problem is that your server is not using HTTPS.

neat heath
#

Oh okay thank you

neat heath
#

Oh okay I figured it out