---
title: PaymentRequestEvent.topOrigin
slug: Web/API/PaymentRequestEvent/topOrigin
tags:
  - API
  - Payment Request API
  - PaymentRequestEvent
  - Property
  - Reference
  - payment
  - topLevelOrigin
browser-compat: api.PaymentRequestEvent.topOrigin
---
{{SeeCompatTable}}{{APIRef("Payment Request API")}}

The **`topOrigin`** read-only property of the
{{domxref("PaymentRequestEvent")}} interface returns the top level payee origin where
the {{domxref("PaymentRequest")}} object was initialized.

## Syntax

```js
var aUsvString = paymentRequestEvent.topOrigin
```

### Value

A USVString

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
