#JoaoVitor-authenticate-request
1 messages ยท Page 1 of 1 (latest)
I'm creating the create token passing the customer.Id and it's giving this exception
The customer parameter is only available if you're using Stripe connect
https://stripe.com/docs/api/tokens/create_card#create_card_token-customer
The customer (owned by the application's account) for which to create a token. Also, this can be used only with an OAuth access token or Stripe-Account header.
has a example ?
is there a way to get the accountId by any of your methods?
Let's take a step back here. What is your end goal? You're creating card tokens but what do you want to use it for?
Are you using Stripe connect?
I have several accounts on stripe, my payment method is generic, I have an account in Brazil and Mexico, the objective is to link a customer to a payment
for each account I have Apykey , but I don't have AccountId
So just to clarify, are you trying to link customers to payments across multiple accounts?
yes
Are these accounts connected to a platform?
I'm sorry I don't really follow
Can you try to explain, all in one message what you are trying to do? Who collects card details, where are card details stored, who charges that card, etc.?
Because your screenshot is passing raw card details server-side which is breaking PCI compliance and likely not what you want
I just need to know if you Stripe have a way to fetch AccountId
Hi ๐
I'm stepping in here. Give me a minute to catch up
This is not a full workflow. Can you explain what the full flow is here?
I'm registering a token card and I want to link it to a user
"Registering a token card". What does that mean?
however I need the AccountId , so I wanted to know if there is any method for me to check what it is
AccountId? What is the context here? What AccountId?
payment
look