How to Change the Stripe Key, Switch to Live or Change the Address
Once card payments are set up, the Stripe card of the Payments screen has three buttons that change the set-up: Change key, Switch to live and Change address. Each opens the same steps as the first set-up, starting where the change is, and nothing changes until you press Finish. Open the menu and choose Payments under Administration. Do these changes in a web browser, not in the ABM Service desktop app.
How do I change the Stripe key for card payments?
Select Change key on the Stripe card of the Payments screen, paste the new key, and finish the steps. The steps are headed Change the Stripe key and open on the Stripe key step, with the web address already checked.
- Select Change key on the Stripe card.
- Paste the new restricted key into Stripe key and select Check. Stripe's answer names the account and says whether it is test or live money.
- Select Next, check Who may use it, and select Next again.
- Read the Ready step and press Finish.
The screen says "Saved. Payments carry on with the new set-up." The Key line on the Stripe card then shows the new key's start and last four characters, and Recently records the change with your name.
Use Change key when you have made a new key in Stripe, for example because the old one was deleted or may have been seen by somebody, or when the Stripe card says "This server cannot read the stored key, so no payment can be made. Change the key to enter it again." A key for a different Stripe account is accepted too, and moves card payments to that account.
How do I switch card payments from test money to live money?
Select Switch to live on the Stripe card of the Payments screen, paste your live restricted key, and finish the steps. Switch to live is there only while card payments take test money; the steps are headed Switch to live money and open on the Stripe key step, which says "Paste the LIVE restricted key from Stripe. It starts rk_live_."
A test key is refused there with "This is a test key. Switching to live needs a live one, which starts rk_live_." After Finish, the Stripe card's label reads Live — real money, and every new payment takes real money.
What happens to the test payments made before:
- Unless you use End the named ones, every test payment link still open is stopped at Stripe before the live key is stored, so nobody can pay a test link afterwards.
- In the office, test payments stay in each customer's Payments section with a Test label. They are never counted in the "paid online — not posted" line, or in the Payments screen's figures, once you take live money.
- On the Customer portal, a live site never lists a test payment.
How do I change the web address customers come back to?
Select Change address on the Stripe card of the Payments screen, check the new address, and finish the steps. The steps are headed Change the web address and open on the Web address step. Type the new address and select Check: it must reach this ABM Service server from the internet, as at the first set-up.
The key stays as it is. The Stripe key step says "The current key stays:" with its start and last four characters, and its button reads Check the current key, which asks Stripe about it again for the new address. Then select Next through to Ready and press Finish. Stripe reports payments to the new address from then on, and ABM Service tries to remove the old reporting address. If the completion message says it could not be deleted, delete the named entry in Stripe under Developers › Webhooks.
Payment links made before the change still work, but whoever pays one is sent back to the old address afterwards. If the old address no longer reaches ABM Service, they see an error page there even though their payment went through; the office still sees it as paid in the customer's Payments section.
What happens to payment links already sent when I change the key?
What happens to payment links already sent depends on whether the new key is for the same Stripe account and the same kind of money:
- The same account and the same kind of money, such as a new live key for the same live account: links already sent keep working, and payments made on them are recorded as usual.
- Another Stripe account, or test money to live money: before the new key is stored, every payment link still open is normally stopped at Stripe with the old key. End the named ones is an exception: it only ends the records here. The Ready step warns you first: "This key is another Stripe account or another kind of money, so first every payment link still open is stopped with the key payments use now." A link that turns out to have been paid already is recorded as paid. Anyone who opens a stopped link finds that Stripe's page no longer takes a payment.
Keep the old key usable until an account or money-mode change has finished: ABM Service needs it to check and stop the old links. If it was already revoked, check unresolved payments and stop their links in Stripe before using End the named ones.
After a key change of the second kind, the office uses Send again on a stopped office link to make a fresh one, and customers start their payment again from the Customer portal.
What if a key change on the Payments screen is not finished?
If Stripe will not say what became of some open payment links, the key change on the Payments screen stops part-way, and no new payment request can be created until you finish it or stop it. Existing links that have not yet been stopped can still accept payment. The screen shows the change's name and "not finished", the sentence "Stripe did not say what became of" the number of payments "made with the old key", and a list of them with Customer, Amount, Made and Why end it.
The list shows at most 200 unresolved payments at a time. A reason in Why end it keeps up to 400 characters on the payment record.
While it stands, the office is told "Payments are being changed — try again in a few minutes." and customers "Card payments are being changed — try again in a few minutes." You have three ways out:
- Try again — asks Stripe again. After you leave the screen it is Change key again on a card headed A key change — not finished: run Change key with the new key to finish.
- End the named ones — check and stop each link in Stripe first. This choice only ends the ABM Service record: the link may still accept payment and ABM Service will no longer record that payment. Then type why in Why end it beside each payment you are ending, such as "the customer says they never paid it", and select it. Each one named is closed without knowing what became of it at Stripe, and the reason goes into Recently. A payment with no reason is not ended, and with none at all the screen says "Say why, beside each payment you are ending." Straight after Finish, ending them carries on with the change by itself; on the A key change — not finished card, run Change key again afterwards to finish it.
- Keep payments as they were — stops the change. The screen says "The change was stopped. Payments carry on with the key they had." Links the change already stopped stay stopped.
Warning: End a payment only when you are sure it was not paid, for example after checking it in Stripe's own dashboard. Once ended, ABM Service no longer asks Stripe about it.
A failure after stopping links, such as failing to save the new connection, can leave the change unfinished even with no unresolved payments listed. Reopen Payments, then finish with Change key again or select Keep payments as they were. A lost completion response does not establish whether the new settings saved: check the Stripe card after reloading.