@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
20 lines • 1.05 kB
TypeScript
import { NativeModule } from 'react-native';
import { AddressLookup } from '../core/configurations/AddressLookup';
import { AdyenActionComponent } from '../core/AdyenNativeModules';
import { Order, PaymentMethodsResponse } from '../core/types';
/** Describes Drop-in module. */
export interface DropInModule extends AdyenActionComponent, NativeModule, AddressLookup {
/**
* Provides return URL for current application.
*/
getReturnURL: () => Promise<string>;
/**
* Reloads the DropIn with a new PaymentMethods object and partial payment order.
* @param paymentMethods JSON response from \paymentMethods API endpoint
* @param order The order information required for partial payments.
*/
providePaymentMethods(paymentMethods: PaymentMethodsResponse, order: Order | undefined): void;
}
/** Drop-in is our pre-built UI solution for accepting payments. Drop-in shows all payment methods as a list and handles actions. */
export declare const AdyenDropIn: DropInModule;
//# sourceMappingURL=DropInModule.d.ts.map