---
title: abort
framework: applepayontheweb
role: symbol
role_heading: Instance Method
path: applepayontheweb/applepaysession/abort
---

# abort

Aborts the current Apple Pay session.

## Declaration

```data
undefined abort();
```

## Discussion

Discussion Dismisses the payment sheet and ends the Apple Pay session without completing a transaction. Only the web page can call abort.

## See Also

### Ending the session

- [oncancel](applepayontheweb/applepaysession/oncancel.md)
