UNPKG

@unchainedshop/plugins

Version:

Official plugin collection for the Unchained Engine with payment, delivery, and pricing adapters

57 lines (56 loc) 1.54 kB
import type { PaymentMethods } from './PaymentMethods.ts'; import type { Request } from './Request.ts'; import type { Response } from './Response.ts'; import type { TransactionAmount } from './Transaction.ts'; export interface PaymentPageInitializeInput extends Request { ConfigSet?: string; TerminalId: string; Payment: { Amount: TransactionAmount; OrderId?: string; PayerNote?: string; Description: string; MandateId?: string; Options?: { PreAuth?: boolean; AllowPartialAuthorization?: boolean; }; }; Recurring?: { initial: boolean; }; Installment?: { initial: boolean; }; PaymentMethods?: PaymentMethods[]; PaymentMethodsOptions?: Map<string, Map<string, string>>; Authentication?: { Exemption?: string; ThreeDsChallenge?: string; }; Wallets?: string[]; Payer?: { IpAddress?: string; Ipv6Address?: string; LanguageCode?: string; BillingAddress?: Map<string, string>; DeliveryAddress?: Map<string, string>; }; RegisterAlias?: { IdGenerator: 'MANUAL' | 'RANDOM' | 'RANDOM_UNIQUE'; Id?: string; Lifetime?: number; }; ReturnUrl: { Url: string; }; Notification?: { SuccessNotifyUrl?: string; FailNotifyUrl?: string; }; } export interface PaymentPageInitializeResponse extends Response { Token: string; Expiration: string; RedirectUrl: string; }