8000 Order status only one of three options · Issue #104 · thephpleague/omnipay-sagepay · GitHub
[go: up one dir, main page]

Skip to content
Order status only one of three options #104
@darylp041

Description

@darylp041

As per the notes for both v2 and v3, SagePay only ever seems to return one of three states: STATUS_COMPLETED, STATUS_PENDING or, and the default, STATUS_FAILED.

We have an integration problem, where we are using the authorize() function and this always sends a DEFERRED payment. In some cases payments should/could be AUTHENTICATE. However, using the authorize() callback we're only ever going to get DEFERRED. A setTxType() would be ideal in side DirectGateway. Which, if using Authorize, you could override the default action.

Similarly, when payments are returned acceptNotification() will only ever return one of three states: STATUS_COMPLETED, STATUS_PENDING or, and the default, STATUS_FAILED. This was already raised here: #42

Therefore, each successful transaction that returns an AUTHENTICATED state technically fails, even though its not failed. My understanding of "$gateway->capture([...]);" is that it will release the funds immediately and stops using the acceptNotification(), which has been advised in issue #69.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0