Allow overriding the API credentials in settings.php

Created on 23 December 2023, over 1 year ago
Updated 29 February 2024, about 1 year ago

Problem/Motivation

It would be really useful if there was a way of overriding the API credentials via settings.php, so that they can be hardcoded per environment.

Proposed resolution

Document how to override API settings via settings.php.

Remaining tasks

Work out how to override the API credentials.

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Feature request
Status

Needs review

Version

1.0

Component

User interface

Created by

🇺🇸United States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @DamienMcKenna
  • Status changed to Needs review over 1 year ago
  • Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    Waiting for branch to pass
  • 🇺🇸United States DamienMcKenna NH, USA

    While tracking through the code I found it isn't really easy to do, so I thought adding a drupal_alter thing would be useful.

  • 🇺🇸United States DamienMcKenna NH, USA
  • 🇮🇱Israel jsacksick

    Hm... We probably could find a better way to do this... Wondering if we need a broader initiative that allows overridding the configuration of any shipping method via the Key module or something.
    The current patch is adding direct \Drupal calls() which is not ideal and the suggested approach is really USPS specific.

Production build 0.71.5 2024