You are here

interface CustomCardFieldsBuilderInterface in Commerce PayPal 8

Provides an interface for the hosted fields builder.

Hierarchy

Expanded class hierarchy of CustomCardFieldsBuilderInterface

All classes that implement CustomCardFieldsBuilderInterface

1 file declares its use of CustomCardFieldsBuilderInterface
PaymentMethodAddForm.php in src/PluginForm/Checkout/PaymentMethodAddForm.php

File

src/CustomCardFieldsBuilderInterface.php, line 11

Namespace

Drupal\commerce_paypal
View source
interface CustomCardFieldsBuilderInterface {

  /**
   * Build the PayPal Checkout card form.
   *
   * @param \Drupal\commerce_order\Entity\OrderInterface $order
   *   The order.
   * @param \Drupal\commerce_payment\Entity\PaymentGatewayInterface $payment_gateway
   *   The payment gateway.
   *
   * @return array
   *   A renderable array representing the card form.
   */
  public function build(OrderInterface $order, PaymentGatewayInterface $payment_gateway);

}

Members

Namesort descending Modifiers Type Description Overrides
CustomCardFieldsBuilderInterface::build public function Build the PayPal Checkout card form. 1