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
Issue fork commerce_paypal-3327419
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:
- 3327419-7.x-allow-to
changes, plain diff MR !17
- 7.x-2.x
changes, plain diff MR !18
Comments
Comment #3
grevil commentedThis issues MR was originally provided by @Anybody in #3321915: [8.x] Allow to store live and sandbox credentials for easy switching.
Comment #4
grevil commentedDon'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.
Comment #7
anybodyComment #8
anybodyComment #9
tomtech commentedAutomatically 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.