#brian-johnson_api

1 messages ¡ Page 1 of 1 (latest)

odd ploverBOT
#

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

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

open coyote
#

hello, looking

runic ether
#

Yeah should be

#

I'm testing chargebacks for a new report

#

and am using the text card numbers from here

open coyote
#

see the "Source: API" link at the top of that page

runic ether
#

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

open coyote
#

sure I understand you're testing chargebacks but I'm saying the event you linked is for the Destination Charge

runic ether
#

OK

open coyote
#

so there should be a different event for what you're saying

runic ether
#

OK yeah there are a number of events for the chargeback

#

the transfer.created is the one I linked you to

#

I apologize as I am confused about it

#

So when a charge back happens

#

the connected account gets dinged $15.00 + the amount of the chargeback

#

I was under the impression that was taken from the platform's account balance

#

not the connected account's account balance

#

but here instead I see the charge back amount is being ADDED to the connected account balance

#

I'm certain I am totally misunderstanding something here

#

Here's the charge.dispute.funds_withdrawn event: evt_1P8St0BZdPwcgHSOhjYn7QuJ

#

How do I tell which account that was withdrawn from?

open coyote
#

taking all of your questions

#

the transfer.created is the one I linked you to
that event is for the initial payment, not for the (later) chargeback.

answering the others one sec

#

I was under the impression that was taken from the platform's account balance
let me refresh myself on this part

runic ether
#

ok thanks

open coyote
#

let me lay out a clearer picture of that PaymentIntent and Dispute

runic ether
#

OK thanks - yeah I thought it was our platform that was debited

open coyote
runic ether
#

OK yep - let me double check I have this correct then

#
  • the payment intent succeeds and that increases the connected account balance
#
  • some point later we get a charge back
#
  • the chargeback amount + fee is deducted from the PLATFORM account
#
  • it is then up to us to debit the connected account
#

So the reason I see the connected account balance INCREASE is due to the successful payment intent

#

the platform balance is decremented for the chargeback + fee

#

so then it's up to us to decide how to decrement the connected account balance

open coyote
#

yep all of that is correct!

runic ether
#

(this allows us to charge a higher fee for example)

#

OK good

open coyote
#

so yes you have it exactly right

runic ether
#

thank you for your time

#

I appreciate it

open coyote
#

np glad to help and talk it through