Log in
Helper

Data

Magento\Paypal\Helper\Data

What it does

This helper provides utility methods for PayPal payment functionality in Magento 2.

Developers use it to check if billing agreements should be created for customers, retrieve available billing agreement payment methods, and format PayPal transaction IDs as clickable HTML links to the PayPal website.

It's commonly used in checkout flows and payment configuration contexts.

Public Methods

  • shouldAskToCreateBillingAgreement()
  • getBillingAgreementMethods()
  • getHtmlTransactionId()