yes, i'm a developer. stripe has hundreds of employees though :)
if you want to present users with a summary like in the dashboard you'd need to do a little bit of work in your own logic, show the user their available balance (retrieve balance), and sum the payouts by status
correct. there's a single call to get the amount 'available' to payout https://stripe.com/docs/api#retrieve_balance but if you want to display details about payout(s) you'd need to list and sum them by status in your application logic
yes. you'd need to list and sum for each user. you can filter their payouts list though (as you're not likely going to need a history of payouts for all time) by bounding the query with date, limiting by status, etc. https://stripe.com/docs/api#list_payouts
shengwei_ joined the channel
GestureDev joined the channel
cagomez has quit
orbyt_ joined the channel
dqsf has quit
ioxtrem joined the channel
ioxtrem has quit
dmarques joined the channel
cagomez joined the channel
nexie joined the channel
corine joined the channel
corine has quit
orbyt_ has quit
cagomez_ joined the channel
cagomez_ has quit
stripe858 joined the channel
GestureDev has quit
dmarques has quit
dmarques joined the channel
dmarques has quit
stripe858 has quit
dmarques joined the channel
schutt has quit
dmarques has quit
dmarques joined the channel
cagomez has quit
dmarques has quit
ta has quit
blinky42 has quit
nexie has quit
ToBeCloud joined the channel
nexie joined the channel
nexie has quit
nexie joined the channel
nexie has quit
nexie joined the channel
zeitue has quit
nexie has quit
stripe329 joined the channel
ioxtrem joined the channel
stripe513 joined the channel
stripe149 joined the channel
stripe329 has quit
stripe149 has quit
stripe726 joined the channel
ToBeCloud has quit
ToBeCloud joined the channel
stripe513 has quit
Manuman joined the channel
ta joined the channel
nexie joined the channel
sandstrom joined the channel
ioxtrem has quit
nexie has quit
nexie joined the channel
ioxtrem joined the channel
bissan joined the channel
sandstrom has quit
cannap joined the channel
cannap has quit
cannap joined the channel
Vishnu joined the channel
ta__ joined the channel
ta has quit
bissan has quit
Vishnu has quit
ta__ has quit
ta joined the channel
sandstrom joined the channel
Dmitry joined the channel
amber joined the channel
dev_style joined the channel
NightA has quit
NightA joined the channel
ToBeCloud has quit
karllekko
dev_style: it's the POST body of the request that your server received. You shouldn't need to do manual verification though, just use one of our libraries
dev_style: you can also check `data.object` : https://stripe.com/docs/api#event_object-data-o... that will tell you what type of object the event contains, so you can deserialise it to the appropriate model class
Dmitry has quit
developer joined the channel
dev_style: yeah, for a real event the ID would be `evt_xxxx`. I'd recommend testing by setting up your endpoint and making some requests to the API in test mode, that will generate 'real' events so it's a more accurate reflection of what to expect
developer: hi there!
dev_style: you can use a tool like ngrok(http://ngrok.io/) to quickly set up a webhook handler
abenrob joined the channel
developer: not really, no. You can do something similar with Connect https://stripe.com/docs/connect but it's more aimed at marketplaces. Stripe isn't really a money-sharing platform like that.
abenrob: yes, it will. You'll get a webhook about it as well
`customer.source.updated`
abenrob: we would update it asynchronously at any point, it's not connected to a particular charge attempt
Scherdin joined the channel
Scherdin has quit
dev_style: if the event occurs on a connected account, you need to have a specific Connect webhook to receive the event : https://stripe.com/docs/connect/webhooks The event body will have an additional `account` field that tells you which account the event occured on
ioxtrem has quit
njbair has quit
njbair joined the channel
kk_ joined the channel
kk_: that's possible with Connect : https://stripe.com/docs/connect/ The transfer isn't automated, you would need to call the API to create transfers : https://stripe.com/docs/api#transfers I'd recommend reading through the Connect docs thoroughly and if you have any specific questions let me know.
bigmart: hi there
bigmart: I'd suggest replying back to the support team to clarify the situation as they'll be glad to help, we can't help with account-specific questions here.
bigmart: sure, but if you reply to the support team they will know which accounts are involved if it was a bug, so they could pass that to the relevant team to look at the logs. I can't do that here.
stripe726: I don't believe so, as we are still in private beta in India. You can reach out to our support team at https://support.stripe.com/email to request an invite.
Mike_ joined the channel
Mike_ is now known as Guest6964
ioxtrem joined the channel
developer has quit
kk_ has quit
Guest6964: hmm, and you definitely added an external bank account to the connected account? If you have the acct_xxx I can take a quick look
how does Stripe handling rounding? Say we want to split $1 among 3 different parties, how does stripe determine who get's the extra cent?
karllekko
petercpw_: you always provide the amount for a charge or a transfer as an integer number of cents, so it's your code that would decide the split.
petercpw_
any advice on what type of rounding we should use?
banker's rounding vs other rounding etc
karllekko
petercpw_: hmm, well what specifically are you trying to accomplish? That might help me advise you. But it sounds like you have a better idea than I do, I had to Google banker's rounding just now. Ultimately it's a decision for your business as to what is appropriate, from Stripe's perspective you just provide the number of cents.
petercpw_
ok got it
also do you know what rounding Stripe uses when calculating the fee percentage?
karllekko
petercpw_: as far as I know, we calculate the percentage and round down to the nearest integer amount of cents(or the relevant currency unit).
petercpw_
does stripe store dollar amounts as cents (integers) in their own database?
ioxtrem has quit
karllekko
that's kind of an implementation detail, from the perspective of interacting with the API, it's all integer cents.
petercpw_
i notice all amounts are returned as cents, so just wondering if Stripe has some insight on whether it's better to store them as decimals or integers
karllekko
we definitely recommend going with integers when dealing with currency anyway, it makes things much cleaner. If you deal with decimal numbers, you will get weird floating-point rounding problems.
since computers are not good at representing certain fractions :)
petercpw_
yeah that's what i figured
but as a dev at Stripe, would you recommend integers be stored in the db as well?
* storing monetary amounts as integers
karllekko
yep, I'd recommend integers, absolutely. Store the integer amount of the currency's smallest unit(like a cent, or a yen, or a grosz(for PLN)), since that's all that you can actually pay with. It doesn't make sense to charge someone a fraction of a cent or something.