#ionu_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1239910040106700851
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
- for now it works, and there are no plans to remove it. but in general we recommend to use the new approach with the Stripe-Account header
- no expiration date
Thanks. The reason I am needing it, is for frontend tokenization. But if there are no plans to remove it, than it is great.
yeah it should continue to work for a while.
@crude laurel is there any other way to get a publishable key after the connection is done? Just in case ๐
no, that's one of the reason we recommend using the Stripe-Account header instead.
that being the case for the front end tokenization as well, right ?
I'm not sure what that means. can you clarify what you are trying to do exactly?
import {loadStripe} from '@stripe/stripe-js';
const stripe = await loadStripe(public_key);
this.stripe.createToken(card, billing_data).then((result) -> get the token
this way we get the token to send in the backend for generating the transactions
In this case we need the public key to load it
using Tokens to accept payments is also a very old API that we no longer recommend using.
instead you should be using PaymentIntent and PaymentMethod: https://docs.stripe.com/payments/payment-intents/migration
oh, ok. That would make the publishable key redundant.
We will look into it.
Thank you very much