#mitsu_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/1297831354804998177
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
May I ask if you're building a new Stripe integration?
I don't think there's an expiry date for Tokens.
But I strongly recommend you not to move forward with this integration since it's deprecated.
Please follow this to accept payments instead: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements
credit card input form is custom form so stripe element can not be used
=> I am using createTokens api to validate credit card
so I want to ask how long does the token expire, because I can not find the function to delete token from createTokens api
Is your app PCI-compliant?
You need this to be able to handle raw credit card data (without Payment Element): https://stripe.com/guides/pci-compliance
i did some php projects, and called api
createTokens , create paymentmethod
so i think it's ok
Your app needs to be officially certified to be PCI-compliant. You can read more in the article I shared.
Is there a reason you don't want to use Payment Element? It is much easier than trying to get your app PCI-compliant if you just want to accept payments.
My form is a custom form like this, how do I use stripe element?
In order to use your own custom credit card form, you will need to get your app certified for PCI-compliance, which is a difficult process. Unless you have a very strong reason to do it, I would advise you against it, and use Payment Element instead.
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
$stripe->tokens->create([
'card' => [
'number' => '4242424242424242',
'exp_month' => '5',
'exp_year' => '2026',
'cvc' => '314',
],
]);
id: tok_1N3T00LkdIwHu7ixt44h1F8k
How can I delete this token?
How long does it take for this token to expire?
You can’t store or use tokens more than once.