Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.45 KB

File metadata and controls

32 lines (26 loc) · 1.45 KB

Conekta::WebhookResponse

Properties

Name Type Description Notes
id String id of the webhook [optional]
description String A name or brief explanation of what this webhook is used for [optional]
livemode Boolean Indicates if the webhook is in production [optional]
active Boolean Indicates if the webhook is actived or not [optional]
object String Object name, value is 'webhook' [optional]
status String Indicates if the webhook is ready to receive events or failing [optional]
subscribed_events Array<String> lists the events that will be sent to the webhook [optional]
url String url or endpoint of the webhook [optional]

Example

require 'conekta'

instance = Conekta::WebhookResponse.new(
  id: 6307a60c41de27127515a575,
  description: Server payments processor,
  livemode: true,
  active: true,
  object: event,
  status: listening,
  subscribed_events: [&quot;charge.created&quot;,&quot;charge.paid&quot;,&quot;charge.under_fraud_review&quot;,&quot;charge.fraudulent&quot;,&quot;charge.refunded&quot;,&quot;charge.preauthorized&quot;,&quot;charge.declined&quot;,&quot;charge.canceled&quot;,&quot;charge.reversed&quot;,&quot;charge.pending_confirmation&quot;],
  url: https://username:password@mockoon.conekta.io/payments-api/cash/merchant_approval
)