Log in
Model

TokenFormatter

Magento\PaymentServicesPaypal\Model\InstantPurchase\TokenFormatter

What it does

This class formats PayPal payment tokens stored in Magento's vault system into human-readable strings for the Instant Purchase feature.

Developers use this when they need to display saved PayPal credit card information to customers during instant checkout, showing details like card brand, last 4 digits, and expiration date in a user-friendly format.

Public Methods

  • formatPaymentToken()