#falpangaea

1 messages · Page 1 of 1 (latest)

weak lindenBOT
turbid prairie
nocturne shard
#

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

turbid prairie
#

Can you try making a single request to create a PaymentIntent using the API key?

nocturne shard
#

I'm sorry, can you calrify? like curl?

turbid prairie
#

yes

nocturne shard
#

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

turbid prairie
#

As for next step, can you share the request that fails and the request that works from the above script?

nocturne shard
#

got it

turbid prairie
#

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.

nocturne shard
#

it needed to be amount=amount

#

fsr

#

not sure why I got the error I did though

#

it should have been an InvalidBody error

turbid prairie
#

yeah, that sounds weird. Are you sure you did not change anything in between the requests? Are you unblocked now?

nocturne shard
#

No definitely not

#

It was the same, I had even tried hardcoding it, thats the only change

#

i bet the default response for the HTTP errror is the API key

#

well, Im unblocked now, thank you!