Saving to database locally but not production #523
Replies: 2 comments 1 reply
-
Not sure, but you could fork and use We should probably do that for all the webhook controllers. |
Beta Was this translation helpful? Give feedback.
-
@excid3 Well the Pay::Webhooks saves fine but after the webhook saves depending on what the event type is it should create a charge or subscription After the webhook saves it does nothiing in production but works fine on local. I guess my question is where should we putting create! to raise an errror? This works fine and doesn't throw errors when creatiing the webhook. Just not sure why nothing saves afterwards
|
Beta Was this translation helpful? Give feedback.
-
When listening to stripe events locally everything saves to the database such as charges and subscriptions.
However, when deeployed to heroku I don't recieve any errors in the stripe dashboard or heroku logs but it doesn't save anything after creating the customer. Doesn't save the charge nor subscription. Just saves the customer.
Webhook endpoints are setup in the stripe dashboard and tested/fired events and you can see them come through the logs on heroku fine without error but not saving records for some reason...
Beta Was this translation helpful? Give feedback.
All reactions