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

Refactor callback service and controller #1201

Merged
merged 31 commits into from
Jun 21, 2022
Merged

Conversation

PaulDoyle-DEFRA
Copy link
Collaborator

This change refactors the Govpay payment callback route and service to better reflect the Govpay payment flow, as opposed to aligning closely with the Worldpay payment flow. It also removes a redundant second call to the Govpay API to query payment status.
https://eaflood.atlassian.net/browse/RUBY-1891
https://eaflood.atlassian.net/browse/RUBY-1892
https://eaflood.atlassian.net/browse/RUBY-1893
https://eaflood.atlassian.net/browse/RUBY-1894

@PaulDoyle-DEFRA PaulDoyle-DEFRA added the housekeeping Changes such as refactoring label Jun 20, 2022
kennyevil
kennyevil previously approved these changes Jun 21, 2022
Copy link

@kennyevil kennyevil left a comment

Choose a reason for hiding this comment

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

The controllers look to be as compact as they can be without becoming unreadable and the request specs are pretty thorough. LGTM.

Beckyrose200
Beckyrose200 previously approved these changes Jun 21, 2022
Copy link
Contributor

@Beckyrose200 Beckyrose200 left a comment

Choose a reason for hiding this comment

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

From what I can tell looks good :D

waste_carriers_engine:
renewal_received_pending_govpay_payment_forms:
new:
title: Application received
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it matter if the text doesn't have speech marks for the whole file? :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As discussed: Team preferences is to not use quotes unless necessary, so I have updated the two locale files in the PR accordingly.

d-a-v-e
d-a-v-e previously approved these changes Jun 21, 2022
Copy link

@d-a-v-e d-a-v-e left a comment

Choose a reason for hiding this comment

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

Amazing chunk of work! looks ready to go to QA 👍

@PaulDoyle-DEFRA PaulDoyle-DEFRA merged commit 3538517 into main Jun 21, 2022
@PaulDoyle-DEFRA PaulDoyle-DEFRA deleted the feature/govpay_new_reg branch June 21, 2022 15:28
@PaulDoyle-DEFRA PaulDoyle-DEFRA restored the feature/govpay_new_reg branch June 21, 2022 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Changes such as refactoring
Projects
None yet
4 participants