PaymentServiceInterface
interface PaymentServiceInterface
Interface to be called for DI for PaymentServiceInterface related services
Methods
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 27
string|false
charge(string $service, Payment $paymentSession)
Charges the payment server
at line 32
create(array $paymentData)
Creates the payment
at line 38
Form
createForm(string $name, Payment $payment)
Shortcut to call PaymentFormFactory to create Form
at line 43
createFreeAmount(Payment $payment)
Creates the payment for a free amount
at line 48
createDefinedAmount($user, string $text, int $amount, string $currency)
Creates the payment for a defined amount
at line 54
array
defineFreeAmount($user)
Defines the data to use for a free amount Payment
at line 59
error(Payment $payment)
An error has occured after the Payment (Sends email to site + flash)
at line 65
mixed
getAll()
Gets all the Payment
at line 71
Payment|null
getFromSession(string $kind)
Gets the Payment from session
at line 78
mixed
getParameter(string $parameter)
Returns the value of parameter
at line 83
register(Payment $payment)
Registers the Payment in DB + Session
at line 89
array|null
setDataFromSession(string $kind)
Defines PaymentData from session