#0xpete_api

1 messages ยท Page 1 of 1 (latest)

zenith boltBOT
#

๐Ÿ‘‹ 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/1275452733998239787

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

rain marlinBOT
nova steppe
#

That's a charge id

#

Charges either start with ch_ or py_

jaunty inlet
#

๐Ÿคฆ i didn't specify the connectedAccountID

#

so it was looking at my main account

#

i'm sorry for the absolutly idiot q

#

can you at least validate this flow:

#
  • I check to see if i've added metadata on the charge of the correction, IF not, i issue a transfer FROM the connected account back to the main account and update the charge w/ the audit information
nova steppe
#

Sorry what part do you need me to validate?

jaunty inlet
#

Does what I'm proposing make sense and seem reasonable?

nova steppe
#

Yeah that makes sense to me

jaunty inlet
nova steppe
#

What do you mean

jaunty inlet
#

On the custom connect account, for the paymetn I see this:

#

with a fee on there then the net amount.

#

with the reversal of some of the net amount, is there a way this can be updated?

#

so it's super clear what is happening

regal terrace
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away.

jaunty inlet
#

hi Toby ๐Ÿ™‚ Thank you!

regal terrace
#

Can you tell me where you're seeing that? My teammates and I in this forum specialize in helping developers work with our APIs, so I'm not as familiar with the UI you're showing and can't place it offhand. It being so heavily cropped makes it harder for me to guess about what you're showing there.

jaunty inlet
#

ahh i'm sorry.

https://dashboard.stripe.com/connect/accounts/acct_1PkTaL2UTQ9bHHLH/payments/py_1PpquK2UTQ9bHHLHkRXSM3m7

It's on a custom account page, on the charge that is associated with that custom account.

I see the entire payment there, with the breakdown showing the existing fee, the charge amount and then the net amount going to the custom connect account.

#

maybe the better way would be updating the application_fee on the charge object vs doing this transfer.

#

i'm just trying to make sure I am doing things in a way for audit purposes

regal terrace
#

You can't update the application fee after the payment has been processed, I'm pretty sure.

That page is a page that only you will be able to view, and unfortunately I'm not sure how the Payment breakdown section is populated. I'm seeing it include a payment amount and a stripe fee on one of my test payments.

If you populate the metadata parameter on the Charge object, that should be visible in the Metadata section further down on that page.

jaunty inlet
#

perfect, that's what my initial route was, just wanted to make sure there wasn't a better path to go.

#

Thank you so much again for all the help, I truly appreciate it!

regal terrace
#

Any time! Happy to help

jaunty inlet
# regal terrace Any time! Happy to help

I'm sorry one more thing..

Can i create a transfer FROM a custom connected account back to the main account this way?

const transfer = await stripe.transfers.create(
                {
                    amount: amount,
                    currency: 'usd',
                    description: 'Fee adjustment transfer from connected account to main account',
                    metadata
                },
                {
                    stripeAccount: connectedAccountId
                }
            );

or should this be a reversal off the initial transfer into that account?

#

hmm nope i don't think it should be a reversal.. just need to look at the syntax for transfering back.

regal terrace
jaunty inlet
#

yep perfect, i caught the error prior to any of the funds transfering off.