Hello everyone,
I'm setting up Adobe Commerce Payments in Magento 2.4.x and I'm currently stuck on the configuration step for the Sandbox environment.
Current Status:
The Commerce Services Connector is successfully linked using the global Marketplace Public/Private Keys.
I have correctly navigated to the API Portal and generated a fresh set of Payment Services Sandbox API Keys (Client ID and Client Secret).
I am attempting to enter these keys into the Adobe Commerce Payments configuration section (System > Commerce Services Connector Setup) like in this video: https://experienceleague.adobe.com/de/docs/commerce/payment-services/get-started/connect#configure-c... .
The Problem:
The system rejects the Client ID / Public Key (or the pair) when attempting to save the configuration, preventing me from switching to the Sandbox mode. I receive a general validation error.
Steps I have verified (following Adobe documentation):
I ensured the keys are entered as a single, continuous, clean line (no leading/trailing spaces, no -----BEGIN/END----- headers, no line breaks).
I confirmed the system is asking for the correct Sandbox-specific keys (not the Production keys and not the general Commerce Connector keys).
The environment is explicitly set to "Sandbox" before saving.
Has anyone encountered this specific issue where the system rejects the newly generated Sandbox API key pair, even when the format is correct? Is there a known propagation delay after generating the keys in the API Portal, or a specific dependency that must be enabled on the Adobe Commerce side before the keys become active for the Magento configuration?
Any insight would be greatly appreciated!
Thank you!
I'm happy to report that the previous thread regarding the rejection of the Adobe Commerce Payments Sandbox Private Key can be marked as SOLVED! I apologize for the difficulty and confusion this caused, as the solution was highly counter-intuitive for typical API setups.
The key rejection was due to the format of the Private Key in the Magento Admin configuration field.
The Adobe Commerce Payments module requires the entire PEM-formatted block, including the crucial beginning and ending delimiters:
You MUST include the header: -----BEGIN PRIVATE KEY-----
You MUST include the footer: -----END PRIVATE KEY-----
The complete key, including line breaks, must be copied directly into the configuration field.
We incorrectly assumed these delimiters needed to be removed. I apologize for the extra effort this caused the community in troubleshooting a fundamental formatting issue.
The Sandbox connection was successful immediately upon entering the full key.
Thank you all so much for your patience and willingness to help. This detail should save others a lot of time!
Michael
The problem was caused by using an incomplete Sandbox private key. Adobe Commerce Payments requires the full PEM key exactly as provided, including the beginning and ending lines and all line breaks. Once the entire key block was pasted into the settings without removing anything, the Sandbox connection worked correctly. Hopefully this helps others avoid the same issue.