#Cavalaa

1 messages ยท Page 1 of 1 (latest)

somber yewBOT
waxen falcon
#

Hello ๐Ÿ‘‹
Are you using Direct charges or destination charges?

graceful flame
#

I'm not sure, where can I find this, also I'm getting this webhook error with the payment: Response
500 ERR
{
"error": "record not found"
}

waxen falcon
#

That's likely unrelated to your original question. Let's tackle one question at a time ๐Ÿ™‚

Can you share your account ID?

graceful flame
#

but the payment is still going through

#

sorry haha for the main account or connected account?

waxen falcon
#

Main account

graceful flame
#

acct_1JfOhcAm5odgtJUY

waxen falcon
#

I don't see a connect integration on this account, are you sure this is the correct ID?

graceful flame
#

there's two accounts it says I'm a member of here's the other? acct_1N5RdcHr1zToFGh7

waxen falcon
#

Hmm I think the old one is the right one, let me take a look at recent API requests.

graceful flame
#

But it says on my main balance that im due a payout for these fees but the connected account hasnt been deducted anything?

waxen falcon
#

The connected account isn't responsible for any fees so they won't see any deductions.

graceful flame
#

ok so for example, if a user wants to deposit 1 GBP i charge 1.23 GBP to cover the fees, the full 1.23 is landing in the connected account, so i have to create another transfer of .23 from the connected account to the main account to pay for this?

waxen falcon
#

You are currently creating destination charges so flow of funds look something like this

1/ When you charge 1.23 GBP, it comes in to the platform account
2/ The amount is transferred to the connected account
3/ Whatever you've specified as application_fee_amount on the payment gets credited to the platform account balance automatically and connected accounts sees that amount debited automatically
4/ When platform gets the application fee amount, Stripe fees get deducted automatically

You don't need to manually make these transfers from & to the connected account

graceful flame
#

ah ok perfect thank you, i'm just missing this application fee variable then, that'll solve that

#

Could you help with the other problem at all?

waxen falcon
#

Sure, do you have an example event ID I can take a look at?

#

500 on an endpoint usually points to code on your server crashing somewhere
Ideally you'd find relevant information in your server logs, I can take a look at what your server is responding with to see if there's any errors specified there but most likely you'd need to look into your server logs and find the exact error message there

graceful flame
#

3b0bf189-433e-428b-9fd2-6ea4560a42fe

#

here's the last one

waxen falcon
#

that's not a valid event ID of a stripe object. Typically you'd see evt_xxx prefix on webhook events

graceful flame
#

apologies here it is evt_3NBHeiAm5odgtJUY0hAe0pdW

waxen falcon
#

Thanks. Unfortunately, not seeing anything else on our end except for
{"error":"record not found"}

I'd recommend looking into your server logs and see what function is returning this error in the first place.

graceful flame
#

ok i'll try look into it thank you for your time!