[PostFinance] What does the «unknown order/1/r/» error code mean?

This error code means that the referer has not been configured correctly in your technical account information.
You can enter the referer via the menu “Configuration”-> “Technical Information” under point 2.2.
Please note that:

  • The referer check is performed on the full path you enter in the technical information. If you enter only a domain name, all the directories of that domain will be accepted.
    E.g. if http://www.mysite.com/ is entered under 2.2 of the technical information, this will allow the payment page to be called from any page that begins with http://www.mysite.com/
  • Always specify http:// or https://
  • If your referer has been entered correctly, and you still get this error when the form is posted from the URL, this means our server has not detected any referer in the http request. In this case, please ensure you are not using a method (payment page in pop up, special web server configuration…) that is blocking this information.

Please note that if you use the PostFinance test pages for test payments, you must enter the URL of that page in the referer field.

See also another explanation here: https://e-payment-postfinance.v-psp.com/en/en/guides/integration%20guides/possible-errors

See also: