You can pay for New Hampshire tolls online if you do so within 7 days of your trip via official site.
If it’s been more than 7 days, you’ll have to wait for an invoice in the mail to pay for the toll, plus a $1.00 processing fee.