Method: Pay::Webhooks::LemonSqueezyController#create
- Defined in:
- app/controllers/pay/webhooks/lemon_squeezy_controller.rb
#create ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/pay/webhooks/lemon_squeezy_controller.rb', line 4 def create if valid_signature?(request.headers["X-Signature"]) queue_event(verify_params.as_json) head :ok else head :bad_request end rescue Pay::LemonSqueezy::Error head :bad_request end |