#coding-lover_code

1 messages ¡ Page 1 of 1 (latest)

grand coveBOT
proper cloudBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

grand coveBOT
#

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

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

rancid holly
blissful dawn
#

how stripe know which customer need to charge on behalf on connected account

rancid holly
#

not sure what you mean, can you clarify?

blissful dawn
#

OAuth key or Stripe-Account header was used but API request was provided with a platform-owned payment method ID. Please ensure that the provided payment method matches the specified account

#

I'm facing this error

rancid holly
#

sounds like you're using a PaymentMethod pm_xxx that you created on the platform and not the connected account (you need to use https://docs.stripe.com/connect/authentication in the part of your code that creates the PaymentMethods too)

grand coveBOT
blissful dawn
#

I have a scenario in which i have two accounts (A, B)
Account A is admin account platform
Account B is provider's connected account
Now i am using Account A secret and published key in my whole project (frontend, backend)

now i am facing the issue when a simple user comes and add a card frontend side takes card details using stripe published key and return payment method id to backend and backend create customer with payment method id using admin account secret key.

Now when simple user pay to providers account (Account B) its record also show in Admin's account (Account A).
Now i want to create a flow in which when simple user comes and try to add card its infomation completely show in connected account.
Its payment records should not show in admins dashboard.

#

?

novel turret
#

What type of Connected accounts are you using?

blissful dawn
#

standard account

novel turret
#

It depends on your business requirements:

  • Platform can charge the customer, and transfer the funds to the Connected account (Customer, PaymentMethod and PaymentIntent exist on the Platform), or
  • Connected account can charge the customer directly, controlled by Platform (Customer, PaymentMethod and PaymentIntent exist on the Connected account)
blissful dawn
#

Actually i am trying to automate the flow in which when customer add card we create a customer and attach payment_method_id and our code charge each customer by using their payment_method_id respectively to their providers connected account.

#

i want to create a customer and attach payment method to customer under connected account but i dont have the published and secret key of the connected account, i just have the published and secret key of admin platform.
Is it possible to create customer and create payment method and attach payment method with that customer under the connected account if i dont have published and secret key of connected account, i just have the published and secret key of admin platform.

novel turret
blissful dawn
#

how to save payment method under connected account if i dont have secret or published key of connected account?

novel turret
#

It's explained in the doc that I shared. When you use Stripe-Account header when sending request it will be sent to your Connected account.

blissful dawn
#

it only creates a cutomer under connected_account but i want to attach payment method to that customer under that connected account.

novel turret
#

it only creates
What do you mean by "it"?