#vell2x

1 messages · Page 1 of 1 (latest)

low coralBOT
broken totem
#

Hello! How are you sending the request?

patent hearth
#

Using Http Client to send a PostAsync()

#

Android c++

broken totem
#

What are you getting back instead of the object?

patent hearth
broken totem
#

That's a request to your server, not to the Stripe API.

patent hearth
#

Should I create an endpoint for '/v1/customers' on my server?

broken totem
#

Let's take a step back. Can you tell me what you're trying to build?

patent hearth
#

I am building a non-native android app for a lawn care service

broken totem
#

Non-native, but you're using C++?

patent hearth
#

Yes. Xamarin

broken totem
#

Okay, so which specific part of the app are you working on right now?

patent hearth
#

Registration. When the user registers for the app I forward their information to stripe to create a customer account. I want to get the customer id back to save for the payment intent when the user makes a purchase.

broken totem
#

Gotcha. All of the sensitive operations that require a secret key should be taking place on your server, not in the app, so do you have your server set up to create a Customer using the Stripe API?

patent hearth
#

I dont, but I can. I am using node js for my server

broken totem
patent hearth
#

What's the next step? I know you will be unavailable over the weekend.

broken totem
#

Set up your app to communicate with your server. To clarify, anything that requires your secret Stripe API key should be happening on your server. It's not safe to have your secret key in your app. Your app should talk to your server, and then your server should perform those secret key operations.