PHP Class PaymentForm, silvershop-core

Inheritance: extends CheckoutForm
Show file Open project: burnbright/silverstripe-shop Class Usage Examples

Protected Properties

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}.

Public Methods

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.

Method Details

__construct() public method

public __construct ( $controller, $name, CheckoutComponentConfig $config )
$config CheckoutComponentConfig

checkoutSubmit() public method

public checkoutSubmit ( $data, $form )

getOrderProcessor() public method

public getOrderProcessor ( ) : OrderProcessor
return OrderProcessor

setOrderProcessor() public method

public setOrderProcessor ( OrderProcessor $processor )
$processor OrderProcessor

submitpayment() public method

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 submitpayment ( $data, $form )

Property Details

$orderProcessor protected property

protected OrderProcessor $orderProcessor
return OrderProcessor