Why does Agent struggle with Stripe so much?

Widely and well-documented API, perhaps the best ever, but it just can’t seem to get it right. What’s the trick?

1 Like

Hi! I am one of the Replit engineers that work on integrations. Could you share your prompt and/or your repl so we can figure out what happened? You may share privately.

2 Likes

Did you get anywhere with stripe? I’m keen to use it too.

Hi I’ve been able to use it for both js and flask apps on Replit. It’s tricky and you do have to have some understanding of the Stripe API vs. it just automatically working. I haven’t implemented it with new apps since Sonnet 4 dropped so I’d imagine its improving.

1 Like

Oh, I get it working, but with as well-documented as it is, and hyper-prevalent, I’d expect AI agents to understand how to implement it better.

The main issue usually comes from lack of clarity on when you need to create product codes/prices in stripe BEFORE you start building your integration in Replit. This can be muddy waters and really trip you up.

The easiest thing, of course, is to use Stripe’s hosted checkout pages. This makes it a breeze. But if you want self-hosted, in-line checkout, it can get squirrely.

1 Like

Second the Stripe hosted checkout pages. You get a lot more confidence that Stripe is handling things that way.

2 Likes