Log in
Model

InstantPurchaseOption

Magento\InstantPurchase\Model\InstantPurchaseOption

What it does

This class represents a complete instant purchase configuration containing all required information (payment token, shipping/billing addresses, and shipping method) for a one-click checkout.

Developers use this class to validate and retrieve the customer's saved preferences when implementing instant purchase functionality, ensuring all necessary data is available before processing a rapid checkout.

Public Methods

  • isAvailable()
  • getPaymentToken()
  • getShippingAddress()
  • getBillingAddress()
  • getShippingMethod()