You are here

public function StripeInterface::createPaymentIntent in Commerce Stripe 8

Create a payment intent for an order.

Parameters

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

bool $capture: Whether the created payment intent capture is automatic or manual.

Return value

\Stripe\PaymentIntent The payment intent.

1 method overrides StripeInterface::createPaymentIntent()
Stripe::createPaymentIntent in src/Plugin/Commerce/PaymentGateway/Stripe.php
Create a payment intent for an order.

File

src/Plugin/Commerce/PaymentGateway/StripeInterface.php, line 34

Class

StripeInterface
Provides the interface for the Stripe payment gateway.

Namespace

Drupal\commerce_stripe\Plugin\Commerce\PaymentGateway

Code

public function createPaymentIntent(OrderInterface $order, $capture = TRUE);