Skip to content

Hipay Integration ​

Hipay processes card payments and handles refunds. The integration communicates with the Hipay API for transaction management.

Components ​

ComponentFileRole
HipayApisrc/CoreBundle/Api/HipayApi.phpHipay API client

Configuration ​

Required parameters in parameters.yml:

yaml
hipay:
  api_url: "https://..."
  username: "..."
  password: "..."
  entity: "..."

Data Flow ​

View diagram source
sequenceDiagram
    participant CUST as Customer
    participant MAG as Magento Checkout
    participant HIP as Hipay API
    participant API as HipayApi
    participant DB as Database

    CUST->>MAG: Submit payment
    MAG->>HIP: Create transaction
    HIP-->>MAG: Payment confirmation
    HIP->>API: Notification callback
    API->>DB: Record transaction

Diagram

Transaction Flow ​

  1. The customer initiates payment through the Magento checkout
  2. Magento redirects to or calls the Hipay payment gateway
  3. Hipay processes the card transaction
  4. A server-to-server notification is sent to Logidav
  5. HipayApi validates and records the transaction

Refund Flow ​

Refunds are initiated from Logidav and processed through the Hipay API:

  1. An operator triggers a refund from the back-office
  2. HipayApi sends the refund request to Hipay
  3. Hipay processes the refund and returns a confirmation
  4. The transaction status is updated in the database

Error Handling ​

ScenarioBehavior
Transaction declinedStatus recorded; customer notified via Magento
Notification delivery failureHipay retries; Logidav handles idempotently
Refund rejectedAlert raised; operator must review
API timeoutRetry with backoff

Notification URL

Hipay sends transaction notifications to a configured callback URL. Ensure this URL is accessible from Hipay's servers and that the route is properly configured in Logidav.

Internal developer documentation for Menzzo systems.