@aigens/aigens-sdk-adyen-payments
v5.0.4
Published
Aigens SDK adyen-payments
Readme
aigens-sdk-utils
Aigens SDK Adyen Payments
Install
npm install @aigens/aigens-sdk-adyen-payments
npx cap syncAPI
appPayment(...)
appPayment(options: AdyenPaymentOptions) => Promise<AdyenPaymentResponse>| Param | Type |
| ------------- | ------------------------------------------------------------------- |
| options | AdyenPaymentOptions |
Returns: Promise<AdyenPaymentResponse>
handleAction(...)
handleAction(options: { actionData: any; }) => Promise<AdyenPaymentResponse>| Param | Type | Description |
| ------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| options | { actionData: any; } | actionData: { "token" : "eyJkaXJl...", "paymentMethodType" : "scheme", "paymentData" : "Ab02b4c0...", "type" : "threeDS2", "authorisationToken" : "BQABAQ...", "subtype" : "fingerprint" } |
Returns: Promise<AdyenPaymentResponse>
finalizeIfNeeded(...)
finalizeIfNeeded(optinos: { isSuccessful: boolean; message: string; }) => Promise<void>| Param | Type |
| ------------- | -------------------------------------------------------- |
| optinos | { isSuccessful: boolean; message: string; } |
Interfaces
AdyenPaymentResponse
| Prop | Type | Description |
| -------------- | -------------------- | ------------------------------------------- |
| result | boolean | |
| isCancel | boolean | |
| message | string | |
| data | any | PaymentComponentData | ActionComponentData |
AdyenPaymentOptions
| Prop | Type | Description |
| ----------------------------- | --------------------------------------------------------------------------------------------------------- | ------------------------- |
| clientKey | string | |
| environment | 'live' | 'test' | |
| liveEnv | 'live' | 'liveEurope' | 'liveAustralia' | 'liveUnitedStates' | 'liveApse' | 'liveIndia' | |
| amount | number | needs a Long type |
| currencyCode | string | |
| countryCode | string | |
| title | string | |
| appleMerchantIdentifier | string | |
| paymentMethodsResponse | any | { paymentMethods: [xxx] } |
