#hndk-stripe-customers
1 messages ยท Page 1 of 1 (latest)
No problem at all! Sorry for asking many questions at once.
Hey ๐ , stepping in here
Can you clarify what OAuth connection you are looking to do here?
You can provide a customer if you use the server-side API. Can you make server side calls here or can you only use the client version? https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
We do have a server, but we were investigating if a client-only approach would work for us. In the end, we would need to match our users with Stripe customers. We thought oauth might be able to help in that scenario.
Perhaps I have some misconceptions. Just to clarify: Users should/would not have to visit Stripe to see their payment history, for example. Stripe is just for the developers to use, right?
So to clarify on our language here, these users are only potentially making payments or are they taking payments as well?
I see! No, users won't be taking payments. They would pay us for a new feature.
Thank you. Just making sure. So Stripe does not have an OAuth solution for this. Let me check in to your asks again I will get back to you in a minute
Thank you! Every bit helps a lot. I'm currently checking Sessions.
So yes, in either case Checkout will create a Customer object that you should attach to your own customer records
If you want to utilize a returning Customer with checkout, you will need to use the server side call
And what purchase history info are you looking to retrieve here?
I believe it would be good for users to see what payments they did. A call to the payment intents list using that customer ID would work I believe.
This does need to be on our server, as the secret key is required it seems.
Exactly, you can list PaymentIntetns and filter them by Customer ID https://stripe.com/docs/api/payment_intents/list#list_payment_intents-customer
And yes that call would be on your server
Thank you for everything!
I appreciate your help a lot. We can close this thread. I'll come back and open another one if I have other questions.
Awesome! Glad we could help