Log in
Model

PaymentToken

Magento\Vault\Model\ResourceModel\PaymentToken

What it does

This resource model handles database operations for the Vault payment token system, which stores customer payment method tokens for reuse.

Developers use this class to retrieve payment tokens by gateway token, public hash, or order payment ID, and to link tokens with specific order payments for reference tracking.

Public Methods

  • getByOrderPaymentId()
  • getByGatewayToken()
  • getByPublicHash()
  • addLinkToOrderPayment()