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

Remove code path for Apple Pay validation with request retry #3892

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

marcotranchino
Copy link
Contributor

@marcotranchino marcotranchino commented Aug 9, 2024

With a recent change[1], we have enabled Apple Pay Merchant Validaton with
axios and hpagent.

The change has been successfully verified on the Test environment, where the
code path with axios was switched on using an environment variable[2].

Now that the code path with axios has been switched ON also on Production,
then we are now able to stop using requestretry in pay-frontend by
completely deleting the code path using it for the Apple Pay Merchant
Validation.

Note that whilst working on this code, we have also improved the Pay CLI, and
that now it is possible to run Pay locally --with-egress-proxy. For this
reason, we are also removing the code path using axios without a proxy URL,
since it is not production like and it is not needed for local development
either.

Further information in JIRA[3].

[1]
#3891

[2]
https://github.com/alphagov/pay-infra/pull/4913

[3]
https://payments-platform.atlassian.net/browse/PP-12853

@marcotranchino marcotranchino changed the title [DO NOT MERGE!] Remove code path for Apple Pay validation with request retry Remove code path for Apple Pay validation with request retry Aug 12, 2024
@marcotranchino marcotranchino marked this pull request as ready for review August 12, 2024 09:45
hjvoid
hjvoid previously approved these changes Aug 12, 2024
Copy link
Contributor

@hjvoid hjvoid left a comment

Choose a reason for hiding this comment

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

LGTM 🍾

With a recent change[1], we have enabled Apple Pay Merchant Validaton with
`axios` and `hpagent`.

The change has been successfully verified on the Test environment, where the
code path with `axios` was switched on using an environment variable[2].

Now that the code path with `axios` has been switched ON also on Production,
then we are now able to stop using `requestretry` in pay-frontend by
completely deleting the code path using it for the Apple Pay Merchant
Validation.

Note that whilst working on this code, we have also improved the Pay CLI, and
that now it is possible to run Pay locally --with-egress-proxy. For this
reason, we are also removing the code path using `axios` without a proxy URL,
since it is not production like and it is not needed for local development
either.

Further information in JIRA[3].

[1]
#3891

[2]
alphagov/pay-infra#4913

[3]
https://payments-platform.atlassian.net/browse/PP-12853
Copy link
Contributor

@DomBelcher DomBelcher left a comment

Choose a reason for hiding this comment

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

LGTM

@marcotranchino marcotranchino merged commit 59f360b into master Aug 12, 2024
11 checks passed
@marcotranchino marcotranchino deleted the pp-12853-remove-requestretry-path branch August 12, 2024 14:15
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.

3 participants