People commuting by rail around New York state can now use Apple Pay or Masterpass to buy tickets and passes through the MTA eTix app, Governor Andrew Cuomo announced this week.

The two payment options can be used for both the Metro-North Railroad and Long Island Rail Road, Cuomo's office said. A full range of purchases are available, from one-way trips through to weekly or monthly passes.

Using Apple Pay with MTA eTix simply requires picking "Pay with Apple Pay" at checkout and authenticating with Touch ID. If a person hasn't already, though, they'll have to set up a credit or debit card in the iOS Wallet app.

The Long Island Rail Road extends eastward from New York City burroughs like Manhattan, Queens, and Brooklyn all the way to towns like Greenport and Montauk. While also serving parts of New York City, Metro-North lines extend farther afield, even reaching into New Jersey and Connecticut.