I use commerce to create a bakery. Unfortunately, there is no module to pay by check or cash. So I use the payment example "manual". I need to debit the user account when a payment is entered (a "balance" field has been created on the user account). Is there a hook when a payment is created so that I can do this operation on the user entity?
One option would be to use hook_entity_create() but I would rather react on Order transition event, such as
commerce_order.place.post_transition which is triggered when Order reaches Completed state.