Easy handling of Conekta WebHooks.
Cast data into their corresponding struct.
Summary
Functions
Receive possible conekta params. Check possible events
Functions
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{}}