stellar / django-polaris

An extendable Django app for building modular Stellar services
https://django-polaris.readthedocs.io
Apache License 2.0
94 stars 66 forks source link

SEP-24: support transaction processing after external interactive flows #633

Closed JakeUrban closed 2 years ago

JakeUrban commented 2 years ago

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 to return_error_response() with as_html.

JakeUrban commented 2 years ago

cc @Unique-coder

Unique-coder commented 1 year ago

Thanks alot @JakeUrban