class BasePaymentModuleController extends BaseFrontController

This class implement the minimum

Traits

Symfony\Component\DependencyInjection\ContainerAwareTrait

Constants

EMPTY_FORM_NAME

CONTROLLER_TYPE

Methods

EventDispatcher
getDispatcher()

Return the event dispatcher,

getTranslator()

return the Translator

getMailer()

return an instance of \Swift_Mailer with good Transporter configured.

createForm($name, $type = 'form', array $data = array(), array $options = array())

No description

ContainerInterface
getContainer()

No description

string
getControllerType()

No description

checkAuth()

No description

confirmPayment( int $order_id)

Process the confirmation of an order. This method should be called once the module has performed the required checks to confirm a valid payment.

cancelPayment( int $order_id)

Process the cancelation of a payment on the payment gateway. The order will go back to the "not paid" status.

redirectToSuccessPage( int $order_id)

Redirect the customer to the successful payment page.

redirectToFailurePage( int $order_id, string|null $message)

Redirect the customer to the failure payment page. if $message is null, a generic message is displayed.

Details

in BaseController at line 128
EventDispatcher getDispatcher()

Return the event dispatcher,

Return Value

EventDispatcher

in BaseController at line 138
Translator getTranslator()

return the Translator

Return Value

Translator

in BaseController at line 545
MailerFactory getMailer()

return an instance of \Swift_Mailer with good Transporter configured.

Return Value

MailerFactory

in BaseController at line 569
BaseForm createForm($name, $type = 'form', array $data = array(), array $options = array())

Parameters

$name
$type
array $data
array $options

Return Value

BaseForm This method builds a thelia form with its name

in BaseController at line 589
ContainerInterface getContainer()

Return Value

ContainerInterface

in BaseFrontController at line 39
string getControllerType()

Return Value

string

in BaseFrontController at line 29
checkAuth()

at line 79
confirmPayment( int $order_id)

Process the confirmation of an order. This method should be called once the module has performed the required checks to confirm a valid payment.

Parameters

int $order_id the order ID

Exceptions

Exception

at line 127
cancelPayment( int $order_id)

Process the cancelation of a payment on the payment gateway. The order will go back to the "not paid" status.

Parameters

int $order_id the order ID

at line 174
redirectToSuccessPage( int $order_id)

Redirect the customer to the successful payment page.

Parameters

int $order_id the order ID

at line 196
redirectToFailurePage( int $order_id, string|null $message)

Redirect the customer to the failure payment page. if $message is null, a generic message is displayed.

Parameters

int $order_id the order ID
string|null $message an error message.