Problem/Motivation

The administration UI allows switching between Sandbox and Live credentials (radio), but you can only EITHER store the live credentials OR the sandbox credentials.

Instead of only having the two input fields for client ID and secret, there should be two for sandbox and two for live.
Switching could then show / hide them via form states API.

In all payment provider implementations I know allows to store both. For good reasons :)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Grevil created an issue. See original summary.

grevil’s picture

This issues MR was originally provided by @Anybody in #3321915: [8.x] Allow to store live and sandbox credentials for easy switching.

grevil’s picture

Don't mind the 7.x-2.x branch please, I tried to revert my commit in hopes this would hide this branch, but it doesn't.

anybody’s picture

Status: Active » Needs review
anybody’s picture

tomtech’s picture

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.