#artursir_webhooks

1 messages ¡ Page 1 of 1 (latest)

viral thistleBOT
#

👋 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.

glad wolf
#

Hi, let me help you with this.

#

Hm, this is weird. I would expect the amount received to change.

fervent shell
#

right, so you see this for pi_3QpAUX2AkROc6diV0mFPGGic?

glad wolf
#

Yes, I see that it's 0.

fervent shell
#

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

glad wolf
fervent shell
#

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

glad wolf
#

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.

fervent shell
#

right but still it works for one partial payment, if you get second, third partial payment it is not enough

fervent shell
#

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

glad wolf
#

Yes, that's correct.

#

How were you planning to use this value?

fervent shell
#

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

glad wolf
fervent shell
#

it is only a balance, this doesn;t give any information about specific transactions

glad wolf
#

Yes, there's no way to see individual transfers, unfortunately.