-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4182 from alphagov/pp-12295-add-new-stripe-tandc-…
…page PP-12295 Add new Stripe terms and conditions page
- Loading branch information
Showing
6 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
app/controllers/stripeTermsAndConditions.controller.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
app/views/policy/stripe-terms-and-conditions/stripe-terms-and-conditions.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |