#mlo300
1 messages · Page 1 of 1 (latest)
That will help you setup a custom payment flow
Then you can sprinkle in the Connect elements you need
How can I check that the seecret key and public key belong to the same account when a user saves them to my site?
You don't save their keys if you're using Connect
On payment intent explain me the difference between confirm and automatic_payment_methods
No I have to save them for other reasons, for example, to get the account connects
No, you don't do that. You use the Stripe-Account header: https://stripe.com/docs/connect/authentication
I don't understand the question. They're 2 completely independent parameters
Like no, excuse me send me the doc where stripe is initialized, with seecret key in it.
I don't understand, I am obligated to save it since my app supports multiple stripe accounts
You should be using Connect then, no?
Yes, but the user use my platform save the our api key
If you're using Connect, then you should not be collecting and storing API keys of your connected accounts. You use the Stripe-Account header to make API requests on their behalf, as noted at the URL above
I am not using connect because I need to access some account data
Such as?
customers
What is that in the context of Stripe objects? Their actual Stripe account?
You can access some of that data via Connect auth
I have to access all the customers create payments from inside their stripe that go inside their customers
Ok, and what's preventing you doing that using the Stripe-Account header?
Are you processing payments on behalf of your users? Are you a platform that takes a fee?
Through connect you mean?
How do I make a payment that goes to one connect and then from that connect go to another connect becomes crazy
No no commission
I don't understand what you just said
You initially asked me how you can collect payments in Next.js
With the stipulation that 'connected to an affiliate via connect'
So my assumption was you were using Connect, so you can use the Stripe-Account header
Nono, it is very complex then the app has many features.
The users themselves use it with more than one stripe account at a time and in the end the most practical method is to save the keys in the database temporarily.
The first example you sent me is also there in typescript?
Not in that specific example I don't think no