# GET shop/stripe-client-secret

> Creates a Stripe payment intent for the current cart and returns its client secret.

- Read more: <https://merx2.wagnerwagner.de/guide/payment-gateways/stripe-elements.md>
- Source: `api/routes/stripe-client-secret.php#L13` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/api/routes/stripe-client-secret.php#L13>

```js
fetch('/api/shop/stripe-client-secret', {
	method: 'GET',
});
```

## Return type

`array`

Array with the `clientSecret` of the cart’s Stripe PaymentIntent.
