Log in
Factory

InstantPurchaseOptionFactory

Magento\InstantPurchase\Model\InstantPurchaseOptionFactory

What it does

This factory class creates InstantPurchaseOption objects that encapsulate all the information needed for one-click purchases in Magento 2.

Developers use this to build instant purchase configurations with customer payment tokens, shipping/billing addresses, and shipping methods, or to create disabled options when instant purchase isn't available for a customer.

Public Methods

  • create()
  • createDisabledOption()