UNPKG

@tutorbot/payment-interface

Version:

Payment API Library for Tutor Platform

36 lines (35 loc) 991 B
import BaseInterface from './base'; import { IOmise, Charges } from 'omise'; import { PaymentStatusesEnum } from '../enums/payment-statuses.enum'; declare type Charge = Charges.ICharge & { status: string; }; export default class OmiseInterface extends BaseInterface { currencies: string[]; testPayAmount: number; protected apiClient: IOmise; protected secretKey: string; protected publicKey: string; constructor(); protected init(): void; protected productionConfigs(): { publicKey: any; secretKey: any; }; protected developmentConfigs(): { publicKey: any; secretKey: any; }; fetchTransactionId(queryParams: any): any; details: () => Promise<{ redirectBackData: any; checkoutChargeData: Charge; paymentStatus: PaymentStatusesEnum; }>; submit: () => Promise<{ transaction: string; charge: Charges.ICharge; publishableKey: any; }>; } export {};