#dennis-transfer-testmode
1 messages · Page 1 of 1 (latest)
dennis-transfer-testmode
Hey @quaint rock. The setting is global yes, it will apply to your Live mode and Test mode balance.
What are you really trying to test? It doesn't make sense usually to try to create Transfers if you plan to stay on automatic Payouts in the first place
We are currently testing scenarios where we trigger two transfers based on one payment, one transfer coupled to the source transaction and one without, but the one without seems to just exceed the balance.
Sure but if you plan to do this you will have to switch to manual Payouts.
Ah, also in productive operation?
We thought if the funds are sufficient, with a weekly payment, it is ok?
Usually no it isn't okay. If you want to be able to do Transfers without source_transaction you need to build a real balance in your account which means not being on automatic Payouts, no way around this
But even if there is enough money, at the time of transfer it would not work and return the error? So basically transfers without source transaction are only possible with manual payouts?
yes
Okay, that changes our entire business logic and turns it upside down for once. 😄
Okay, thank you very much. Then we'll have to see how we can implement it. Are manual payouts final or can they still be corrected for a certain period of time?
I don't know what that could mean "final" or "be corrected"
I meant when I manually trigger a payout, can I change it or undo it. And how fast is this then executed?
And how do manual withdrawals behave when chargebacks or similar occur and the balance is insufficient? Will a SEPA direct debit continue to be triggered to top up the balance, as is the case now?
if you create a Payout, you can't "amend" it though you can cancel it for a little bit of time https://stripe.com/docs/api/payouts/cancel
And if you have a negative balance then yes we'd debit your bank account on file.
A lot of this is better directed at our support team though as we focus more on your code here. You should contact them at https://support.stripe.com/contact to discuss all of this
Thank you, unfortunately this is very poorly or vaguely described in the documentation.
But we seem to still have the problem with the error message even though I just charged 10k.
I'm happy to help if you provide a lot more specific details. The balance isn't increased instantly since the funds are pending for multiple days by default
In test env?
of course
otherwise you'd think everything is instant and go down when you launch in prod
https://stripe.com/docs/testing#available-balance we have dedicated test cards to explicitly skip the pending balance
Hmm
We use "Add to balance" on https://dashboard.stripe.com/test/balance/overview
Is that okay or does it have to be triggered via "Pay out to bank" now?
That takes a while too and you can't bypass the delay. Hence the section I added
The test payment means are of no use to me if I want to execute it without a source transaction. Or do you mean a little money first by simulated transactions?
Is there a section in the documentation where the delays in charging are described?
1/ Create a PaymentIntent for 100k€
2/ Confirm it with one of those test cards
3/ You now have 100k€ (minus our fee) in your balance
https://stripe.com/docs/payouts#payout-schedule for the docs on the pending balance
Are funds broken down by payment method (such as credit card and SEPA Debit)?
👋 hopping in here!
(Status 400) (Request req_uWAa6CCOJiGRdE) You have insufficient funds in your Stripe account for this transfer. Your SEPA balance is too low. You can use the /v1/balance endpoint to view your Stripe balance (for more details, see stripe.com/docs/api#balance).
Because the funds are sufficient in themselves.
Did you look at your balance first? What do you see, what appears there, etc.
I want to make sure you try things on your own as the developer first. There's a clear next step in that exact error message that tells yo exactly what you need to do
So call https://stripe.com/docs/api/balance/balance_retrieve with your own code in the API and look at the detailed JSON response you get back to understand what exactly is happening.
We've been trying it out all along.
Not sure what you mean. You show pictures of the Dashboard itself, not real exact code and exact response.
Also are you on manual payout already in that account? If not it still won't work. And remember that changing the setting will immediately impact your Live mode environment
Yes, we have already adjusted.
And yes, we are aware 🙂
I then made â 10,000€ transactions as suggested by means of several payments, as you can see from the balance.
So have you actually called https://stripe.com/docs/api/balance/balance_retrieve and checked that you have available balance to actually transfer? It sounds like you're expecting that transfer request to be successful, but it sounds like you haven't actually confirmed through the API that those funds are actually available
That's why you're seeing this fail - you can can't create a transfer from 'pending' funds unless you're passing in source_transaction (https://stripe.com/docs/api/transfers/create#create_transfer-source_transaction)
You mean they can't be created from pending funds?
oops - sorry about that
Okay, I understand. How do I get them from pending to available?
I had understood it to mean that when we execute real transactions, we can immediately dispose of the balance in the test?
Or do we now have to wait several days to test transfers? That can't be very effective, can it?
That's why we have specific test cards that would allow the funds to move from pending -> available immediately (https://stripe.com/docs/testing#available-balance) so that you can test this fully
But yes, in the real world you'd have to wait a few days for those funds to actually become available before transferring
Ah Ok, my mistake, sorry then. I had understood that the 4242.... as always, works for this.
Yeah try it with those other cards instead and see how that goes
Okay, thanks. Seems to work. I just took Payment Links and simulated it with that.
Thanks for your help. Unfortunately, the balance thing is a little confusing.... what is the source_type for?
source_type is something you set if you want to pull from a specific balance type. If you look at the response you got back from https://stripe.com/docs/api/balance/balance_retrieve you can see that available.source_types is an array that will show you how much balance for each type