[8.x] Allow to store live and sandbox credentials for easy switching

Created on 16 November 2022, over 2 years ago
Updated 12 May 2025, 6 days ago

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

Check if 8.x-1.x has the same implementation

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs work

Version

1.0

Component

PayPal Checkout

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany Grevil
  • Pipeline finished with Success
    6 days ago
    Total: 326s
    #494673
  • Pipeline finished with Success
    6 days ago
    Total: 289s
    #494702
  • Pipeline finished with Failed
    6 days ago
    Total: 129s
    #494765
  • Pipeline finished with Failed
    6 days ago
    Total: 174s
    #494769
  • Pipeline finished with Success
    6 days ago
    Total: 149s
    #494790
  • Pipeline finished with Success
    6 days ago
    Total: 254s
    #494793
  • Pipeline finished with Success
    6 days ago
    Total: 148s
    #494843
  • Pipeline finished with Canceled
    6 days ago
    Total: 149s
    #494855
  • Pipeline finished with Success
    6 days ago
    Total: 151s
    #494857
  • πŸ‡©πŸ‡ͺGermany Grevil

    Ok, this is it! Done!

  • Pipeline finished with Success
    6 days ago
    Total: 154s
    #494863
  • Pipeline finished with Success
    6 days ago
    Total: 157s
    #494865
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Wouldn't it be better to clearly document how to override the credentials via settings.php?

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @damienmckenna thanks for your reply. In my eyes both is true.

    Currently the issue is, that theres a "Live" vs. "Sandbox" switch, but you can only store public / private key for one of them. This combination doesn't make much sense in our eyes.
    When switching the radio, you have to exchange the keys and enter the opposite ones and when switching back, same again...

    The goal here is to add separate fields & config values for live and sandbox credentials, so you can switch at any time, if you need to, by just switching the radio.

    Of course it should also be documented how to set these values in settings.php.

Production build 0.71.5 2024