BasePaymentModuleController
class BasePaymentModuleController extends BaseFrontController
This class implement the minimum
Traits
Constants
EMPTY_FORM_NAME |
|
CONTROLLER_TYPE |
|
Methods
return an instance of \Swift_Mailer with good Transporter configured.
No description
Process the confirmation of an order. This method should be called once the module has performed the required checks to confirm a valid payment.
Process the cancelation of a payment on the payment gateway. The order will go back to the "not paid" status.
Redirect the customer to the successful payment page.
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,
in
BaseController at line 138
Translator
getTranslator()
return the Translator
in
BaseController at line 545
MailerFactory
getMailer()
return an instance of \Swift_Mailer with good Transporter configured.
in
BaseController at line 569
BaseForm
createForm($name, $type = 'form',
array $data = array(),
array $options = array())
in
BaseController at line 589
ContainerInterface
getContainer()
in
BaseFrontController at line 39
string
getControllerType()
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.
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.
at line 174
redirectToSuccessPage(
int $order_id)
Redirect the customer to the successful payment page.
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.