Skip to content

Test users

John Duffell edited this page Sep 4, 2024 · 16 revisions

It is possible to go through any of the checkouts on the site as a test user which will allow you to use a test credit card or PayPal account

  • Go to https://support.theguardian.com/test-users (requires you to be signed in with your Guardian Gmail account) - this will set a cookie called _test_username which will put the site into test mode for the next 48hrs (or until you delete the cookie).

In order for users you create to be recognised as test users in other systems (such as members-data-api or manage.theguardian.com) you will also need to checkout with particular details described below, if you are only testing support.theguardian.com you can safely ignore these instructions.

On the test user page you should see a test user key which will look something like r2aIEKAaWmPpxaVndcc

  1. log in to the above account with your System Settings=>Apple ID (you can ask around for the password, or reset it if necessary)
  2. Do not set up 2FA (click Other options and Not Now)
  3. go to System Settings=>Wallet and Apple Pay
  4. if there's no valid card, add one from https://developer.apple.com/apple-pay/sandbox-testing/
  5. open safari and visit the /test-users page and then the checkout The payment request button should be present and working.
  6. Visit the relevant checkout in
  • Google pay We are not sure how to test google pay, as the guardian organisation doesn't allow adding cards. If you try harder and find a way, add the details here. So far people have been using their personal accounts as a test user (which doesn't actually charge you)

πŸ™‹β€β™€οΈ General Information

🎨 Client-side 101

βš›οΈ React+Redux

πŸ’° Payment methods

πŸŽ› Deployment & Testing

πŸ“Š AB Testing

🚧 Helper Components

πŸ“š Other Reference

1️⃣ Quickstarts

πŸ›€οΈ Tracking

Clone this wiki locally