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

# Credit Card Payment

> Process credit card payment endpoint



## OpenAPI

````yaml POST /payments/creditCard/{id}
openapi: 3.0.4
info:
  title: FinHub API
  description: >-
    FinHub API provides services for the Caibo platform to support client's
    applications
  version: v1
servers:
  - url: https://apay.caibo.digital
    description: Caibo APay server (Test and Production share base; method IDs differ)
security: []
paths:
  /payments/creditCard/{id}:
    post:
      tags:
        - Payments
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
            format: int64
        - name: transaction3dsId
          in: query
          schema:
            type: string
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/CreditCardPayment'
          application/json:
            schema:
              $ref: '#/components/schemas/CreditCardPayment'
          text/json:
            schema:
              $ref: '#/components/schemas/CreditCardPayment'
          application/*+json:
            schema:
              $ref: '#/components/schemas/CreditCardPayment'
      responses:
        '200':
          description: OK
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '424':
          description: Failed Dependency
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    CreditCardPayment:
      required:
        - address
        - city
        - country
        - cvv
        - email
        - expiration
        - name
        - number
        - phoneNumber
        - postalCode
        - state
      type: object
      properties:
        name:
          maxLength: 100
          minLength: 0
          type: string
        number:
          maxLength: 19
          minLength: 8
          type: string
        expiration:
          minLength: 1
          pattern: ^\d{2}\/\d{2}$
          type: string
        cvv:
          maxLength: 4
          minLength: 3
          pattern: ^\d+$
          type: string
        email:
          maxLength: 100
          minLength: 0
          type: string
          format: email
        phoneNumber:
          maxLength: 14
          minLength: 10
          pattern: ^\d+$
          type: string
        address:
          maxLength: 100
          minLength: 0
          type: string
        city:
          maxLength: 50
          minLength: 0
          type: string
        state:
          minLength: 1
          type: string
        postalCode:
          maxLength: 10
          minLength: 0
          type: string
        country:
          maxLength: 2
          minLength: 2
          type: string
        captureDelayHours:
          maximum: 7
          minimum: 0
          type: integer
          format: int32
        browserInfo:
          $ref: '#/components/schemas/BrowserInfo'
        wallet:
          $ref: '#/components/schemas/CreditCardWallet'
        is3ds:
          type: boolean
        isSandbox:
          type: boolean
        ipAddress:
          type: string
          nullable: true
      additionalProperties: false
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
    BrowserInfo:
      type: object
      properties:
        acceptHeader:
          type: string
          nullable: true
        colorDepth:
          type: string
          nullable: true
        ip:
          type: string
          nullable: true
        javaEnabled:
          type: boolean
        javascriptEnabled:
          type: boolean
        language:
          type: string
          nullable: true
        screenHeight:
          type: string
          nullable: true
        screenWidth:
          type: string
          nullable: true
        timezone:
          type: string
          nullable: true
        userAgent:
          type: string
          nullable: true
      additionalProperties: false
    CreditCardWallet:
      type: object
      properties:
        walletType:
          type: string
          nullable: true
        authenticationValue:
          type: string
          nullable: true
        xid:
          type: string
          nullable: true
        eci:
          type: string
          nullable: true
      additionalProperties: false

````