Use the Arro or Curbd apps.
WIth Arro, you can't use Apple/Google pay, but you can store credit cards, and it looks like it also takes MasterPass and VisaCheckout.
You enter a code on the taxi screen into the app anytime during the ride and then payment processes automatically when the ride ends.