Property | Type | Description | |
---|---|---|---|
$failurelink | URL to redirect the user to on payment failure. Not the same as the "cancel" action in {@link PaymentGatewayController}. | ||
$orderProcessor | OrderProcessor | ||
$successlink | URL to redirect the user to on payment success. Not the same as the "confirm" action in {@link PaymentGatewayController}. |
Method | Description | |
---|---|---|
__construct ( $controller, $name, CheckoutComponentConfig $config ) | ||
checkoutSubmit ( $data, $form ) | ||
getFailureLink ( ) | ||
getOrderProcessor ( ) : OrderProcessor | ||
getSuccessLink ( ) | ||
setFailureLink ( $link ) | ||
setOrderProcessor ( OrderProcessor $processor ) | ||
setSuccessLink ( $link ) | ||
submitpayment ( $data, $form ) | Behaviour can be overwritten by creating a processPaymentResponse method on the controller owning this form. It takes a Symfony\Component\HttpFoundation\Response argument, and expects an SS_HTTPResponse in return. |
public __construct ( $controller, $name, CheckoutComponentConfig $config ) | ||
$config | CheckoutComponentConfig |
public getOrderProcessor ( ) : OrderProcessor | ||
return | OrderProcessor |
public setOrderProcessor ( OrderProcessor $processor ) | ||
$processor | OrderProcessor |
public submitpayment ( $data, $form ) |
protected $failurelink |
protected OrderProcessor $orderProcessor | ||
return | OrderProcessor |