PHP 클래스 PaymentForm, silvershop-core

상속: extends CheckoutForm
파일 보기 프로젝트 열기: burnbright/silverstripe-shop 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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}.

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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

checkoutSubmit() 공개 메소드

public checkoutSubmit ( $data, $form )

getOrderProcessor() 공개 메소드

public getOrderProcessor ( ) : OrderProcessor
리턴 OrderProcessor

setOrderProcessor() 공개 메소드

public setOrderProcessor ( OrderProcessor $processor )
$processor OrderProcessor

submitpayment() 공개 메소드

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 )

프로퍼티 상세

$orderProcessor 보호되어 있는 프로퍼티

protected OrderProcessor $orderProcessor
리턴 OrderProcessor