Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion efile_app/efile/static/js/review.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ const PaymentHandler = {

const jurisdiction = authData.state || apiUtils.getCurrentJurisdiction();
// TODO: we should revisit this hardcoded value in the future too
form.action = `http://localhost:9100/jurisdictions/${encodeURIComponent(jurisdiction)}/payments/new-toga-account`;
form.action = Utils.parseJSON('new-toga-url');

let dateStr = new Date().toDateString();
const fields = [
Expand Down
1 change: 1 addition & 0 deletions efile_app/efile/templates/efile/review.html
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ <h2 class="mb-4" style="color: #2c5aa0; font-weight: 600">

<!-- Django template data for JavaScript -->
{{ case_data|json_script:"case-data" }}
{{ new_toga_url|json_script:"new-toga-url" }}
{{ friendly_names|json_script:"friendly-names" }}

<!-- Review page JavaScript -->
Expand Down
4 changes: 4 additions & 0 deletions efile_app/efile/views/review.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging

from django.conf import settings
from django.contrib import messages
from django.shortcuts import redirect, render

Expand Down Expand Up @@ -91,7 +92,10 @@ def case_review(request, jurisdiction):
"items": [{"label": "Selected Services", "value": ", ".join(optional_services)}],
}

new_toga_url = f"{settings.EFSP_URL}/jurisdictions/{jurisdiction}/payments/new-toga-account"

context = {
"new_toga_url": new_toga_url,
"case_data": case_data,
"review_sections": review_sections,
"friendly_names": {
Expand Down