# axeptabnpparibas/axeptaonline-php-library architecture

> Architecture diagram of the GitHub repository axeptabnpparibas/axeptaonline-php-library, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/axeptabnpparibas/axeptaonline-php-library
- Repository: https://github.com/axeptabnpparibas/axeptaonline-php-library

## Overview

Axepta is a PHP client library for the Axepta BNP Paribas/Computop Paygate API. The documented workflow is to obtain an OAuth access token, configure the library, build an operation, and call its request; API responses and URLNotify data support follow-on payment scenarios. The repository tree exposes no PHP source files, so implementation nodes use null paths except the documented `lib/init.php` entry point. Relationships reflect README examples only.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Setup and operations"]
  node_init["Library initialization"]
  node_client["AxeptaPaygate API"]
  node_token["Access token"]
  node_config["Configuration"]
  node_requiredkeys["Required keys"]
  node_operation["Operation builder"]
  node_request["Payment request"]
  node_response["API response"]
end

subgraph group_payments["Payment scenarios"]
  node_details["Payment details"]
  node_oneclick["One-click payments"]
  node_subscription["Subscription payments"]
  node_notify["URLNotify data"]
end

subgraph group_gateway["External gateway"]
  node_paygate{{"Computop Paygate API"}}
end

node_merchant(("Merchant application"))
node_merchantdb[("Merchant database")]

node_merchant -->|"requests token"| node_client
node_client -->|"requests token"| node_paygate
node_paygate -->|"returns token"| node_token
node_merchant -->|"loads configuration"| node_init
node_init -->|"initializes"| node_config
node_merchant -->|"requests keys"| node_client
node_client -->|"returns keys"| node_requiredkeys
node_merchant -->|"builds operation"| node_client
node_client -->|"builds"| node_operation
node_merchant -->|"calls"| node_request
node_request -->|"sends payment"| node_paygate
node_paygate -->|"returns response"| node_response
node_merchant -->|"retrieves"| node_details
node_merchant -->|"configures"| node_oneclick
node_oneclick -->|"stores card data"| node_merchantdb
node_paygate -->|"sends notification"| node_notify
node_merchant -->|"stores notification data"| node_merchantdb
node_merchant -->|"configures"| node_subscription
node_subscription -->|"stores card data"| node_merchantdb

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_init,node_client,node_token,node_config,node_requiredkeys,node_operation,node_request,node_response toneBlue
class node_details,node_oneclick,node_subscription,node_notify,node_merchantdb toneAmber
class node_paygate toneMint
class node_merchant toneIndigo
```

## Components

### Setup and operations

- **Library initialization**
- **AxeptaPaygate API**
- **Access token**
- **Configuration**
- **Required keys**
- **Operation builder**
- **Payment request**
- **API response**

### Payment scenarios

- **Payment details**
- **One-click payments**
- **Subscription payments**
- **URLNotify data**

### External gateway

- **Computop Paygate API**

### Other components

- **Merchant application**
- **Merchant database**

## Connections

- Merchant application → AxeptaPaygate API: requests token
- AxeptaPaygate API → Computop Paygate API: requests token
- Computop Paygate API → Access token: returns token
- Merchant application → Library initialization: loads configuration
- Library initialization → Configuration: initializes
- Merchant application → AxeptaPaygate API: requests keys
- AxeptaPaygate API → Required keys: returns keys
- Merchant application → AxeptaPaygate API: builds operation
- AxeptaPaygate API → Operation builder: builds
- Merchant application → Payment request: calls
- Payment request → Computop Paygate API: sends payment
- Computop Paygate API → API response: returns response
- Merchant application → Payment details: retrieves
- Merchant application → One-click payments: configures
- One-click payments → Merchant database: stores card data
- Computop Paygate API → URLNotify data: sends notification
- Merchant application → Merchant database: stores notification data
- Merchant application → Subscription payments: configures
- Subscription payments → Merchant database: stores card data
