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

feat: Pay and Invite to Pay docs #2444

Merged
merged 12 commits into from
Nov 18, 2023
Merged

feat: Pay and Invite to Pay docs #2444

merged 12 commits into from
Nov 18, 2023

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Nov 17, 2023

What does this PR do?

  • Adds docs for "pay" and "invite to pay" routes
  • Adds validation layer to all routes
  • Does not refactor all current functionality into "controllers" and "services" - this PR is already too big sorry and in order to get the remaining routes across the line I've prioritised documentation over this refactoring.

I had initially split this into two "Pay" and "Invite to Pay" PRs but as they're quite tightly coupled it proved pretty tricky - the total lines of code changed in two PRs (even with one branching over the other) was significantly higher than a single PR.

Regression tests passing against this branch https://github.com/theopensystemslab/planx-new/actions/runs/6912983715

Copy link

github-actions bot commented Nov 18, 2023

Removed vultr server and associated DNS entries

@DafyddLlyr DafyddLlyr marked this pull request as ready for review November 18, 2023 09:44
@DafyddLlyr DafyddLlyr requested a review from a team November 18, 2023 09:44
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prioritising docs over refactor makes sense ahead of audit, thanks for getting these through!

@@ -82,7 +84,14 @@ export async function fetchPaymentRequestDetails(
next();
}

// middleware used by /payment-request/:paymentRequest/pay?returnURL=...
// https://docs.payments.service.gov.uk/api_reference/create_a_payment_reference/#json-body-parameters-for-39-create-a-payment-39
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

appreciate these comments 👍

@DafyddLlyr DafyddLlyr merged commit ec449ba into main Nov 18, 2023
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/itp-docs branch November 18, 2023 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants