Class: Pay::Webhooks::PaddleBillingController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- Pay::Webhooks::PaddleBillingController
- Defined in:
- app/controllers/pay/webhooks/paddle_billing_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/pay/webhooks/paddle_billing_controller.rb', line 4 def create if valid_signature?(request.headers["Paddle-Signature"]) queue_event(verify_params.as_json) head :ok else head :bad_request end rescue Pay::PaddleBilling::Error head :bad_request end |