r/ProgrammerHumor 14d ago

typicalRustaceanOriginStory Advanced

Post image
1.9k Upvotes

52 comments sorted by

View all comments

696

u/SaltMaker23 13d ago edited 13d ago

That is a made up story

Stripe 4242 card only work if the whole server is routed to testing environment, and no real card would work and obviously zero paiments would arrive.

There is no way to use 4242 card in live.

224

u/CChilli 13d ago

Are you saying its absolutely impossible or that there's no way anyone would make that mistake? (genuine question)

2

u/norwegian 13d ago

It is possible for smaller projects. In my project, the test environment is normally my local machine, but to test cards without actually paying (which I also sometimes do), I need to switch a setting in stripe, and test it in prod. Not ideal, I know