Skip to content

"Required key" check conflicts with best practice of keeping credentials out of VCS #33

@aaronbauman

Description

@aaronbauman

The "required key" check in \CommerceGuys\AuthNet\Configuration::__construct() enforces valid credentials - that makes sense.

On my Drupal site, I'd like to configure these values through settings.php + environment varialbe, and removing them from my config set, so that the sensitive info doesn't go into VCS.

Unfortunately, authnet will not allow this, throwing an InvalidArgumentException during config import.

What is the suggested workaround?
Is this fixable with existing code, or does this require a patch?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions