# GET shop/success

> Completes the payment after the provider sends the customer back, and writes the order page.

- Source: `api/routes/success.php#L13` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/api/routes/success.php#L13>

```js
fetch('/api/shop/success', {
	method: 'GET',
});
```

## Return type

`void`

Redirects to the order page, or back to the checkout page when the order could not be completed.
