Does my Stripe create tokens cURL command import look normal?
Options
![Fredk](https://us.v-cdn.net/6037124/uploads/userpics/YXEICG61ECYZ/nGH3D2K4EH56L.jpg)
Fredk
Member ✭
Guys,
I've imported this into Xano:
curl https://api.stripe.com/v1/tokens \
-u sk_test_51MKlHvJaJ66qam0ro2Aoud3nRpdL91gbsUg0Wp9NM3D0Fniqy2yx66oy5YkaNjkX3HotTBPDcQglAiffKypWj2SV00MOzxycdY: \
-d "card[number]"=4242424242424242 \
-d "card[exp_month]"=5 \
-d "card[exp_year]"=2024 \
-d "card[cvc]"=314
and I see this "Basic" mention and base64 thing populated in the headers:
Are these normal?
Tagged:
Best Answer
-
Yes. -u tells curl to add a Basic authorization hearder. The way that works is it takes the username and a password, links them with a colon, and base64 encodes the result. Curl manages this for you. Xano is unpacking it explicitly.
Answers
-
Many thanks!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback