# Gateways::completeStripePayment()

> Captures stripe payment intent

- Source: `src/Gateways.php#L31` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/src/Gateways.php#L31>

```php
Gateways::completeStripePayment(Wagnerwagner\Merx\OrderPage $virtualOrderPage, array $data): OrderPage
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$virtualOrderPage` | `Wagnerwagner\Merx\OrderPage` | `–` |
| `$data` | `array` | `–` |

## Return type

`OrderPage`

Virtual order page with updated payment details

## Exceptions

| Type | Description |
| --- | --- |
| `(Exception \| ApiErrorException)` | Kirby exception, when the customer canceled the payment, payment is incomplete or Stripe API Exception |

## Parent class

`Wagnerwagner\Merx\Gateways`
