#amraneze - CLI payouts
1 messages ยท Page 1 of 1 (latest)
Hello, it looks like creating payouts via the CLI requires your account to have test funds. You can either do this via a top up in test mode or by making charges that use our cards that add funds directly to your available balance https://stripe.com/docs/connect/top-ups
https://stripe.com/docs/testing#available-balance
But I do have balance, here a screenshot when I ran the command ./stripe.exe balance retrieve
Can you send me your account ID (acct_1234...)?
Actually before that
I wonder if the issue is that it is trying to pay out in USD
In which case, I think adding an --overide command that redefines the payout's currency as being in CAD should fix it https://stripe.com/docs/cli/trigger#trigger-add
./stripe.exe trigger payout.updated --override payout:currency=CAD
Awesome! Glad the fix was easy
just for my information, can I add status for payout using the event payout.updated ?
for example: status failed or sent
to know what stripe will send me when the payout is done
Hello there ๐
Stepping in here
Should be possible I think. I'd recommend giving it a try ๐
ah my apologies. I think only allow updating following parameters
amount, currency, description
an what is these event 'payout.paid', 'payout.failed' ?
should I subscribe on them?
what I want is to have a confirmation when the payout if confirmed (was received by the bank) or failed (an issue during the payout)
how can I do that with hooks ?
yes those would be the events that you'd subscribe to
Yes, but they are not supported with stripe CLI
I have a question, when you send a payment to a connected user bank account, is it considered payment or payout ?
That will be considered a payment. The term Payout is used to refer to funds moving to an external account
is there a way to attach a payment to an exisitng one ?
./stripe.exe trigger payment_intent.succeeded --stripe-account=acct_1L88k... --override =payment_intent:payment_method=ca...
or use the id of an old payment ?
what I want to do is to send an update of an old payment, so I can check if stripe will use the same payment id. So I can notify the user of the status of the payment
if it failed or succeeded
I believe the only way to do this is to create your own CLI fixture
Let's take a step back though. The ID of a PaymentIntent will not change if its status changes through the payment process.
How can I do that ?
Create a fixture?
Yes