These changes allow the anchor to use an external application for the interactive flow. We had half-baked support for this in previous releases via the interactive_url() integration function, but we did not provide a functional solution for updating Polaris' application state once the external application's interactive flow completed.
This PR adds a new endpoint (GET /sep24/transactions/.../interactive/complete) and a new integration function (after_interactive_flow()) that enables external applications to send information collected and anchors to update the state of the transaction within Polaris.
An unrelated change replaces the content_type keyword argument to return_error_response() with as_html.
resolves #620
These changes allow the anchor to use an external application for the interactive flow. We had half-baked support for this in previous releases via the
interactive_url()
integration function, but we did not provide a functional solution for updating Polaris' application state once the external application's interactive flow completed.This PR adds a new endpoint (
GET /sep24/transactions/.../interactive/complete
) and a new integration function (after_interactive_flow()
) that enables external applications to send information collected and anchors to update the state of the transaction within Polaris.An unrelated change replaces the
content_type
keyword argument toreturn_error_response()
withas_html
.