#coinbeastcrypto
1 messages · Page 1 of 1 (latest)
Hi there
Both of these mostly depend on your integration for how you would go about them
Let's start with 1/
Are you using Stripe Checkout?
Okay so you control the success URL when you create the Checkout Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-success_url
So you would just set that to what you want for each Connected Account that you are creating the Checkout Session for.
Ah wait
You said "checkout page links"
Are you using Payment Links?
Or creating Checkout Sessions directly?
Might be easiest honestly if you just provide me an example PaymentIntent ID
Then I can look at exactly what you are doing
so we have done the work to generate checkout sessions for one use case for customers that use our platform normally.
For this use case, I had generated one Payment link
that our customer wanted to embed into their mobile app
as a webview
sure, I can grab an example, one moment
Let me walk through the process instead.
I login to my stripe dashboard > Connect > I click into one of my connect accounts > I click the Payments tab > I click + Payment > Payment link and I configure the payments page to be customers pay what they want
This is the link the user of my connect account wants to embed in their application and from which we want to report back who paid in for them
Okay
So you can't attach a memo to the Payout but you can reconcile this afterward. You basically want to take the Checkout Session which will have the client_reference_id (which is what you are passing via query params) and then expand the payment_intent.latest_charge.balance_transaction which will provide you with details on the Balance Transaction object: https://stripe.com/docs/api/balance_transactions/object
That object has an available_on property (https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-available_on) which can help to identify the payout, and you can list balance transactions by payout to line this up: https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list-payout
So basically this is going to take some reconciliation work on your end if you want to provide this exact data.
That being said, you are using Express, so we provide the Dashboard here.
So not sure exactly where you are going to display this info to your user
this would be something we could manually pull worst case but was hoping there was a more automated solution
*Manually pull and email or slack to our user every time there is a payout
Actually in that case you may just want to lean on the Reports API
Hmm the problem though is you won't necessarily be able to line up the client_reference_id I don't think with the Reporting API....
https://stripe.com/docs/reports/api is what I'm referencing
hmm. I see
But yeah those reports would just give you balance transactions for a payout
They won't contain the client_reference_id passed to the originating Checkout Session
So mostly depends on exactly what you want here
The most important requirement here is to understand which exact transactions make up each payout
Well if that is your only concern then you should take a look at some of the Connect platform Reports that you can download. You can see the different options here: https://stripe.com/docs/reports/report-types#connect
There are various payouts.itemized reports that likely contain what you want
If that doesn't do it then you can just list balance transactions by payout using the API as I indicated above
checking now
can you confirm if client_reference_id can be understood in these reports as well? That's what our client needs in order to reconcile which transactions are which from their end
No client_reference_id will is not a column that will be populated in these reports
Ok got it no worries
and just confirm the first item around custom url, is it possible to have a custom url from a payment link as opposed to checkout session?
Yeah you specify this in the Dashboard when you create the link or you should be able to update it at a later point
Hrmm actually let me double check on the Dashboard part
I'm much more familiar with the API as that is where I focus
Which you can set this via the API, see: https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-after_completion-redirect-url
Oh yeah there is an option in the Dashboard to specify this too
on the "After payment" tab you click "Don't show confirmation page" and then it lets you specify your success URL
Sure!