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

# Process payment intent after client-side confirmation

> Processes a payment intent that has been confirmed on the client side. Polls the database for payment intent status to become succeeded. Returns the current status of the payment intent; on success, the response is enriched with the Purchase row created by the webhook handler.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/sdk/payment-intents/{processorPaymentId}/process
openapi: 3.0.0
info:
  contact: {}
  description: The SolvaPay REST API specification
  title: SolvaPay REST API
  version: '1.0'
servers: []
security: []
tags: []
paths:
  /v1/sdk/payment-intents/{processorPaymentId}/process:
    post:
      tags:
        - Payment Intents
      summary: Process payment intent after client-side confirmation
      description: >-
        Processes a payment intent that has been confirmed on the client side.
        Polls the database for payment intent status to become succeeded.
        Returns the current status of the payment intent; on success, the
        response is enriched with the Purchase row created by the webhook
        handler.
      operationId: PaymentIntentSdkController_processPaymentIntent
      parameters:
        - description: Payment processor ID returned from createPaymentIntent
          in: path
          name: processorPaymentId
          required: true
          schema:
            example: pi_1a2b3c4d5e6f7g8h
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProcessPaymentIntentDto'
        description: Payment processing data
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                discriminator:
                  propertyName: status
                oneOf:
                  - $ref: '#/components/schemas/ProcessPaymentSucceededRecurring'
                  - $ref: '#/components/schemas/ProcessPaymentSucceededOneTime'
                  - $ref: '#/components/schemas/ProcessPaymentSucceededBare'
                  - $ref: '#/components/schemas/ProcessPaymentProcessing'
                  - $ref: '#/components/schemas/ProcessPaymentTimeout'
                  - $ref: '#/components/schemas/ProcessPaymentFailed'
                  - $ref: '#/components/schemas/ProcessPaymentCancelled'
          description: Payment intent status with optional purchase enrichment on success
        '400':
          content:
            application/json:
              schema:
                example:
                  error: Bad Request
                  message: 'Payment not succeeded. Status: requires_payment_method'
                  statusCode: 400
          description: Payment not succeeded, invalid request, or forbidden
      security:
        - SecretKey: []
components:
  schemas:
    ProcessPaymentIntentDto:
      properties:
        customerRef:
          maxLength: 20
          minLength: 1
          type: string
        planRef:
          maxLength: 20
          type: string
        productRef:
          maxLength: 20
          minLength: 1
          type: string
      required:
        - customerRef
      type: object
    ProcessPaymentSucceededRecurring:
      properties:
        purchase:
          $ref: '#/components/schemas/PurchaseInfo'
        status:
          enum:
            - succeeded
          example: succeeded
          type: string
        type:
          enum:
            - recurring
          example: recurring
          type: string
      required:
        - status
        - type
        - purchase
      type: object
    ProcessPaymentSucceededOneTime:
      properties:
        oneTimePurchase:
          $ref: '#/components/schemas/OneTimePurchaseInfo'
        status:
          enum:
            - succeeded
          example: succeeded
          type: string
        type:
          enum:
            - one-time
          example: one-time
          type: string
      required:
        - status
        - type
        - oneTimePurchase
      type: object
    ProcessPaymentSucceededBare:
      properties:
        status:
          enum:
            - succeeded
          example: succeeded
          type: string
      required:
        - status
      type: object
    ProcessPaymentProcessing:
      properties:
        status:
          enum:
            - processing
          example: processing
          type: string
      required:
        - status
      type: object
    ProcessPaymentTimeout:
      properties:
        message:
          description: Detail message describing the timeout
          type: string
        status:
          enum:
            - timeout
          example: timeout
          type: string
      required:
        - status
      type: object
    ProcessPaymentFailed:
      properties:
        status:
          enum:
            - failed
          example: failed
          type: string
      required:
        - status
      type: object
    ProcessPaymentCancelled:
      properties:
        status:
          enum:
            - cancelled
          example: cancelled
          type: string
      required:
        - status
      type: object
    PurchaseInfo:
      properties:
        amount:
          description: Amount in USD cents (normalised for aggregation)
          example: 9900
          type: number
        cancellationReason:
          description: Reason for cancellation
          example: Customer request
          type: string
        cancelledAt:
          description: When purchase was cancelled
          example: '2025-10-28T10:00:00Z'
          type: string
        currency:
          description: ISO 4217 currency code of the customer-facing charge
          example: GBP
          type: string
        endDate:
          description: End date of purchase
          example: '2025-11-27T10:00:00Z'
          type: string
        exchangeRate:
          description: Exchange rate from original currency to USD
          example: 1.32
          type: number
        originalAmount:
          description: Original amount in the payment currency (minor units)
          example: 7500
          type: number
        planRef:
          description: Plan reference from the plan snapshot, for reliable plan matching
          example: pln_abc123
          type: string
        planSnapshot:
          description: Snapshot of the plan at time of purchase
          type: object
        productName:
          description: Product name
          example: API Gateway Manager
          type: string
        productRef:
          description: Product reference
          example: prd_abc123
          type: string
        reference:
          description: Purchase reference
          example: pur_1A2B3C4D
          type: string
        startDate:
          description: Start date
          example: '2025-10-27T10:00:00Z'
          type: string
        status:
          description: Purchase status
          example: active
          type: string
      required:
        - reference
        - productName
        - status
        - startDate
        - amount
        - currency
      type: object
    OneTimePurchaseInfo:
      properties:
        amount:
          description: Amount in USD cents (normalised for aggregation)
          example: 9900
          type: number
        completedAt:
          description: When the one-time purchase was completed
          example: '2025-10-27T10:00:00Z'
          type: string
        currency:
          description: ISO 4217 currency code of the customer-facing charge
          example: USD
          type: string
        productRef:
          description: Product reference
          example: prd_abc123
          type: string
        reference:
          description: Purchase reference
          example: pur_1A2B3C4D
          type: string
      required:
        - reference
        - amount
        - currency
        - completedAt
      type: object
  securitySchemes:
    SecretKey:
      bearerFormat: JWT
      description: >-
        Provider secret API key (sk_live_… / sk_test_…) supplied as a Bearer
        token.
      scheme: bearer
      type: http

````