@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
28 lines • 1.2 kB
TypeScript
import { NativeModule } from 'react-native';
import { PaymentAction } from '../core/types';
import { BaseConfiguration } from '../core/configurations/Configuration';
/** Describes a native module capable of handling actions standalone. */
export interface ActionModule {
/** Returns current version of 3DS2 library */
threeDS2SdkVersion: string;
/**
* Handle a payment action received from Adyen API.
* @param action - The payment action to be handled.
*/
handle: (action: PaymentAction, configuration: BaseConfiguration) => Promise<PaymentMethodData>;
/**
* Dismiss the component from the screen.
* @param success - Indicates whether the component was dismissed successfully.
*/
hide: (success: boolean) => void;
}
export declare class ActionModuleWrapper implements ActionModule {
nativeModule: NativeModule | any;
threeDS2SdkVersion: string;
constructor(nativeModule: NativeModule | any);
handle(action: PaymentAction, configuration: BaseConfiguration): any;
hide(success: boolean): void;
}
/** Standalone Action Handling module. */
export declare const AdyenAction: ActionModule;
//# sourceMappingURL=ActionModule.d.ts.map