#davidlfox_api
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/1486713308525494402
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- davidlfox_api, 8 minutes ago, 4 messages
- davidlfox_api, 5 days ago, 51 messages
Hello! If you are using separate charges and transfers, you can link the transfer to the charge with source_transaction so it waits until the charge has settled ๐ our docs explain this here: https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-availability
They also outline how to create the transfer which moves the funds from your platform to your conencted account: https://docs.stripe.com/connect/separate-charges-and-transfers#create-transfer
i had to use transfer_data.destination to make this work. im not creating a charge. im creating a payment intent in my code
amount: chargedAmountCents,
currency: 'usd',
customer: senderStripeCustomerId,
payment_method: senderStripePaymentMethodId,
payment_method_types: ['us_bank_account'],
transfer_data: {
destination: receiverConnectAccount.stripeAccountId,
},
confirm: true,
off_session: true,
description: `Admin test charge ${senderUserId} -> ${receiverUserId}`,
metadata: {
mode: 'admin_test_charge_transfer',
senderUserId,
receiverUserId,
},
});```
so my platform isnt really involved
the money has landed in the recipient stripe account but it hasnt automatically paid out yet. should it have? how do i know when it does? the payment intent still has status "processing"
Ah I see you're doing destination charges like this: https://docs.stripe.com/connect/destination-charges?platform=web&ui=elements
So it's not relevant, but just so you know, you can get the latest charge from a payment intent with this field: https://docs.stripe.com/api/payment_intents/object#payment_intent_object-latest_charge
Can you please share your Payment Intent ID?
are those id's safe to show in these threads?
Yes, the only thing you don't want to share publicly are API keys / secrets.
pi_3TEVLVBLGbNkM6ia2pPWwbVm
Thanks! Since the payment method is a bank account, it can take a few days to process. Therefore, the funds should be in your account's pending balance which you can check like this: https://docs.stripe.com/connect/account-balances#check-connected-account-balance
Once the payment intent's status is succeeded the funds will be in your account's available balance and folllow your automatic payout schedule. Does that make sense?
what cli command can i use to see the stripe connect account pending and available balance?
i tried stripe balance retrieve --stripe-account ...Rb0
but all balances are 0
Hm that should be right. Are you making that request with your platform's API key? Can you share your request ID?
that was it. i added the api key and i now see the pending balance of 914
Nice!
can i make my cli always recognize that key when my intention is to query production so i dont have to add it to history
There are a few different ways to set and persist API keys for the CLI which you can read about here: https://docs.stripe.com/cli/api_keys
awesome. ill continue monitoring balances and pi's for a couple more days. once the balance is available, will stripe trigger the payout the next day?
It should, yes! Feel free to contact us again with the payment intent or account ID if something doesn't go as expected.
great thanks for your help!