method PaymentProvider.readCharge
PaymentProvider.readCharge(paymentReference: string): Promise<ProviderRead<ChargeMoney>>

Read what the provider says about the money on one charge: what it took, and what has gone back. Every refund route asks this before it sends money, and the edit-attendee page asks it to refresh a booking's refund state.

Parameters

paymentReference: string
  • provider-specific payment reference Missing, unavailable, and invalid answers remain distinct.

Return Type

Promise<ProviderRead<ChargeMoney>>

Usage

import { type PaymentProvider } from "doc.ts";