PaymentService
class PaymentService implements PaymentServiceInterface
PaymentService class
Properties
private ConfigServiceInterface | $configService | Stores ConfigServiceInterface | |
private EntityManagerInterface | $em | Stores EntityManagerInterface | |
private Request | $request | Stores current Request | |
private PaymentEmailInterface | $paymentEmail | Stores PaymentEmailInterface | |
private PaymentFormFactoryInterface | $paymentFormFactory | Stores PaymentFormFactoryInterface | |
private PaymentStripeInterface | $paymentStripe | Stores PaymentStripeInterface | |
private ServiceToolsInterface | $serviceTools | Stores ServiceToolsInterface |
Methods
No description
Creates the payment
Creates the payment for a defined amount
Defines the data to use for a free amount Payment
Gets all the Payment
Gets the Payment from session
Returns the value of parameter
Defines PaymentData from session
Details
at line 71
__construct(ConfigServiceInterface $configService, EntityManagerInterface $em, RequestStack $requestStack, PaymentEmailInterface $paymentEmail, PaymentFormFactoryInterface $paymentFormFactory, PaymentStripeInterface $paymentStripe, ServiceToolsInterface $serviceTools)
at line 93
string|false
charge(string $service, Payment $paymentSession)
Charges the payment server
at line 154
create(array $paymentData)
Creates the payment
at line 174
Form
createForm(string $name, Payment $payment)
Shortcut to call PaymentFormFactory to create Form
at line 182
createFreeAmount(Payment $payment)
Creates the payment for a free amount
at line 192
createDefinedAmount($user, string $text, int $amount, string $currency)
Creates the payment for a defined amount
at line 210
array
defineFreeAmount($user)
Defines the data to use for a free amount Payment
at line 227
error(Payment $payment)
An error has occured after the Payment (Sends email to site + flash)
at line 239
mixed
getAll()
Gets all the Payment
at line 250
Payment|null
getFromSession(string $kind)
Gets the Payment from session
at line 258
mixed
getParameter(string $parameter)
Returns the value of parameter
at line 266
register(Payment $payment)
Registers the Payment in DB + Session
at line 279
array|null
setDataFromSession(string $kind)
Defines PaymentData from session