Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (PaymentTokenRepositoryInterface $repository, PaymentTokenResourceModel $paymentTokenResourceModel, PaymentTokenFactory $paymentTokenFactory, FilterBuilder $filterBuilder, SearchCriteriaBuilder $searchCriteriaBuilder, PaymentTokenSearchResultsInterfaceFactory $searchResultsFactory, EncryptorInterface $encryptor, DateTimeFactory $dateTimeFactory) | |
getListByCustomerId ($customerId) | |
getVisibleAvailableTokens ($customerId) | |
getByPaymentId ($paymentId) | |
getByGatewayToken ($token, $paymentMethodCode, $customerId) | |
getByPublicHash ($hash, $customerId) | |
saveTokenWithPaymentLink (PaymentTokenInterface $token, OrderPaymentInterface $payment) | |
addLinkToOrderPayment ($paymentTokenId, $orderPaymentId) | |
Protected Attributes | |
$paymentTokenRepository | |
$paymentTokenResourceModel | |
$resourceModel | |
$paymentTokenFactory | |
$searchResultsFactory | |
$filterBuilder | |
$searchCriteriaBuilder | |
Vault payment token repository @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 25 of file PaymentTokenManagement.php.
__construct | ( | PaymentTokenRepositoryInterface | $repository, |
PaymentTokenResourceModel | $paymentTokenResourceModel, | ||
PaymentTokenFactory | $paymentTokenFactory, | ||
FilterBuilder | $filterBuilder, | ||
SearchCriteriaBuilder | $searchCriteriaBuilder, | ||
PaymentTokenSearchResultsInterfaceFactory | $searchResultsFactory, | ||
EncryptorInterface | $encryptor, | ||
DateTimeFactory | $dateTimeFactory | ||
) |
PaymentTokenRepositoryInterface | $repository | |
PaymentTokenResourceModel | $paymentTokenResourceModel | |
PaymentTokenFactory | $paymentTokenFactory | |
FilterBuilder | $filterBuilder | |
SearchCriteriaBuilder | $searchCriteriaBuilder | |
PaymentTokenSearchResultsInterfaceFactory | $searchResultsFactory | |
EncryptorInterface | $encryptor | |
DateTimeFactory | $dateTimeFactory |
Definition at line 82 of file PaymentTokenManagement.php.
addLinkToOrderPayment | ( | $paymentTokenId, | |
$orderPaymentId | |||
) |
Add link between payment token and order payment.
int | $paymentTokenId | Payment token ID. |
int | $orderPaymentId | Order payment ID. |
Implements PaymentTokenManagementInterface.
Definition at line 249 of file PaymentTokenManagement.php.
getByGatewayToken | ( | $token, | |
$paymentMethodCode, | |||
$customerId | |||
) |
Get payment token by gateway token.
string | $token | The gateway token. |
string | $paymentMethodCode | |
int | $customerId | Customer ID. |
Implements PaymentTokenManagementInterface.
Definition at line 187 of file PaymentTokenManagement.php.
getByPaymentId | ( | $paymentId | ) |
Get payment token by token Id.
int | $paymentId | The payment token ID. |
Implements PaymentTokenManagementInterface.
Definition at line 172 of file PaymentTokenManagement.php.
getByPublicHash | ( | $hash, | |
$customerId | |||
) |
Get payment token by public hash.
string | $hash | Public hash. |
int | $customerId | Customer ID. |
Implements PaymentTokenManagementInterface.
Definition at line 201 of file PaymentTokenManagement.php.
getListByCustomerId | ( | $customerId | ) |
Lists payment tokens that match specified search criteria.
int | $customerId | Customer ID. |
Implements PaymentTokenManagementInterface.
Definition at line 108 of file PaymentTokenManagement.php.
getVisibleAvailableTokens | ( | $customerId | ) |
Searches for all visible, non-expired tokens
int | $customerId |
Definition at line 129 of file PaymentTokenManagement.php.
saveTokenWithPaymentLink | ( | PaymentTokenInterface | $token, |
OrderPaymentInterface | $payment | ||
) |
PaymentTokenInterface | $token | |
OrderPaymentInterface | $payment |
Implements PaymentTokenManagementInterface.
Definition at line 213 of file PaymentTokenManagement.php.
|
protected |
Definition at line 55 of file PaymentTokenManagement.php.
|
protected |
Definition at line 45 of file PaymentTokenManagement.php.
|
protected |
Definition at line 30 of file PaymentTokenManagement.php.
|
protected |
Definition at line 35 of file PaymentTokenManagement.php.
|
protected |
Definition at line 40 of file PaymentTokenManagement.php.
|
protected |
Definition at line 60 of file PaymentTokenManagement.php.
|
protected |
Definition at line 50 of file PaymentTokenManagement.php.