Closed
Description
Omnipay does not distinguish between a success URL (authorised) and an error URL (declined), but Datatrans does, and requires both URLs to be supplied. The URLs can be set in the account and left unset at runtime, or set at runtime.
If set at runtime, when an application sets just the returnUrl()
then it expects both success and error results to go to the same place. In this case errorUrl()
needs to default to the returnUrl()
.
An application should still be able to supply a separate errorUrl()
if it needs to use it.