#dhrubajyoti-chakraborty_code
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/1240291769552207892
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you share a request ID for the error?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
The error is on live server & we don't have access to it.
You haven't shared what the error is. Without the exact details, we can't help much.
We're using stripe integration in our minical PMS software. Recently we've been facing an issue with an API request.
In an instance for making a payment, we receive the token from Stripe (by using CC data) & then we create a customer with that token to link the customer, but we're facing the issue of generating the customer_id in response.
But recently we get error for this API.
Can you please suggest how can we get over from this ?
Below I have added the function which we use for receiving customer response.
$stripe = new Stripe\StripeClient($stripe_secret_key);
$description = 'Minical-stripe-customer-id' . strtotime(date('Y-m-d H:i:s'));
$customer_response = $stripe->customers->create([
'description' => $description,
'card' => $token,
]);
$customer_response = json_decode(json_encode($customer_response, true), true);
What error though
Sorry, what you shared is just the code you're using but what error is that running into?
We'll need the exact request ID in order to dig deeper like I mentioned earlier.
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Otherwise, I'd recommend working through support
https://support.stripe.com/?contact=true
error is 500 server error.
customer id generating issue with the stripe API.