#falpangaea
1 messages · Page 1 of 1 (latest)
Hi, it looks like you're passing in invalid API key. I recommend that you start from here: https://stripe.com/docs/keys
The API key works with the previous API calls
It just does not work with specifically stripe.PaymentIntent.create(...)
I am calling stripe.Customer.search() and stripe.Customer.create() successfully with that key in the same script
Can you try making a single request to create a PaymentIntent using the API key?
I'm sorry, can you calrify? like curl?
curl seems to work fine
return stripe.PaymentIntent.create(
amount,
customer=stripe_id,
currency="usd",
automatic_payment_methods={"enabled": True},
)
im not sure why this would be different
As for next step, can you share the request that fails and the request that works from the above script?
got it
I would also recommend that you explicitly pass the API key to ensure that it does not have an extra space or anything on your request.
it needed to be amount=amount
fsr
not sure why I got the error I did though
it should have been an InvalidBody error
yeah, that sounds weird. Are you sure you did not change anything in between the requests? Are you unblocked now?