#lost.prototype

1 messages ยท Page 1 of 1 (latest)

uncut widgetBOT
odd mountain
#

Hey there ๐Ÿ‘‹

#

The pi is: pi_3Nn2efLTob6XZrOy0CNA37eM

hollow frost
#

You can look at the Charge object, then the Balance Transaction under it. It has fee break down

odd mountain
#

checking...

#

Hmm, I can't seem to click on the charge ID

#

ch_3Nn2efLTob6XZrOy0btAUV4A

#

Is that normal after a period?

hollow frost
#

I mean not clicking, but using API

#

Retrieve Charge API, and expand balance_transaction

odd mountain
#

Ah, hm. That'll take me a bit to set up.

#

Is there any way to know for certain what all the fees will be for a transaction, prior to putting it through?

#

I'm trying to pre-calculate how much a customer would need to pay to cover costs, and I know there's documentation on the stripe web site with a formula on it. But I don't think it's 100% fool proof.

hollow frost
#

That's a common ask but unfortunately there is noway to pre-calculate. You can refer the Stripe fee from https://stripe.com/pricing and it's will rarely change (in face we didn't change it for years) and compare with a real balance transaction in Test mode

Find Stripe fees and pricing information. Find our processing fees for credit cards, pricing models and pay-as-you-go fees for businesses.

odd mountain
#

Yeah, so here's what I got for that API response:

#
"balance_transaction": {
        "id": "txn_3Nn2efLTob6XZrOy0aFMDhyZ",
        "object": "balance_transaction",
        "amount": 1000,
        "available_on": 1694476800,
        "created": 1693933391,
        "currency": "cad",
        "description": null,
        "exchange_rate": null,
        "fee": 238,
        "fee_details": [
            {
                "amount": 38,
                "application": null,
                "currency": "cad",
                "description": "Stripe processing fees",
                "type": "stripe_fee"
            },
            {
                "amount": 200,
                "application": "ca_OPS4FPSKV9WGhjAomiwMtGBiVJzL6aOg",
                "currency": "cad",
                "description": "Street Swipe application fee",
                "type": "application_fee"
            }
        ],
        "net": 762,
        "reporting_category": "charge",
        "source": "ch_3Nn2efLTob6XZrOy0btAUV4A",
        "status": "available",
        "type": "charge"
    },
#

Just at a glance, I can't figure out how this isn't ((12+0.3)*0.029)

#

I end up with about 36 cents in fees. Not 38

#

(although I'm also a bit fuzzy on where my $2 application fee goes, so I just roll it in with the cost)

hollow frost
#

200 there is your $2 application fee

#

38 is the processing fee

#

1000 * 0.029 + 30 = 32, not sure why it's 38 ๐Ÿค”

#

That's a question to Stripe Support team

odd mountain
#

I'll reach out!

#

Thank you, I thought something was amiss here

#

Is there a general strategy that people use to avoid needing to make these exact bullseye calculations?

#

Maybe just pick a rate guaranteed to cover all scenarios/currencies and target that across the board?