Testing payments on development server

Hi guys, how are you approaching payments on development server. I have full local setup (database, backend, frontend) I obviously can't send a webhook to localhost, I also don't want to force developers into using ngrok/localtunell and then manually going into the stripe/paddle dashboard and setting url there whenever they test something. Is there any common approach? inb4 I'm not asking about testing on staging, I'm asking for development when developer is running the project on his machine
4 Replies
JulieCezar
JulieCezar2y ago
What are you using for payments? Something like Stripe has a test environment, for some other ones we created mock api endpoints which had the same responses as the payment gateways
Jaaneek
Jaaneek2y ago
I'm using paddle.com I think I will have to create mocked api endpoints, kinda sucks. Anyone has other ideas? I think the test enviroment doesnt fix that
JulieCezar
JulieCezar2y ago
If you have to create a mock backend quickly I recommend Mockoon
Want results from more Discord servers?
Add your server