UNPKG

pix-client

Version:

Uma lib para facilitar o uso da API do mercado pago para pagamentos via PIX

22 lines (21 loc) 766 B
import { PixPaymentStatusMessages } from './messages.js'; export interface PixPaymentOptions { description?: string | undefined; transactionAmount: number; durationMinutes?: number; payerEmail?: string; } export declare const PaymentStatusType: readonly ["pending", "approved", "authorized", "in_process", "in_mediation", "rejected", "cancelled", "refunded", "charged_back"]; export type PaymentStatusType = (typeof PaymentStatusType)[number]; export type PaymentEvents = { [key in PaymentStatusType]: []; } & { paid: []; expired: []; status: [typeof PixPaymentStatusMessages[keyof typeof PixPaymentStatusMessages]]; }; export interface PaymentStatusObject { type: PaymentStatusType; title: string; description: string; }