You are here

interface SmartPaymentButtonsBuilderInterface in Commerce PayPal 8

Provides an interface for the Smart payment buttons builder.

Hierarchy

Expanded class hierarchy of SmartPaymentButtonsBuilderInterface

All classes that implement SmartPaymentButtonsBuilderInterface

1 file declares its use of SmartPaymentButtonsBuilderInterface
PaymentOffsiteForm.php in src/PluginForm/Checkout/PaymentOffsiteForm.php

File

src/SmartPaymentButtonsBuilderInterface.php, line 11

Namespace

Drupal\commerce_paypal
View source
interface SmartPaymentButtonsBuilderInterface {

  /**
   * Builds the Smart payment buttons.
   *
   * @param \Drupal\commerce_order\Entity\OrderInterface $order
   *   The order.
   * @param \Drupal\commerce_payment\Entity\PaymentGatewayInterface $payment_gateway
   *   The payment gateway.
   * @param bool $commit
   *   Set to TRUE if the transaction is Pay Now, or FALSE if the amount
   *   captured changes after the buyer returns to your site.
   *
   * @return array
   *   A renderable array representing the Smart payment buttons.
   */
  public function build(OrderInterface $order, PaymentGatewayInterface $payment_gateway, $commit);

}

Members

Namesort descending Modifiers Type Description Overrides
SmartPaymentButtonsBuilderInterface::build public function Builds the Smart payment buttons. 1