#dhrubajyoti-chakraborty_code

1 messages ¡ Page 1 of 1 (latest)

analog skyBOT
#

👋 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.

warm fulcrum
forest dagger
#

The error is on live server & we don't have access to it.

warm fulcrum
#

You haven't shared what the error is. Without the exact details, we can't help much.

forest dagger
#

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);

warm fulcrum
#

What error though

forest dagger
#

error is 500 server error.
customer id generating issue with the stripe API.