I’m trying to redirect the user to his registration summary page after receiving a successful payment post back from the payment processor. I’m not able to comprehend the indico wrapper utitlies for fetching the registrant, and passing those details to the view. Currently the code looks like this - but it’s just rendering the “Bad Request” view instead of showing registration details.
blueprint.add_url_rule('!/touchnet/upay/success', 'success', RHTouchNetSuccess, methods=('GET', 'POST'))
class RHTouchNetSuccess(RHTouchNetIPN): """Confirmation message after successful payment""" def _process(self): flash(_('Your payment request has been processed.'), 'success') return redirect(url_for('event_registration.display_regform', self.registration.locator.registrant))
Appreciate any help! Thanks!