@portone/browser-sdk
Version:
PortOne SDK for browser
26 lines (25 loc) • 994 B
TypeScript
import { PortOneError } from './index.js';
import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
import { GrpcErrorCode } from './GrpcErrorCode.js';
import { TxServicePayErrorCode } from './TxServicePayErrorCode.js';
export type PaymentErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServicePayErrorCode;
export declare function isPaymentError(error: unknown): error is PaymentError;
export declare class PaymentError extends Error implements PortOneError {
static [Symbol.hasInstance](instance: unknown): boolean;
__portOneErrorType: string;
transactionType: "PAYMENT";
code: PaymentErrorCode;
message: string;
txId?: string;
paymentId?: string;
pgCode?: string;
pgMessage?: string;
constructor({ code, message, txId, paymentId, pgCode, pgMessage, }: {
code: PaymentErrorCode;
message: string;
txId?: string;
paymentId?: string;
pgCode?: string;
pgMessage?: string;
});
}