Error with stripe response
yasinmohammadmasmoudi
HOBBYOP

8 months ago

In my app, I have Stripe checkout integrated.

In my code, I call

response =  stripe.Subscription.retrieve(
            stripe_id
        )

When I try to access response.current_period_start, I get an error message saying that there is no such thing.

I logged the response to check

print(json.dumps(sub_r, indent=2))

this is what I have:
yet when I try the same thing in on my localhost I get

Does anyone know why railway does not get the full response form Stripe?

Solved

1 Replies

christian
EMPLOYEE

8 months ago

Hi there,

This appears to be a project-specific issue.

As a first step, you may want to explore whether there are any differences in environment variables or API keys between your local environment and your Railway environment. Additionally, ensure that the Stripe API version is consistent across both environments and that the necessary permissions are granted for the API keys used on Railway.

Hope this helps.

Regards,

Christian


Status changed to Awaiting User Response Railway 8 months ago


Railway
BOT

6 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 6 months ago


Loading...