## Show the payment request interface

`paymentRequest.show()`

Shows the browser’s payment interface. When using the `paymentRequestButton` [Element](https://docs.stripe.com/js/element.md), this is called for you automatically. This method must be called as the result of a user interaction (for example, in a click handler).

### Example

```javascript
const payment = stripe.paymentRequest({
  country: 'US',
  currency: 'usd',
  total: {
    label: 'Square Widget',
    amount: 1099,
  },
});

payment.on('token', async (result) => {
  // Use the token to create a charge or setup a PaymentMethod
  // ...
  // Call complete() to close the browser payment interface
  result.complete('success');
});

const button = elements.create('paymentRequestButton', {
  paymentRequest: payment,
});
button.mount('#payment-request-button');

// Or, to show the payment interface manually:
const showButton = document.getElementById('show-payment-request');
showButton.addEventListener('click', () => {
  payment.show();
});
```