#lk_code

1 messages ยท Page 1 of 1 (latest)

glad moonBOT
#

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

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

timber grotto
#

hi there!

lapis solstice
#

hi

#

oh. looks like my code didn't paste all the way

timber grotto
#

so you are trying to create a Subscription for $500?

lapis solstice
#

So, the user has a choice -- Choose 2 payment options

  • 1500
  • 1900

then they can choose a payment length
3mo
4mo
5mo

So we then create a subscription based on those combinations.

timber grotto
#

oh, you want the net amount to be $500. so I'm guessing the issue is computing the correct Stripe fee in advance to adjust the amount?

lapis solstice
#

YES!!!! and to have it broken down in the payment section in the dashboard

#

my connected account needs the "net amount"

timber grotto
#

so this is more a math question that a Stripe question, so I won't be able to help much.
But I would recommend to start reading this StackOverflow reply, that gives some information: https://stackoverflow.com/a/66926456/17427213

lapis solstice
#

let me ask you this -- whats the way that I can get the stripe fee to show up in the payment breakdown?

timber grotto
#

can you share a PamentIntent ID (pi_xxx) where you don't see it?

lapis solstice
#

py_1QIULpPvgoa9RdaL8oRbCU7U

timber grotto
lapis solstice
#

oh wait.. i need to make this standard and direct

timber grotto
#

in this case the Stripe fee would be paid by the connected account

lapis solstice
#

right. perfect.

cost: 500.00
my fee: 3.2%
my stripe fee: 2.9%+ .30
subtotal = 530.60

stripe fee on subtotal.
....

net to connected account 500.00

timber grotto
#

I recommend doing some tests in test mode to make sure it works as expected.

lapis solstice
#

lol.. i've been in test mode for 4 days

timber grotto
#

haha. let me know when it works!

lapis solstice
#

i have about 45 min or this client walks. wish me luck..

#

in my logs:

=== PAYMENT BREAKDOWN ===
[07-Nov-2024 12:24:22 UTC] Payment Amount: $530.90
[07-Nov-2024 12:24:22 UTC] Sketchplay Stripe Fee: $14.80
[07-Nov-2024 12:24:22 UTC] Sketchplay Fee: $16.10
[07-Nov-2024 12:24:22 UTC] Net Amount to Connected Account: $500.00
[07-Nov-2024 12:24:22 UTC] ========================

now if I can just actually transact this way

#

Payment amount
$530.60 USD
Fees

  • $48.16 USD
    Stripe processing fees
  • $15.69 USD
    Lab3 Interactive, Inc. application fee
  • $32.47 USD
    Net amount
    $482.44 USD
#

oh my!!! I'm close.

i think I just need to remove my double of my fee