class PaymentController extends AbstractController

Main controller class

Properties

private PaymentServiceInterface $paymentService Stores PaymentService

Methods

__construct(PaymentServiceInterface $paymentService)

No description

Response
dashboard(Request $request, PaginatorInterface $paginator)

Displays the dashboard

Response
display(Payment $payment, ConfigServiceInterface $configService)

Displays Payment using its orderId

Response
config(Request $request, ConfigServiceInterface $configService)

Displays the configuration

Response
form()

Displays Stripe form to proceed to payment

Response|Redirect
freeAmount(Request $request, ConfigServiceInterface $configService)

Displays the form to proceed to a free amount payment

Redirect
request($text, $amount, $currency)

Displays form for defined amount

Redirect
charge()

Proceeds to charge Payment server

Details

at line 36
__construct(PaymentServiceInterface $paymentService)

Parameters

PaymentServiceInterface $paymentService

at line 51
Response dashboard(Request $request, PaginatorInterface $paginator)

Displays the dashboard

Parameters

Request $request
PaginatorInterface $paginator

Return Value

Response

Exceptions

AccessDeniedException

at line 80
Response display(Payment $payment, ConfigServiceInterface $configService)

Displays Payment using its orderId

Parameters

Payment $payment
ConfigServiceInterface $configService

Return Value

Response

at line 100
Response config(Request $request, ConfigServiceInterface $configService)

Displays the configuration

Parameters

Request $request
ConfigServiceInterface $configService

Return Value

Response

Exceptions

AccessDeniedException

at line 134
Response form()

Displays Stripe form to proceed to payment

Return Value

Response

at line 155
Response|Redirect freeAmount(Request $request, ConfigServiceInterface $configService)

Displays the form to proceed to a free amount payment

Parameters

Request $request
ConfigServiceInterface $configService

Return Value

Response|Redirect

at line 193
Redirect request($text, $amount, $currency)

Displays form for defined amount

Parameters

$text
$amount
$currency

Return Value

Redirect

at line 212
Redirect charge()

Proceeds to charge Payment server

Return Value

Redirect

Exceptions

NotFoundHttpException