Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PP-12295 Add new Stripe terms and conditions page #4182

Merged
merged 1 commit into from
Feb 27, 2024
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
7 changes: 7 additions & 0 deletions app/controllers/stripeTermsAndConditions.controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'

const { response } = require('../utils/response')

module.exports.get = function (req, res) {
return response(req, res, 'policy/stripe-terms-and-conditions/stripe-terms-and-conditions')
}
14 changes: 14 additions & 0 deletions app/controllers/stripeTermsAndConditions.controller.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const controller = require('./stripeTermsAndConditions.controller')
const sinon = require('sinon')

const req = {}
const res = {
render: sinon.spy()
}

describe('Stripe terms and conditions controller', function () {
it('should render page', function () {
controller.get(req, res)
sinon.assert.calledWith(res.render, 'policy/stripe-terms-and-conditions/stripe-terms-and-conditions')
})
})
1 change: 1 addition & 0 deletions app/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ module.exports = {
feedback: '/feedback',
generateRoute: generateRoute,
formattedPathFor: formattedPathFor,
stripeTermsAndConditions: '/policy/stripe-terms-and-conditions',
policyPage: '/policy/:key',
payouts: {
list: '/payments-to-your-bank-account',
Expand Down
5 changes: 5 additions & 0 deletions app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const requestToGoLiveOrganisationAddressController = require('./controllers/requ
const requestToGoLiveChooseHowToProcessPaymentsController = require('./controllers/request-to-go-live/choose-how-to-process-payments')
const requestToGoLiveChooseTakesPaymentsOverPhoneController = require('./controllers/request-to-go-live/choose-takes-payments-over-phone')
const requestToGoLiveAgreementController = require('./controllers/request-to-go-live/agreement')
const stripeTermsAndConditionsController = require('./controllers/stripeTermsAndConditions.controller.js')
const policyDocumentsController = require('./controllers/policy')
const stripeSetupBankDetailsController = require('./controllers/stripe-setup/bank-details')
const stripeSetupCheckOrgDetailsController = require('./controllers/stripe-setup/check-org-details')
Expand Down Expand Up @@ -94,6 +95,7 @@ const {
demoPaymentFwd,
index,
invite,
stripeTermsAndConditions,
policyPage,
payouts,
register,
Expand Down Expand Up @@ -238,6 +240,9 @@ module.exports.bind = function (app) {
app.get(payouts.list, userIsAuthorised, payoutsController.listAllServicesPayouts)
app.get(payouts.listStatusFilter, userIsAuthorised, payoutsController.listAllServicesPayouts)

// Stripe terms and conditions
app.get(stripeTermsAndConditions, userIsAuthorised, stripeTermsAndConditionsController.get)

// Policy document downloads
app.get(policyPage, userIsAuthorised, policyDocumentsController.get)

Expand Down
3 changes: 2 additions & 1 deletion app/utils/display-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const hideServiceHeaderTemplates = [
'policy/document/stripe-connected-account-agreement',
'policy/document/v2/contract-for-non-crown-bodies',
'policy/document/v2/memorandum-of-understanding-for-crown-bodies',
'policy/document/v2/stripe-connected-account-agreement'
'policy/document/v2/stripe-connected-account-agreement',
'policy/stripe-terms-and-conditions/stripe-terms-and-conditions'
]

const hideServiceNavTemplates = [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{% extends "../../layout.njk" %}

{% block pageTitle %}
Stripe terms and conditions - GOV.UK Pay
{% endblock %}


{% block mainContent %}
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">
Stripe terms and conditions
</h1>

<p class="govuk-body">
Last updated: 15 Dec 2023
</p>

<ul class="govuk-list govuk-list--bullet">
<li>
<a class="govuk-link" href="https://stripe.com/gb/legal/connect-account">Stripe Connected Account Agreement</a>
</li>
<li>
<a class="govuk-link" href="https://stripe.com/gb/legal/ssa">Stripe services agreement</a>
</li>
</ul>
</div>
{% endblock %}
Loading