Skip to main content
Solved

Webhook local envirement testing

  • 8 September 2024
  • 2 replies
  • 200 views

Forum|alt.badge.img+1

Hello Team,

Is there any possible way to test revenueCat’s webhook events in my local envirement ?

I mean something like stripe CLI tool or any way to see the events on my local machine without need to deploy a test server or directly test in production 

Thank you!

Best answer by ahmed-75e63a

Hello @Michael Fogel 

The testing webhook is working really well. and what I need is a way to forward a test webhook call to my local development environment, I will use Localtunnel or Ngrok. I hope that in the future, RevenueCat will provide a solution for this, it would be awesome!

Thank you !

View original
Did this post help you find an answer to your question?
This post has been closed for comments

2 replies

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • 382 replies
  • September 11, 2024

Hey @ahmed-75e63a ,

 

 

You can test your server side implementation by purchasing sandbox subscriptions or by issuing test webhook events through RevenueCat's dashboard.

Keep in mind that when testing with sandbox purchases, the environment value will be SANDBOX. RevenueCat itself does not have sandbox and production environments, so this value is only determined by the type of transaction received from the store. The same customer in RevenueCat can have both sandbox and production transactions associated with their account.

 

We dont have a CLI tool like Stripe, so testing with Sandbox purchases or using the dashboard is the best bet here! 

 

Let me know if that helps! 


Forum|alt.badge.img+1
  • Author
  • Helper
  • 3 replies
  • Answer
  • September 14, 2024

Hello @Michael Fogel 

The testing webhook is working really well. and what I need is a way to forward a test webhook call to my local development environment, I will use Localtunnel or Ngrok. I hope that in the future, RevenueCat will provide a solution for this, it would be awesome!

Thank you !


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings