Conekta.WebHook (Conekta v1.1.0) View Source
Easy handling of Conekta WebHooks.
Cast data into their corresponding struct.
Link to this section Summary
Functions
Receive possible conekta params. Check possible events
Link to this section 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{}}