#dadahumpa_connect-payments-apis
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1356263039984472075
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
There is anyone?
Hi, I'm currently helping multiple developers.
If you're looking to have the transferred occur at the creation of of the payment, you'd want to use this flow: https://docs.stripe.com/connect/destination-charges?platform=web&ui=elements
You pass the destination account id, and Stripe create the transfer for you.
After you review the document, let me know what specific questions you may have.
Yes but I don't have custom access to checkout, isn't there a way to set this up by default in my connect stripe account?
What integration are you using?
A checkout of a saas, and they use stripe api keys
Stripe Checkout?
You should still be able to pass that data: https://docs.stripe.com/connect/destination-charges?platform=web&ui=stripe-hosted when you create the Checkout Session
Can you try that please? You can use your test api key to test this flow.
You don't understand, it's not my platform but it's from a saas I think they use stripe elements but I have no way to go and touch that code
Ah, you'd then need to reach out to the platform that owns this. This channel is dedicated for developers who have access to their code.
Is there no way to do it inside stripe to set it up?
I'm unsure what you mean by that but I can't go it and make those changes, no.
Once I receive the payment made by payment intent from this saas platform, the only way I can tell stripe to transfer the funds is through transfers right?
But in that case I have to wait for the time to have the money available on the balance?
That is right if you're making separate charges and transfers. However, you can pass this: https://docs.stripe.com/api/transfers/create#create_transfer-source_transaction to transfer funds from a charge before they are added to your available balance.
So I get a payment intent, once I complete checkout I immediately make this api call maybe I get a serve through webhooks and the funds are immediately moved to connect account?
And I don't have to wait the 3 to 7 days for receipt of payment and available fund on the account?
No, you pass the source_transaction and you do not need to wait days to make the request. A pending balance will transfer immediately but the funds will not become available until the original charge becomes available.
Where should I put source_transaction, to payment to payment id?
It's the charge id, and we document this here: https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-availability
dadahumpa_connect-flows
I could create a wrapped that does this by wrapping an event like payment success
I'm unsure what you mean by that
You can listen to events to get the charge id sure
What is the api I can call to see if there are accounts connected to stripe?
Hi there ๐ jumping in as my teammate needs to step away. Can you elaborate on what you're asking there? All Stripe accounts are connected to Stripe, so I'm not sure I'm grasping what you're trying to ask.
Hi toby, Would like to know from you, what is the api key that allows me to see all the connect accounts connected with my account?
That's your secret API key, that you use to list Connected Account's with this endpoint:
https://docs.stripe.com/api/accounts/list
ok, try one second i think there are bug on my connect
Ok i have make this call and recive {
"object:" list,
"data": [],
"has_more": false,
"url": /v1/accounts
}
Sounds like you don't have any Connected Accounts then.
No i have one account connect
I have so many payment reporting acct_ and id of connect
If you had a Connected Account, that list endpoint would return it, unless you're making the request in the wrong mode (testmode vs livemode) or something.
No its, live
and the account is live
I have the same error when i got on specific payment id
I don't know what this means or what you're trying to ask, since an error message hasn't been shared here.
If I do /v1/charges the api call, and in the response I have:
transfer_data: {
amount: null,
destination: acct_*
}
This money went to a connect?
To a Connected Account, yes, probably, if the Charge succeeded.
ok and if i made /v1/accounts i get this:
{
"object:" list,
"data": [],
"has_more": false,
"url": /v1/accounts
}
Then the Account you're making the request from doesn't have any Connected Accounts.
Same api key same account...
It could be that you had a Connected Account, but that it has since been deauthorized from your Platform. Or that you're looking at a Charge from one Stripe Account but are then making that request to list Accounts from a different Stripe Account.
Do you have more details that you can share? I don't really understand what you're trying to ask about. Do you have the Charge ID?
Do you have the Charge ID?
I'm not able to find any Charge object with that ID.
What id you want?
Can you double check it's correct, including case as those IDs are case-sensitive?
Now?
That Charge didn't succeed, and is also from nearly 2 years ago.
The Connected Account it was made for is no longer connected to your Platform.
But it was disconnected, the connection was standard?
I don't understand what you're trying to ask. Can you try to rephrase that, preferrably in the terms of the Stripe ecosystem?
No I say, the account that was connected that is now gone in what connection was it express, custom or standard?
And the other question I had was, was the payment moved directly to the connect from the intent or was it done with the transaction later?
Neither, the payment was never completed.
It was a Standard Connected Account.
Yes but I would like to understand the flow better.
What it had to do in the case of success when it was done.
Was the payment sent directly to the connect?
Yes, Destination Charge style flows cause Transfers to be created automatically to move funds from the Platform account to the Connected Account. As shown in our guides for this style of charge structure for Connect integrations.
https://docs.stripe.com/connect/charges#destination
https://docs.stripe.com/connect/destination-charges?platform=web&ui=elements
Ok, Okay, I saw that there is a transfer group what would that be?
A string that identifies the resulting payment as part of a group. Learn more about the use case for connected accounts.
https://docs.stripe.com/api/payment_intents/create#create_payment_intent-transfer_group
It's generally used for Separate Charges and Transfers flows, rather than Destination Charge flows.
is it possible to know if a payment intent was created from an api or from the dashboard in short the origin?
Hi ๐
I'm taking over as my colleague needs to go.
Ok thank you
Can you describe the context? Where are you reviewing the PaymentIntent?
I make this, /v1/payment_intents/pi_3NNwOfFRdMtCwm390GQb13SX
now?
i corret again sorry
Can you share an API request ID where you created this Payment Intent? It will start with req_
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
I not found
I would like to understand if possible where this payment was generated from, meaning ok the method but whether from the dashboard, api or other
There is not a property on the Payment Intent object that will tell you that. But I'm asking you to provide an example I can review so we can potentially find another solution.