Stripe Integration :"java.security.AccessControlException Error

Hi,
I am trying to integrate stripe by adding server code to my custom API service. Every time i try the invocation, I get this error on the first 2 or 3 attepmts. But then It seems ok and running when I try attempt to invoke again.
400 - Type:“java.security.AccessControlException”, Description:“You have no permission to create thread in CodeRunner secure group.”, ExceptionClass:“ServiceException” {Msg:“none”, Cause:“none”}

But then It seems ok and running when I try attempt to invoke again. I have attached the Service and Item class.

stripecharge.rar (852B)

Hello,

you are using Stripe sdk, it can create some threads inside to connect stripe server.

if you have no control over threads in java stripe sdk consider a possibility to use stripe js sdk https://www.npmjs.com/package/stripe-client there is no problem with threads

Hi Sergey, thanks for the response. I’ll try that instead