PAYMENT212: The payment gateway refused the payment
Symptom: after Take with a gateway, a red pop-up shows the gateway's own message, or "The gateway did not accept this payment.", with a Help button.
Do this now: read the gateway's message, correct the details and press Take again, or take another payment method. Do this before the customer leaves.
Fix it at the till
- Read the gateway's message in the pop-up. It says what the gateway refused.
- Correct the details, such as the email address or the option chosen, and press Take again.
- If it keeps refusing: tell a manager. Take a different payment method once they've checked that nothing was charged (see Is anything lost?).
- If you pressed Cancel invoice: the invoice still stands. Check the order before taking another payment.
Is anything lost?
The POS recorded no payment, and the order still owes its balance. If the gateway hit an error after it had started, money may have been taken: the store adds a note to the order asking you to check with the payment provider. Check that before you take another payment.
If it keeps happening
If the gateway refuses every payment, its settings need checking. Tell whoever looks after your website.
For whoever looks after your website
A gateway refuses by answering with its own message, by hitting an error, or by trying to send the customer to another site, which the POS can't follow. A message about one field shows on the payment form, with no code.
- Check the gateway's settings on the WooCommerce payments page, including its credentials.
- In WooCommerce → Status → Logs, look at source
woocommerce-posfor a gateway error or a redirect. Many gateways keep their own log there too. - Check the order's notes. If the gateway hit an error after it started, ask your payment provider whether money was taken.
Still stuck?
Send the log to support with the gateway's name and the time of the payment.
Code details for support
With the free WCPOS plugin, a refused gateway takes nothing and the order keeps its previous payment method.