Conekta.WebHook (Conekta v1.1.0) View Source

Easy handling of Conekta WebHooks.

Cast data into their corresponding struct.

Link to this section Summary

Link to this section Functions

Link to this function

received(params, opts \\ :none)

View Source

Receive possible conekta params. Check possible events

Example:

Conekta.WebHook.received(params)

# Possible outputs:

# => { :charge_created, %Conekta.ChargeWebHookPost{}}

# => { :charge_paid, %Conekta.ChargeWebHookPost{}}

# => { :plan_created, %Conekta.PlanFindResponse{}}

# => { :customer_created, %Conekta.CustomerWebHookPost{}}

# => { :subscription_created, %Conekta.CustomerSubscriptionResponse{}}

# => { :subscription_paid, %Conekta.CustomerSubscriptionResponse{}}

# => { :subscription_canceled, %Conekta.CustomerSubscriptionResponse{}}

# => { :chargeback_created, %Conekta.ChargebackWebhookPost{}}

# => { :chargeback_lost, %Conekta.ChargebackWebhookPost{}}