0.2.6 • Published 3 years ago
capacitor-adyen v0.2.6
capacitor-adyen
Provides API for the Adyen SDK
Install
npm install capacitor-adyen
npx cap sync
iOS
AppDelegate.swift
import Adyen
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
// Adyen Redirect Handling
RedirectComponent.applicationDidOpen(from: url)
return true
}
API
presentDropIn(...)
presentDropIn(options: DropInOptions) => Promise<{ action: 'onSubmit' | 'onAdditionalDetails'; data: unknown; }>
Param | Type |
---|---|
options | DropInOptions |
Returns: Promise<{ action: 'onSubmit' | 'onAdditionalDetails'; data: unknown; }>
dismissDropIn()
dismissDropIn() => Promise<void>
handleAction(...)
handleAction(action: { value: string; }) => Promise<{ action: 'onSubmit' | 'onAdditionalDetails'; data: unknown; }>
Param | Type |
---|---|
action | { value: string; } |
Returns: Promise<{ action: 'onSubmit' | 'onAdditionalDetails'; data: unknown; }>
Interfaces
DropInOptions
Prop | Type |
---|---|
paymentMethodsResponse | string |
environment | AdyenEnvironment |
clientKey | string |
currencyCode | string |
countryCode | string |
amount | number |
paymentMethodsConfiguration | Record<string, unknown> |
Type Aliases
Record
Construct a type with a set of properties K of type T
{
}
Enums
AdyenEnvironment
Members | Value |
---|---|
test | 'test' |
live | 'live' |