#amraneze - CLI payouts

1 messages ยท Page 1 of 1 (latest)

terse sand
wild gorge
#

But I do have balance, here a screenshot when I ran the command ./stripe.exe balance retrieve

terse sand
#

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

#

./stripe.exe trigger payout.updated --override payout:currency=CAD

wild gorge
#

OK I will try it

#

It works as charm, thank you ๐Ÿ™‚

terse sand
#

Awesome! Glad the fix was easy

wild gorge
#

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

crude girder
#

Hello there ๐Ÿ‘‹
Stepping in here
Should be possible I think. I'd recommend giving it a try ๐Ÿ™‚

wild gorge
#

how can I do it with Stripe CLI ?

#

what's the command ?

crude girder
#

ah my apologies. I think only allow updating following parameters

amount, currency, description

wild gorge
#

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 ?

crude girder
#

yes those would be the events that you'd subscribe to

wild gorge
#

Yes, but they are not supported with stripe CLI

wild gorge
#

I have a question, when you send a payment to a connected user bank account, is it considered payment or payout ?

lucid topaz
#

That will be considered a payment. The term Payout is used to refer to funds moving to an external account

wild gorge
#

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

lucid topaz
#

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.

wild gorge
#

How can I do that ?

lucid topaz
#

Create a fixture?

wild gorge
#

Yes