Skip to content

errorUrl() should default to returnUrl() #4

Closed
@judgej

Description

@judgej

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions