Log in
Factory

PaymentTokenFactory

Magento\Vault\Model\PaymentTokenFactory

What it does

This factory creates payment token entities used by Magento's Vault system for storing payment method information like credit cards or payment accounts.

Developers use this when they need to create new payment tokens programmatically, specifying the token type (like card or account) to generate the appropriate token object for secure payment data storage.

Public Methods

  • create()