Closed judgej closed 7 years ago
Just a bit of history: this SO question concerns the PayPal driver returning true
for a pending
transaction. Adrian seems to say (quite some time ago, it may be added) that this is how it should work. Later issues raised on OmniPay say the opposite (that you cannot consider the transaction finally complete and successful until you get the final success indicator sent).
Most people recommend adding a isPending()
method, which we have here, even though that is not yet in Omnipay core.
The Omipay documentation needs to be updated to make it clear how PENDING should be handled, so both driver developers and driver users know how they should be handling this situation:
The accept notification handler and complete* messages return
true
fromisSuccessful()
when thepaymentState
isPENDING
. It should returnfalse
because the transaction is not yet complete.