#_api

1 messages ¡ Page 1 of 1 (latest)

hybrid riverBOT
#

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

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

plucky lodge
#
params := &stripe.PaymentIntentParams{
        Amount:               stripe.Int64(1000000),
        Currency:             stripe.String("THB"),
        ApplicationFeeAmount: stripe.Int64(15000),
        Customer:             stripe.String("cus_QABjj0zxjt4r8E"),
        TransferData: &stripe.PaymentIntentTransferDataParams{
            Destination: stripe.String("acct_1PTIcdRvybnWpYrJ"),
        },
        AutomaticPaymentMethods: &stripe.PaymentIntentAutomaticPaymentMethodsParams{
            Enabled: stripe.Bool(true),
        },
    }
    params.AddMetadata("orderId", "111-1231")
wise sleet
#

hi! what does "Stripe Connect handle Stripe's fee" mean?

plucky lodge
#

sorry for that, I means

#

I wants to make account of stripe connect to paid stripe's fee

#

but

#

my code doing

#

my account of stripe platform (main account is not stripe connect) paid stripe's fee

#

i dont wnat it

#

I wants to make account of stripe connect to paid stripe's fee

wise sleet
#

then you need to use Direct Charges instead of Destination , which is what that code does.

plucky lodge
#

ok thank you for suggest, I will check on it

plucky lodge
#
params := &stripe.PaymentIntentParams{
        Amount:               stripe.Int64(1000000),
        Currency:             stripe.String("THB"),
        ApplicationFeeAmount: stripe.Int64(15000),
        Customer:             stripe.String("cus_QABjj0zxjt4r8E"),
        AutomaticPaymentMethods: &stripe.PaymentIntentAutomaticPaymentMethodsParams{
            Enabled: stripe.Bool(true),
        },
    }
    params.SetStripeAccount("acct_1PiDC2RxvzpJbOEU")
    params.AddMetadata("orderId", "111-1231")
#

i already changed some code and add set stripe account as example link as you sent

#

but it has an error

#

here is req "request_id":"req_BB3oXnQ6ju4obX"

#

it seems my customer id in my account of stripe platform not found in customer id in account of stripe connect

#

how can I fix it

wise sleet
#

you'd need to fully redesign your integration really

#

you can create a Customer object on a connected account by doing the same thing of passing params.SetStripeAccount("acct_1PiDC2RxvzpJbOEU"), on a call to the Customer Create API, for example.

hybrid riverBOT
plucky lodge
#

then it's mean Customer object where created from my account of Stripe platform is not linked Customer object where created from account of Stripe connect

lethal cedar
#

Yes, Stripe objects exist and are only accessible from a single Stripe account.

plucky lodge
#

ok, thank you

lethal cedar
#

Happy to help.