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

Add agreement_id to existing GOV.UK Pay request #2074

Merged
merged 14 commits into from
Nov 21, 2024

Conversation

irisfaraway
Copy link
Member

https://eaflood.atlassian.net/browse/IWTF-4261

If the request to prepare a payment is part of setting up a new recurring payment agreement, then the agreement_id should be included.

I also renamed prepareRecurringPayment() to prepareRecurringPaymentAgreement() as I think this is slightly more accurate - it is setting up the agreement rather than the payment - and it initially threw me off when working out what needed to be changed.

@irisfaraway irisfaraway added the enhancement New feature or request label Nov 11, 2024
@irisfaraway irisfaraway self-assigned this Nov 11, 2024
https://eaflood.atlassian.net/browse/IWTF-4261

If the request to prepare a payment is part of setting up a new recurring payment agreement, then the agreement_id should be included.

I also renamed prepareRecurringPayment() to prepareRecurringPaymentAgreement() as I think this is slightly more accurate - it is setting up the agreement rather than the payment - and it initially threw me off when working out what needed to be changed.
@irisfaraway irisfaraway force-pushed the feature/iwtf-4261-agreementid branch from 429f57d to 992b7aa Compare November 11, 2024 15:18
@irisfaraway irisfaraway marked this pull request as ready for review November 11, 2024 15:42
@irisfaraway irisfaraway marked this pull request as draft November 12, 2024 16:27
Also added a lot more tests (cribbed from the sendRecurringPayment() ones) as the existing ones are testing through the payment processor for some reason.
Because we need to check the recurring status at this level now, we can also remove the status check from the payment processor.
@irisfaraway irisfaraway marked this pull request as ready for review November 18, 2024 15:24
Copy link
Collaborator

@jaucourt jaucourt left a comment

Choose a reason for hiding this comment

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

Also noticed that the tests don't quite cover all the new code - have a look at Sonar Cloud

@irisfaraway irisfaraway merged commit bbee238 into develop Nov 21, 2024
3 checks passed
@irisfaraway irisfaraway deleted the feature/iwtf-4261-agreementid branch November 21, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants