Method: Stripe::WebhookEndpointService#update
- Defined in:
- lib/stripe/services/webhook_endpoint_service.rb
#update(webhook_endpoint, params = {}, opts = {}) ⇒ Object
Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint.
51 52 53 54 55 56 57 58 59 |
# File 'lib/stripe/services/webhook_endpoint_service.rb', line 51 def update(webhook_endpoint, params = {}, opts = {}) request( method: :post, path: format("/v1/webhook_endpoints/%<webhook_endpoint>s", { webhook_endpoint: CGI.escape(webhook_endpoint) }), params: params, opts: opts, base_address: :api ) end |