UNPKG

@exodus/react-native-payments

Version:

[![react-native version](https://img.shields.io/badge/react--native-0.41-0ba7d3.svg?style=flat-square)](http://facebook.github.io/react-native/releases/0.40) [![npm](https://img.shields.io/npm/v/react-native-payments.svg?style=flat-square)](https://www.np

21 lines (20 loc) 1.05 kB
import { PaymentDetailsInit, PaymentMethodData, PaymentOptions } from './types'; declare function canMakePayments(): Promise<boolean>; declare function canMakePaymentsUsingNetworks(usingNetworks: []): Promise<boolean>; declare function createPaymentRequest(methodData: PaymentMethodData['data'], details: PaymentDetailsInit, options?: Partial<PaymentOptions>): Promise<void>; declare function handleDetailsUpdate(details: PaymentDetailsInit): Promise<void>; declare function show(): Promise<unknown>; declare function abort(): Promise<unknown>; declare function complete(paymentStatus: PaymentComplete): Promise<unknown>; declare const NativePayments: { isSupported: boolean; canMakePayments: typeof canMakePayments; canMakePaymentsUsingNetworks: typeof canMakePaymentsUsingNetworks; createPaymentRequest: typeof createPaymentRequest; handleDetailsUpdate: typeof handleDetailsUpdate; show: typeof show; abort: typeof abort; complete: typeof complete; openPaymentSetup: () => void; }; export default NativePayments;