Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Eddie212's avatar

Slow Stripe API response time

I am using Laravel 5.0 and Laravel cashier ~5.0. I am having incredibly long response times from the Stripe API. I am running on a AWS EC2 in US EAST datacenter currently with 1GB RAM. The server has been setup by Forge with no HHVM. There is currently no SSL installed but we will be getting one before we go public.

Trace from New Relic: http://i.imgur.com/TtMB8Ff.png Call to api.stripe.com taking 2980ms.

Store card method

public function storeCard(Request $request)
{
    $group = Group::find(Auth::user()->group_id);
    $group->subscription('customer_month')->create($request->input('stripeToken'));
}

I am just wondering if this is due to a poor implementation by myself, or normal? Its my first time using the Stripe API.

0 likes
4 replies
Eddie212's avatar

Thanks for the response, I should have checked their status page sooner. However, I have been having similar response times since a set up stripe 2-3 weeks ago in my project. I just can't seem to understand what the issue is. What sort of response time would one expect from their API? In this case, that method is creating a customer and subscribing them to a plan. I was wondering if it was a case of there being a lot going on, however, even for just updating a card I am seeing similar response times. Surely the response time is no different for their test vs live modes?

Eddie212's avatar

It's good to see I am not alone with the stripe issue! I switched to live mode and gave it a quick test with a card. I am still seeing around 3s response times in New Relic from api.stripe.com. I was also having the same issue with loading invoices so I will use the method suggested in that post for those. I have emailed stripe to see what they say and if a solution is found I will post it here.

Please or to participate in this conversation.