@govuk-pay/cli 0.0.124 → 0.0.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-pay/cli",
3
- "version": "0.0.124",
3
+ "version": "0.0.127",
4
4
  "description": "GOV.UK Pay Command Line Interface",
5
5
  "bin": {
6
6
  "pay": "bin/cli.js",
package/readme.md CHANGED
@@ -58,14 +58,14 @@ Config files needed by the pay cli will go in `$HOME/.pay-cli"
58
58
 
59
59
  #### Pay Local Config Files
60
60
 
61
- You can override environment variables set in the .env files in [the pay local services local config directory](https://github.com/alphagov/pay-cli/tree/main/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services) for
61
+ You can override environment variables set in the .env files in [the pay local services local config directory](https://github.com/govuk-pay/pay-cli/tree/main/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services) for
62
62
  specific containers by placing files in `$HOME/.pay-cli/local/environment-overrides/<app_name>.env`.
63
63
 
64
- For example to override an environment variable for connector which was set in [connector.env](https://github.com/alphagov/pay-cli/blob/main/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/connector.env)
64
+ For example to override an environment variable for connector which was set in [connector.env](https://github.com/govuk-pay/pay-cli/blob/main/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/services/connector.env)
65
65
  you could create the file `$HOME/.pay-cli/local/environment-overrides/connector.env`
66
66
 
67
67
  Note: This will only override variables set in the .env files, it will not override any variables which get declared in an `environment` configuration option in the generated docker-compose files. These are generated from the
68
- [docker-compose.erb](https://github.com/alphagov/pay-cli/blob/main/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/docker-compose.erb#L5) template.
68
+ [docker-compose.erb](https://github.com/govuk-pay/pay-cli/blob/main/resources/legacy-ruby-cli/lib/pay_cli/commands/local/files/docker-compose.erb#L5) template.
69
69
 
70
70
  You can configure custom clusters by creating a file at `$HOME/.pay-cli/local/custom-clusters.yaml` following the schema:
71
71
  ```yaml
@@ -1,6 +1,6 @@
1
1
  # **DEPRECATED** pay-cli
2
2
 
3
- ***NOTE:*** This is deprecated. Please use the [Node.js version of pay-cli](https://www.github.com/alphagov/pay-cli)
3
+ ***NOTE:*** This is deprecated. Please use the [Node.js version of pay-cli](https://www.github.com/govuk-pay/pay-cli)
4
4
 
5
5
  To execute this cli you should now use the Node.js version legacy subcommand `pay legacy -- --help`
6
6
 
@@ -25,12 +25,12 @@ class PayCLI::Commands::Doctor
25
25
  def check_workspace!
26
26
  # Normally in doctor we continue to more tests, but if WORKSPACE isn't set lots of the tests will result in a crash
27
27
  if ! ENV.has_key?('WORKSPACE')
28
- STDERR.puts "🔥 WORKSPACE env var not set, it needs to be set to the directory where you check out alphagov repos"
28
+ STDERR.puts "🔥 WORKSPACE env var not set, it needs to be set to the directory where you check out govuk-pay repos"
29
29
  exit 1
30
30
  end
31
31
 
32
32
  if !File.directory?(ENV['WORKSPACE'])
33
- STDERR.puts "🔥 WORKSPACE env var not set, it needs to be set to the directory where you check out alphagov repos"
33
+ STDERR.puts "🔥 WORKSPACE env var not set, it needs to be set to the directory where you check out govuk-pay repos"
34
34
  exit 1
35
35
  end
36
36
 
@@ -48,7 +48,7 @@ module PayCLI::Commands::Tf
48
48
  def self.item!(command, environment, deployment_type, args)
49
49
  account = environment.split('-').first
50
50
  if ! ENV.has_key?('WORKSPACE')
51
- STDERR.puts 'Error: You must set your WORKSPACE env var to the directory where you checkout alphagov github projects'
51
+ STDERR.puts 'Error: You must set your WORKSPACE env var to the directory where you checkout govuk-pay github projects'
52
52
  exit 1
53
53
  end
54
54
 
@@ -42,7 +42,7 @@ class PayCLI::YkmanOathCredentialConfig
42
42
  yk_name
43
43
  end
44
44
 
45
- private
45
+ private
46
46
  def default_config_file_path
47
47
  Pathname.new(Dir.home) + ".govuk_pay_cli_config.yml"
48
48
  end
@@ -61,9 +61,9 @@ private
61
61
  <<-YAML_PREAMBLE
62
62
  # This file is automatically generated by the GOV.UK Pay CLI
63
63
  # You can edit settings here if you want
64
- #
65
- # For more info see https://github.com/alphagov/pay-infra/tree/master/cli
66
- #
64
+ #
65
+ # For more info see https://github.com/govuk-pay/pay-infra/tree/master/cli
66
+ #
67
67
  YAML_PREAMBLE
68
68
  end
69
69
 
@@ -34,6 +34,9 @@ exports.PRODUCTION_2_CONFIG = {
34
34
  SANDBOX_AUTH_TOKEN: 'smoke-test-api-token/notifications/production_sandbox_auth_token'
35
35
  },
36
36
  frontend: {
37
+ ADYEN_APPLE_PAY_MERCHANT_ID: 'apple_pay/adyen/test/merchant-id', // replace this with live
38
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/adyen/test/merchant-id-certificate-20260904', // replace this with live
39
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/adyen/test/merchant-id-certificate-key-20260904', // replace this with live
37
40
  WORLDPAY_APPLE_PAY_MERCHANT_ID: 'apple_pay/worldpay/production/merchant-id',
38
41
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/worldpay/production/merchant-id-certificate-20251820',
39
42
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/worldpay/production/merchant-id-certificate-key-20251820',
@@ -36,6 +36,9 @@ exports.STAGING_2_CONFIG = {
36
36
  SANDBOX_AUTH_TOKEN: 'smoke-test-api-token/notifications/staging_sandbox_auth_token'
37
37
  },
38
38
  frontend: {
39
+ ADYEN_APPLE_PAY_MERCHANT_ID: 'apple_pay/adyen/test/merchant-id',
40
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/adyen/test/merchant-id-certificate-20260904',
41
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/adyen/test/merchant-id-certificate-key-20260904',
39
42
  WORLDPAY_APPLE_PAY_MERCHANT_ID: 'apple_pay/worldpay/test/merchant-id',
40
43
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/worldpay/test/merchant-id-certificate-20250819',
41
44
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/worldpay/test/merchant-id-certificate-key-20250819',
@@ -38,6 +38,9 @@ exports.TEST_12_CONFIG = {
38
38
  frontend: {
39
39
  SESSION_ENCRYPTION_KEY: '',
40
40
  SESSION_ENCRYPTION_KEY_2: '',
41
+ ADYEN_APPLE_PAY_MERCHANT_ID: 'apple_pay/adyen/test/merchant-id',
42
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/adyen/test/merchant-id-certificate-20260904',
43
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/adyen/test/merchant-id-certificate-key-20260904',
41
44
  WORLDPAY_APPLE_PAY_MERCHANT_ID: 'apple_pay/worldpay/test/merchant-id',
42
45
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/worldpay/test/merchant-id-certificate-20250819',
43
46
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/worldpay/test/merchant-id-certificate-key-20250819',
@@ -38,6 +38,9 @@ exports.TEST_PERF_1_CONFIG = {
38
38
  frontend: {
39
39
  SESSION_ENCRYPTION_KEY: '',
40
40
  SESSION_ENCRYPTION_KEY_2: '',
41
+ ADYEN_APPLE_PAY_MERCHANT_ID: 'apple_pay/adyen/test/merchant-id',
42
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/adyen/test/merchant-id-certificate-20260904',
43
+ ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/adyen/test/merchant-id-certificate-key-20260904',
41
44
  WORLDPAY_APPLE_PAY_MERCHANT_ID: 'apple_pay/worldpay/test/merchant-id',
42
45
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE: 'apple_pay/worldpay/test/merchant-id-certificate-20250819',
43
46
  WORLDPAY_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY: 'apple_pay/worldpay/test/merchant-id-certificate-key-20250819',
@@ -125,6 +125,9 @@ exports.SERVICE_SECRETS = {
125
125
  ],
126
126
  frontend: [
127
127
  'AB_TEST_THRESHOLD',
128
+ 'ADYEN_APPLE_PAY_MERCHANT_ID',
129
+ 'ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE',
130
+ 'ADYEN_APPLE_PAY_MERCHANT_ID_CERTIFICATE_KEY',
128
131
  'GOOGLE_PAY_MERCHANT_ID',
129
132
  'GOOGLE_PAY_MERCHANT_ID_2',
130
133
  'SENTRY_CSP_REPORT_URI',