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

Kipperman's avatar

Stripe - Cannot charge a customer that has no active card

Hi Guys,

I am working through the tutorial on Customizing your Stripe Checkout - found here: https://laracasts.com/series/how-to-accept-payments-with-stripe/episodes/2.

I am getting an error message stating - "Card in ApiRequestor.php line 112: Cannot charge a customer that has no active card"

I have added the 'e' to the function parameter as such :

document.querySelector('button').addEventListener('click', function(e) {

       stripe.open({
            
            name: 'My Book',
            description: 'Book Description',
            zipCode: true,
            amount:4500
            
            
            
        });
        
        e.preventDefault();
        
    }); 

Any reason why I am still getting that error?

Kyle

0 likes
3 replies
Evermore's avatar

I am experiencing same issues, did u find a fix for this?

cklester's avatar

I'm getting this too! Need help! Thank you!

dgoetz's avatar

@Kipperman did you ever get this resolved? Running into the same issue. When I add custom fields as part of a "pre form" to the stripe checkout, the default action is not prevented, stripe checkout is not opened and it tries to create a charge. This may be what is happening in your case as well?

Please or to participate in this conversation.