@vtex/payment-provider-sdk
Version:
VTEX Payment Provider SDK
23 lines (22 loc) • 1.14 kB
TypeScript
import type { CreditCardAuthorized, FailedAuthorization, UndefinedAuthorization, RedirectResponse, SettlementResponse } from './typings/api';
export declare const approvedSampleResponse: (paymentId: string) => CreditCardAuthorized;
export declare const deniedSampleResponse: (paymentId: string) => FailedAuthorization;
export declare const asyncSampleResponse: (paymentId: string, returnUrl?: string | undefined) => UndefinedAuthorization;
export declare const redirectSampleResponse: (paymentId: string) => RedirectResponse;
export declare const settlementSampleResponse: (paymentId: string, value: number, requestId: string) => SettlementResponse;
export declare const refundSampleResponse: (paymentId: string, value: number, requestId: string) => {
paymentId: string;
refundId: string;
value: number;
code: null;
message: string;
requestId: string;
};
export declare const cancellationSampleResponse: (paymentId: string, transactionId: string, requestId: string) => {
paymentId: string;
transactionId: string;
cancellationId: string;
code: null;
message: string;
requestId: string;
};