How atoapaymentslimited/atoawebclientsdk works
Atoa Web Client SDK embeds a payment dialog in a merchant’s web application. The principal flow is: the merchant configures and opens the SDK, the dialog fetches payment and bank data, the customer chooses bank or card, and the UI supports authorization and payment-status handling. The graph preserves the documented returning-customer, card, and status capabilities. Source excerpts show the dialog, service, HTTP client, and key UI wiring; other component links use SOURCE INDEX references. Unsampled internal behavior is not inferred.
Main entry points: RightPane.vue Payment flow · PaymentsService.ts Payments service · PaymentDialog.vue Payment dialog · SelectBank.vue Bank selection
Components 23
SDK entry
- SDK API
src/index.ts - Dialog host
src/dialog.vue
Payment dialog
- Payment dialog
src/components/PaymentDialog.vue - Payment summary
src/components/leftPane/LeftPane.vue
Payment experience
- Payment flow
src/components/rightPane/RightPane.vue - Bank selection
src/components/rightPane/selectBank/SelectBank.vue - Bank grid
src/components/rightPane/selectBank/BanksGrid.vue - Bank tabs
src/components/rightPane/selectBank/BankTabs.vue - Bank explainer
src/components/rightPane/explainer/ExplainerUI.vue - Bank payment
src/components/rightPane/paymentOptions/PaymentOptions.vue - Payment verification
src/components/rightPane/paymentVerification/PaymentVerification.vue - Payment status
src/components/rightPane/paymentStatus/PaymentStatus.vue - Status details
src/components/rightPane/paymentDetails/PaymentDetailsUI.vue - Card checkout
src/components/rightPane/cardCheckout/CardCheckout.vue - Mock card flow
src/components/rightPane/cardCheckout/MockCardSimulator.vue - Mock 3DS
src/components/rightPane/cardCheckout/Mock3ds.vue
Payment services
- Payments service
src/core/services/PaymentsService.ts - Simulator service
src/core/services/MockCardSimulatorService.ts - HTTP client
src/core/utils/http-client.ts - API utilities
src/core/utils/http-utils.ts
Other components
- Merchant app
- Atoa payment APIs
- Rapyd checkout
Connections 29
- Merchant app → SDK API: configures
- SDK API → Dialog host: opens dialog
src/index.ts - Dialog host → Payment dialog: renders
src/dialog.vue - Payment dialog → Payment summary: renders
src/components/PaymentDialog.vue - Payment dialog → Payment flow: renders
src/components/PaymentDialog.vue - Payment dialog → Payments service: fetches details
src/components/PaymentDialog.vue - Payments service → HTTP client: makes requests
src/core/services/PaymentsService.ts - Payments service → API utilities: wraps calls
src/core/services/PaymentsService.ts - HTTP client → Atoa payment APIs: sends requests
src/core/utils/http-client.ts - Payment flow → Bank selection: renders
src/components/rightPane/RightPane.vue - Payment flow → Bank explainer: renders
src/components/rightPane/RightPane.vue - Payment flow → Bank payment: renders
src/components/rightPane/RightPane.vue - Payment flow → Payment verification: renders
src/components/rightPane/RightPane.vue - Payment flow → Payment status: renders
src/components/rightPane/RightPane.vue - Payment flow → Card checkout: renders
src/components/rightPane/RightPane.vue - Bank selection → Bank grid: uses
src/components/rightPane/selectBank/SelectBank.vue - Bank selection → Bank tabs: uses
src/components/rightPane/selectBank/SelectBank.vue - Bank selection → Payments service: loads banks
src/components/rightPane/selectBank/SelectBank.vue - Bank payment → Payments service: requests payment
src/components/rightPane/paymentOptions/PaymentOptions.vue - Payment status → Status details: renders details
src/components/rightPane/paymentStatus/PaymentStatus.vue - Payment status → Payments service: checks status
src/components/rightPane/paymentStatus/PaymentStatus.vue - Card checkout → Payments service: authorizes card
src/components/rightPane/cardCheckout/CardCheckout.vue - Card checkout → Rapyd checkout: loads checkout
src/components/rightPane/cardCheckout/CardCheckout.vue - Card checkout → Mock card flow: mounts simulator
src/components/rightPane/cardCheckout/CardCheckout.vue - Mock card flow → Mock 3DS: uses
src/components/rightPane/cardCheckout/MockCardSimulator.vue - Mock card flow → Simulator service: calls
src/components/rightPane/cardCheckout/MockCardSimulator.vue - Simulator service → HTTP client: makes requests
src/core/services/MockCardSimulatorService.ts - Simulator service → API utilities: wraps calls
src/core/services/MockCardSimulatorService.ts - Payment dialog → Atoa payment APIs: loads bank data
src/components/PaymentDialog.vue