react-native-yoco
Version:
The Yoco SDK allows app developers to integrate with Yoco card machines to accept in-person payments from within their application. The most common scenario is to accept Yoco payments from within your Point of Sale application.
15 lines • 1.06 kB
TypeScript
import { PaymentParameters, PaymentResult, QueryTransactionsResult, RefundResult, StaffMember } from "./ReactNativeYoco.types";
import { PaymentType, ResultCodes, SupportedCurrency } from "./ReactNativeYocoEnums";
declare class ReactNativeYocoModule {
initialise(): void;
configure(secret: string): void;
getDeviceType(): string;
pairTerminal(): Promise<ResultCodes>;
charge(amountInCents: number, paymentType: PaymentType, currency: SupportedCurrency, tipInCents: number | null | undefined, paymentParameters: PaymentParameters | undefined): Promise<PaymentResult>;
getPaymentResult: (transactionId: string, showResult: boolean) => Promise<PaymentResult>;
refund: (transactionId: string, amountInCents: number, userInfo: Record<string, any> | undefined, staffMember: StaffMember | undefined) => Promise<RefundResult>;
queryTransactions: (receiptNumber: string) => Promise<QueryTransactionsResult>;
}
declare const _default: ReactNativeYocoModule;
export default _default;
//# sourceMappingURL=ReactNativeYocoModule.d.ts.map