@daimo/pay
Version:
Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.
16 lines (15 loc) • 651 B
TypeScript
import { DaimoPayIntentStatus } from "@daimo/pay-common";
/** Returns the current payment, or undefined if there is none.
*
* Status values:
* - `payment_unpaid` - the user has not paid yet
* - `payment_started` - the user has paid & payment is in progress. This status
* typically lasts a few seconds.
* - `payment_completed` - the final call or transfer succeeded
* - `payment_bounced` - the final call or transfer reverted. Funds were sent
* to the payment's configured refund address on the destination chain.
*/
export declare function useDaimoPayStatus(): {
paymentId: string;
status: DaimoPayIntentStatus;
} | undefined;