#sameer_57844
1 messages · Page 1 of 1 (latest)
hello! what API request were you trying to make with the restricted key?
they are trying to create a card token
v1/tokens
{
"card": {
"name": "xxxCobb",
"number": "************4242",
"exp_month": "02",
"cvc": "",
"exp_year": "2038"
}
}
gimme a while to take a look
thanks
Is there a reason why you're creating a card token though? You should be creating PaymentMethods
you'll want to edit that restricted key to be able to write for tokens
thanks Alex, I can see tokens at three different sections All core resources
All Issuing resources
and one other place
I gave access to the tokens under All core resources, and that didnt work
Hi @tame gull I'm taking over this thread
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Thanks for the IDs, I just checked, the restricted key that you used for making these two request doesn't have permission to write tokens. Did you follow alex's suggestion to enable write for the key?
yeh it was however unclear which token to give write permission on
Token appears under 3 sections
I gave write permission to the Token under All core resources and that didnt work
req_ECK0WbOX99yQWC
this request was made AFTER I gave them the write access to Token under All core resources section
Did you click "Apply changes" button?
yeh I did, and it briefly showed the changes did not saved, it asked me for an SMS password and eventually it worked
Ok, can you fresh the page and see if the change is effective?
The token under " All core resources "
yeh that I already did
and it didnt work
Can you create a request and send me the ID?
req_ECK0WbOX99yQWC
this was the original request before I enabled write access to the restricted key req_ImQcylBe74rJzu