Base class for PaymentServiceInterface decorators.
Example implementation:
final class MyPaymentServiceDecorator extends PaymentServiceDecorator
{
public function createPayment(PaymentCreateStruct $createStruct): PaymentInterface
{
// Customize method behavior here
}
}
and relevant service definition:
services:
App\Payment\MyPaymentServiceDecorator:
decorates: Ibexa\Contracts\Payment\PaymentServiceInterface
Properties¶
$innerService¶
PaymentServiceDecorator.php
:
44
|
|
Methods¶
__construct() ¶
PaymentServiceDecorator.php
:
46
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$innerService | PaymentServiceInterface | - | - |
createPayment() ¶
PaymentServiceDecorator.php
:
66
Creates a new payment.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$createStruct | PaymentCreateStruct | - |
Struct with data needed to create a new payment. |
Return values
deletePayment() ¶
PaymentServiceDecorator.php
:
76
Deletes an existing payment.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$payment | PaymentInterface | - | - |
findPayments() ¶
PaymentServiceDecorator.php
:
61
Returns payments matching the given query.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$query | PaymentQuery|null | null |
Query used to fetch payments. |
Return values
getPayment() ¶
PaymentServiceDecorator.php
:
51
Returns payment with given id.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$id | int | - | - |
Return values
getPaymentByIdentifier() ¶
PaymentServiceDecorator.php
:
56
Returns payment with given identifier.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$identifier | string | - | - |
Return values
updatePayment() ¶
PaymentServiceDecorator.php
:
71
Updates an existing payment with given data.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$payment | PaymentInterface | - | - |
$updateStruct | PaymentUpdateStruct | - | - |