> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vultlocal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Process in-app payment

> Process an in-app OLIVE payment



## OpenAPI

````yaml /olive-openapi.json post /payment
openapi: 3.0.0
info:
  description: >-
    API Gateway for OLIVE NFC Card Payment System - Comprehensive payment, card
    management, agent operations, and admin authentication. All /api/v1 routes
    require authentication using either API Key or JWT token.
  title: OLIVE NFC Card Payment API
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    email: support@olive.sl
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
servers:
  - url: https://olive-gateway-a6ba.onrender.com/api/v1
security: []
paths:
  /payment:
    post:
      tags:
        - Payment
      summary: Process in-app payment
      description: Process an in-app OLIVE payment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/handler.POSPaymentRequest'
        description: In-app payment details
        required: true
      responses:
        '200':
          description: Payment approved
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Payment declined
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
components:
  schemas:
    handler.POSPaymentRequest:
      type: object
      required:
        - amount
        - card_serial
        - currency
        - merchant_id
        - pin
        - processor_id
        - terminal_id
        - transaction_ref
      properties:
        amount:
          description: Accepts decimal format like "150.00" or "150"
          type: string
          example: '150.00'
        card_serial:
          description: 'Supports any alphanumeric: CARD0001, 48290173K, etc.'
          type: string
          example: CARD0001
        currency:
          type: string
          example: SLE
        merchant_id:
          type: string
          example: MERCHANT001
        merchant_name:
          description: Display name for receipts
          type: string
          example: ABC Store
        metadata:
          type: object
          additionalProperties: true
        pin:
          type: string
          example: '1234'
        processor_id:
          description: Processor account that receives the funds
          type: string
          example: proc-uuid-123
        terminal_id:
          type: string
          example: TERM001
        transaction_ref:
          type: string
          example: POS-TXN-123

````