SilverStripe\Omnipay\Tests\Extensions\PaymentTestPaymentExtensionHooks
Extension that can be used to test payment hooks
Synopsis
class PaymentTestPaymentExtensionHooks
extends DataExtension
implements
TestOnly
{
- // members
- protected static array $instances = ;
- protected array $callStack = ;
- // methods
- public static PaymentTestPaymentExtensionHooks|null findExtensionForID()
- public static void ResetAll()
- public void setOwner()
- public void Reset()
- public array getCallStack()
- public array getCalledMethods()
- public void onAuthorized()
- public void onAwaitingAuthorized()
- public void onCaptured()
- public void onAwaitingCaptured()
- public void onRefunded()
- public void onVoid()
- public void onCancelled()
- public void onCardCreated()
- public void onAwaitingCreateCard()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Implements
- SilverStripe\Dev\TestOnly
Members
protected
- $callStack
- $instances
Methods
public
- Reset()
- ResetAll()
- findExtensionForID() — Fint the PaymentTestPaymentExtensionHooks instance for a given payment ID
- getCallStack() — Get an array of the extension methods that were called and their arguments
- getCalledMethods() — Get an array of the extension methods that were called
- onAuthorized()
- onAwaitingAuthorized()
- onAwaitingCaptured()
- onAwaitingCreateCard()
- onCancelled()
- onCaptured()
- onCardCreated()
- onRefunded()
- onVoid()
- setOwner()