files/en-us/web/api/paymentrequest/index.md
{{APIRef("Payment Request API")}}{{SecureContext_Header}}
The Payment Request API's PaymentRequest interface is the primary access point into the API, and lets web content and apps accept payments from the end user on behalf of the operator of the site or the publisher of the app.
{{InheritanceDiagram}}
PaymentRequest object.PaymentRequest, which can be set via details.id. When none is set, it defaults to a UUID.requestShipping flag set to true. Additionally, in some browsers, the parts of the address will be redacted for privacy until the user indicates they are ready to complete the transaction (i.e., they hit "Pay").requestShipping flag set to true.shipping, delivery, pickup, or null if a value was not provided in the constructor.PaymentRequest object can make a payment before calling show().{{Specifications}}
{{Compat}}