PaymentTypeManager
class PaymentTypeManager implements BasicEntityManagerInterface
Class PaymentTypeManager is injected as alligator.payment.manager service. PaymentTypeManager handles the logic for managed entity.
Traits
Constants
| ALLSECURE_RESPONSE_CODE_OK |
All secure response code regex |
| ALLSECURE_VALUE |
All secure value key |
| CARD_PAYMENT_TYPES |
Card payment types array |
| CARD_PAYMENT_STATUS_RESERVED |
Card payment status reserved |
| CARD_PAYMENT_STATUS_COMPLETED |
Card payment status completed |
| CARD_PAYMENT_STATUS_REFUNDED |
Card payment status refunded |
| CARD_PAYMENT_STATUS_RELEASED |
Card payment status released |
| CARD_PAYMENT_STATUS_FAILED |
Card payment status failed |
Properties
| protected PaymentTypeRepository | $repository | ||
| protected PaymentTypeEventContainer | $eventContainer |
Methods
No description
No description
No description
No description
Get payment terms
Find all payment types
Find all payment types for edit
Find all pricelists
Find payment type by id
Change payment type
Remove multiple payment types
If $checkoutSettingsId is provided, only active will be cached (with different key)
Get payment type object by primary key
Get payment types role settings array
Get card payment types
Get payment type by name
Handle all secure response
Handle all secure payment
Perform payment for order
Handle NestPay payment
Handle NestPay response
Details
in JQGridManagerTrait at line 26
mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 40
mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 53
mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)
at line 88
__construct(PaymentTypeRepository $repository, PaymentTermsRepository $paymentTermsRepository, PaymentTypeEventContainer $eventContainer)
at line 101
mixed
getPaymentTerms()
Get payment terms
at line 118
mixed
savePaymentTerms(PaymentTerms $paymentTerms)
Save payment terms
at line 128
array
findAllPaymentTypes()
Find all payment types
at line 137
array
findAllPaymentTypesForEdit()
Find all payment types for edit
at line 146
array
findAllPricelists()
Find all pricelists
at line 159
mixed
findPaymentTypeById(int $id)
Find payment type by id
at line 173
bool
changePaymentType(string $paymentTypeName)
Change payment type
at line 241
PaymentType
save(PaymentType $entity)
Save payment type entity
at line 288
PaymentType
edit(PaymentType $entity)
Edit payment type entity
at line 361
bool
remove(PaymentType $entity)
Remove payment type entity from database
at line 381
bool
removePaymentTypesFromArray(array $array)
Remove multiple payment types
at line 398
mixed
setPaymentTypesToCache(string|int|null $checkoutSettingsId = null)
If $checkoutSettingsId is provided, only active will be cached (with different key)
at line 413
PaymentType
getPaymentTypeObjByPk(int|string $id)
Get payment type object by primary key
at line 423
array
getPaymentTypeRoleSettingsArray()
Get payment types role settings array
at line 432
mixed
getCardPaymentTypes()
Get card payment types
at line 445
mixed
getPaymentTypeByName(string $name)
Get payment type by name
at line 459
array
handleAllSecureResponse(int|string $id, string $path)
Handle all secure response
at line 509
applyStep(string $step, Order $order = null)
Applay transition step optional order is passed
at line 518
array
handleAllSecurePayment()
Handle all secure payment
at line 539
array
performPaymentForOrder(mixed $data)
Perform payment for order
at line 585
array
handleNestPayPayment()
Handle NestPay payment
at line 620
array
handleNestPayResponse(array $data)
Handle NestPay response