<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "ApplePayontheWeb",
  "identifier" : "/documentation/ApplePayontheWeb/ApplePaySession/abort",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Apple Pay on the Web"
    ],
    "preciseIdentifier" : "instm/ApplePaySession/abort"
  },
  "title" : "abort"
}
-->

# abort

Aborts the current Apple Pay session.

```
undefined abort();
```

## Discussion

Dismisses the payment sheet and ends the Apple Pay session without completing a transaction. Only the web page can call [`abort`](/documentation/ApplePayontheWeb/ApplePaySession/abort).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)