In order to identify every installments in an order schedule, we add a
unique id that can be use to find it later.
When an installment is paid, we can now use it in the
payment backend for all existing payment method (create_payment,
create_one_click_payment and create_zero_click_payment). Doing this, the
_do_on_payment_success and _do_on_payment_failure methods are able
to manage an installment lifecycle. There is no more need to manage it
in the payment schedule task.
Proposal
[x] add a unique id to each installments in an order schedule
[x] use installment id to change installment state
[x] when an installment is paid, propagate it in the payment backend
Purpose
In order to identify every installments in an order schedule, we add a unique id that can be use to find it later.
When an installment is paid, we can now use it in the payment backend for all existing payment method (create_payment, create_one_click_payment and create_zero_click_payment). Doing this, the
_do_on_payment_success
and_do_on_payment_failure
methods are able to manage an installment lifecycle. There is no more need to manage it in the payment schedule task.Proposal