openfun / joanie

👛 A headless ERP for education to manage course enrollment/subscription, payment and certificates delivery.
MIT License
20 stars 2 forks source link

Ease installment identification and propage installment in payment backend #799

Closed lunika closed 1 month ago

lunika commented 1 month ago

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