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

HACK: code test payment failure #1265

Closed
wants to merge 3 commits into from

Conversation

andrewHEguardian
Copy link
Contributor

@andrewHEguardian andrewHEguardian commented Nov 24, 2023

add a hack for testing payment failure on CODE by inserting 'alertText' into the product in the MDAPI response in the server, which will make the product appear to be in payment failure

@@ -64,14 +64,22 @@ router.get(
),
)
.then((productDetails) => {
mdapiResponse.products = productDetails;
mdapiResponse.products = productDetails.map((productDetail) => {
productDetail.alertText = 'payment failure';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the hack

@andrewHEguardian
Copy link
Contributor Author

andrewHEguardian commented Nov 24, 2023

didn't need this, but the build should still be in riff-raff in case we do

@andrewHEguardian andrewHEguardian deleted the ahe/code-test-update-payment branch November 24, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant