Replacing the payment key is only half the change
A new gateway credential must reach every system that uses it. Plan the change around running software, account settings and a recovery route that still works.
In this article
The new payment key works in the developer’s test. New customers can check out. Later, a separate job fails when it tries to finish an earlier order. That part of the application still has the old credential.
This hypothetical change was correct in one place and incomplete across the business. Replacing a credential is not finished when someone pastes a value into hosting settings. It is finished when the intended systems use the authorized replacement and the old access has been retired through the supported procedure.
Find every system that still uses the old credential
Begin with the actual account and authentication method. A staff member’s Business Center password, a server API credential, a temporary customer payment token and a notification verification key serve different purposes. Changing one does not necessarily replace the others.
Cybersource documents separate REST authentication key types and requires separate credentials for test and production. Record which merchant account, environment and integration the intended replacement belongs to. Confirm its actual expiry and supported replacement procedure rather than borrowing a lifetime or instruction from a different key type.
Then ask which components use it. The visible checkout may share a credential with another server operation, or separate credentials may serve different workloads. Possible consumers include session creation, payment processing, later capture or refund work and authorized reporting. This is an inventory question, not a recommendation to give every component the same access.
Look beyond the active web server. A background worker, scheduled task, older deployment or separate administration tool may load its own configuration. Keep the permitted consumers and their owners together so that a successful checkout does not obscure a different broken operation.
A saved value is not a completed transition
Updating secret storage does not prove every running process has read the new value. OWASP notes that applications can retain credentials in memory and may need a coordinated refresh. Ask the maintainer how the replacement reaches each consumer and how that result is verified without exposing the secret.
Plan the transition around the provider’s supported credential behavior. Where overlapping valid credentials are supported and authorized, the team may be able to move consumers before retiring earlier access. Where they are not, the change may need a coordinated interruption. Do not assume either arrangement from an unrelated API example.
Confirm the replacement through an approved verification method. A successful authentication check establishes access for that operation, not that every payment method, refund or reporting path works. Test the affected business paths in the supported test environment, then follow the separately agreed production validation procedure.
Keep a planned rotation distinct from a suspected compromise. If a secret may have been exposed, follow the provider and security response process promptly. Continuing to use a compromised credential merely to preserve a convenient rollback is not a sound recovery plan.
For a leaked key, ask the provider and web team to review the available activity records alongside the urgent access change. Identify the affected credential without circulating its value, the possible exposure period and any operations the business did not authorize. A quieter error log after replacement cannot establish what happened earlier. Investigate and repair the route that exposed the secret, so its replacement does not enter the same public file or diagnostic output. Keep affected payment outcomes assigned for review through the provider’s supported process. Revoking access does not reverse a charge or refund already submitted with it.
The merchant should know when the change begins, which operations may be affected and who can decide whether to pause new attempts. The implementation team needs those decisions before an unattended job starts failing outside the maintenance window.
Restoring code does not restore the account configuration
A website rollback replaces an application version. It does not inherently restore a gateway setting changed in Business Center, reactivate a retired credential or restore a prior value in separately managed secret storage. Treat each of those states as a distinct part of recovery.
Suppose a release changes both the website’s expected payment flow and the relevant gateway configuration. Returning only the website to yesterday’s code can create a combination that never passed testing. The account may still behave according to today’s settings.
Agree which combination is intended after recovery and who is authorized to establish it. The developer owns the application change; an authorized account operator owns the relevant gateway change. Preserve nonsecret configuration references and the expected behavior so that both teams can compare the same target.
AWS’s compatibility guidance includes testing a transition through deployment and rollback rather than assuming the earlier version will still work. Apply that acceptance principle to the actual connected parts of this store. Restoring a label called “previous release” is not the same as demonstrating a usable payment connection.
Payments already attempted remain a separate responsibility. Returning to old software or old configuration cannot undo them. Keep their original references and resolve uncertain results before initiating another collection. Our payment rollback article explains why those purchases need owners even after new checkout attempts work again.
Leave a record the next maintainer can use
The useful handoff identifies the account, environment, credential type, permitted consumers, responsible team and next review or expiry date. It also records which verification passed and what happened to the earlier access. Store the credential itself only in the approved secret system, not in the handoff document, source repository or support conversation.
Prevent the next copy as well as securing the current one. Keep example configuration files limited to obvious placeholders, exclude local secret files from version control and review the exact files being committed. Use supported secret scanning and push protection where available, without treating a clean scan as proof that every credential format was recognized. If a key has entered Git history, deleting it from today’s file does not revoke the access or erase earlier copies. GitHub advises revoking or rotating an exposed credential first. Coordinate any further history cleanup with the repository owners; rewriting commits is not a substitute for disabling the secret.
For a Trolleys merchant, involve the account implementation team when the change affects gateway access or account settings. Use the support handoff for safe references and a description of the failed operation. The public website is guidance, not a place to submit credentials or execute the change.
A replacement key is a necessary piece of access management. A maintained connection is the larger result: every intended consumer works, unnecessary old access is removed and the business has a recovery plan that matches the account as it exists now.