Skip to content

Commit

Permalink
Merge pull request #4182 from alphagov/pp-12295-add-new-stripe-tandc-…
Browse files Browse the repository at this point in the history
…page

PP-12295 Add new Stripe terms and conditions page
  • Loading branch information
iqbalgds authored Feb 27, 2024
2 parents ef521eb + 0ac8b93 commit 80990d6
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 1 deletion.
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 %}

0 comments on commit 80990d6

Please sign in to comment.