You are here

public function SmartPaymentButtonsBuilderInterface::build in Commerce PayPal 8

Builds the Smart payment buttons.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $order: The order.

\Drupal\commerce_payment\Entity\PaymentGatewayInterface $payment_gateway: The payment gateway.

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 value

array A renderable array representing the Smart payment buttons.

1 method overrides SmartPaymentButtonsBuilderInterface::build()
SmartPaymentButtonsBuilder::build in src/SmartPaymentButtonsBuilder.php
Builds the Smart payment buttons.

File

src/SmartPaymentButtonsBuilderInterface.php, line 27

Class

SmartPaymentButtonsBuilderInterface
Provides an interface for the Smart payment buttons builder.

Namespace

Drupal\commerce_paypal

Code

public function build(OrderInterface $order, PaymentGatewayInterface $payment_gateway, $commit);