#marksman_best-practices

1 messages · Page 1 of 1 (latest)

stuck muskBOT
#

👋 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/1221832152203661392

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

manic snowBOT
versed ether
#

Hello

empty fiber
#

hey

versed ether
#

Can you clarify your question?

empty fiber
#

we got mail regarding dispute fee changes for the 01.06

#

this year

#

how can i fetch the dispute/payment failed fee for an invoice via the api?

#

"We’re letting you know about updates to the pricing structure for SEPA Direct Debit starting June 1, 2024."

versed ether
#

You would retrieve the Invoice and expand its payment_intent.latest_charge to check the disputed property. If that is true then you want to list the Disputes for that Charge using https://docs.stripe.com/api/disputes/list#list_disputes-charge to see the actual Dispute and then you would look at that related Balance Transaction to see the fee amount

empty fiber
#

"
Stripe currently charges €7.50 for each SEPA Direct Debit disputeand failed payment. Starting June 1, 2024, we’ll price disputes and failed payments separately. The dispute fee will increase to €15.00, and the failed payment fee will decrease to €3.50. Most businesses will see cost savings as a result of this change."

#

are disputes & failed payments BOTH in there?

#

basically the same?

versed ether
#

So you would expand that property

empty fiber
#

ah interesting

#

so its either one

#

but its empty

#

i have a live code charge

#

can you have a look?

#

"ch_3OhvZbCrrVPAjQHJ0LlbQGlV"

#
  "disputed": false,
  "failure_balance_transaction": null,
  "failure_code": "card_declined",
  "failure_message": "Your card has insufficient funds.",
versed ether
#

Looking

empty fiber
#

so dispute false, which is ok

#

its not a dispute

#

its a failed payment

#

but "failure_balance_transaction" is null

versed ether
#

This is a card decline

#

Not SEPA Debit

empty fiber
#

ah its SEPA only

#

ok

#

sure

versed ether
#

So there wont' be any failure BT

#

Yeah there aren't any fees or anything for declined Card charges since they are synchronous

empty fiber
#

ok

#

checking a SEPA one now

#

"py_3OdrNsCrrVPAjQHJ02mQL5um"

#

this is sepa

#

but still

#
  "disputed": false,
  "failure_balance_transaction": null,```
versed ether
#

That payment was blocked.

#

It wasn't a payment failure

#

You can see that in your Dashboard or in the failure message when looking at the Charge

empty fiber
#

yeah ok

#

anything we can do to improve payment success?

#

do you mind having a look at our account?

versed ether
#

We don't do decline analysis here, sorry. We just focus on the API. If you have specific technical questions then I'm happy to help. Otherwise you want to work with our Support team via https://support.stripe.com/contact/login if you feel like you are experiencing a higher than average rate of declines.

empty fiber
#

okay thanks so far