#artursir_webhooks
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/1344230943594123325
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
Hm, this is weird. I would expect the amount received to change.
right, so you see this for pi_3QpAUX2AkROc6diV0mFPGGic?
Yes, I see that it's 0.
and no Charge object, but in Stripe dashboard you can see this is partially paid
so we should have also CHarge for some part of the total amount
However, there's a payment_intent.partially_funded Event that you can listen to: https://dashboard.stripe.com/events/evt_3QpAUX2AkROc6diV0pHEvabW
right we do like this but no amount_recevied, no CHarge object
this is very limited
if someone makes many partial payments you don't know the exact amount
you need to calculate in database what is the amount for specific payment
You can see the remaining amount in next_action.display_bank_transfer_instructions.amount_remaining=3000
But it's not a documented parameter so it's not reliable to use it in the long term, unfortunately.
right but still it works for one partial payment, if you get second, third partial payment it is not enough
What do you mean by this?
for example total amount = 1000
first partial payment = 500
so remaining amount is 500 in PaymentIntent
second partial payment = 400
so remaining amount is 100 in PaymentIntent
however in PaymentIntent you don't have any property saying second partial payment = 400
you need to do calculation by youself having previous payments saved in database
so, you cannot force anyone to pay the whole amount with a bank transfer. Thus, we should be able to register every partial amount in a standard way, so the transaction amount should be stated somewhere in PaymentIntent (without extra calculations), Charge object should be created also for partial payments to get some other data like net amount or fee from BalanceTransaction
I think for now this is very hard to obtain
Yes, that's right. The most reliable source is the Customer Cash Balance: https://docs.stripe.com/api/cash_balance
it is only a balance, this doesn;t give any information about specific transactions
Yes, there's no way to see individual transfers, unfortunately.