Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
invoice, payment: first pass at making invoice support PENDING payments
Make sure the InvoicePayment control plugin supports PENDING payments. To make it work, this patch: * implements notifyPendingTransactionOfStateChangedWithPaymentControl * introduces a new NOTIFICATION_OF_STATE_CHANGE ControlOperation * ensures that requestData is always populated in CallableWithRequestData (otherwise locks are not re-entrant) Note that the control state machine already supported the PENDING state (see 179d677). There is no separate state in that case, the payment attempt ends up in a SUCCESS state while the payment is PENDING. No new attempt is created when completing the payment through the control APIs. More work is required around testing: * Verify Overdue is notified while the payment is PENDING * Verify a transition PENDING -> PAYMENT_FAILURE schedules retries * Verify integration with the fixPaymentTransactionState AdminApi See #625. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
- Loading branch information
Showing
14 changed files
with
418 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.