#harinth-internal-error
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ sorry to hear you're running into problems. Just to clarify, the request to Stripe is returning an internal server error, or is the error occurring on your server?
It works till the second line. But error happens at the 3rd line
This code was working earlier
To clarify, the error happens at the third line in that inner block, or the third line of all the code shown?
Third line of all the code shown
Gotcha, so the call to Stripe, and what is the error that you're encountering?
I put the code in try catch and no error showing
It's an old code, but it was working
Earlier you said you saw an Internal Server Error, can you clarify where you saw that?
When you say you used an old version of Stripe, are you referring to an old version of the Stripe PHP library?
Yes
Exactly
Internal server error happens only because of that 3rd line
It's working just above
There was a change made to our PHP library where we changed the approach it uses (looking for the exact term and release version where that happened).
But while I look that up, can you try using these two requests to create a source and then attach it to your customer to see if that does what you're expecting?
https://stripe.com/docs/api/sources/create?lang=php
https://stripe.com/docs/api/sources/attach?lang=php
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I am not using StripeClient
I am including stripe-44/init.php to include Stripe library
At the start of my function
There is nothing showing in catch, but the first line shows a valid customer
What is the error your encounter? and API error or an SDK error?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
can you share a request ID? It seems like something must have changed.
Means sk_ right?
no, a request id like req_123 -- never share secret keys with anyone, even Stripe
Nothing works after first line
So unable to find request id
In short, first line works
But not second line
This line also not working
What do you mean "doesnt work"? i dont see any errors
whats your account id?
acct_1234
I can look for recent request errors
acct_1Fs2fABgi4gXHTOy
that account has no recent request logs. can you see any erroring requests here: https://dashboard.stripe.com/test/logs/s
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I guess, it's a different issue from our side, because it's working for other accounts and may be I am using different SK_Test
I am sorry
Thank you so much
Ah, nice! is it all working now?
Yes
Excellent ๐