---
title: "Process payment intent after client-side confirmation"
method: POST
path: "/v1/sdk/payment-intents/{processorPaymentId}/process"
tags: ["Payment Intents"]
---

# Process payment intent after client-side confirmation

`POST /v1/sdk/payment-intents/{processorPaymentId}/process`

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.

## Path parameters

- `processorPaymentId` string, required

## Request body

- ProcessPaymentIntentDto
  - `customerRef` string, required
  - `planRef` string
  - `productRef` string

## Response `200`

Payment intent status with optional purchase enrichment on success

- union
  - ProcessPaymentSucceededRecurring
    - `purchase` PurchaseInfo, required
      - `amount` number, required — Amount in USD cents (normalised for aggregation)
      - `cancellationReason` string — Reason for cancellation
      - `cancelledAt` string — When purchase was cancelled
      - `currency` string, required — ISO 4217 currency code of the customer-facing charge
      - `endDate` string — End date of purchase
      - `exchangeRate` number — Exchange rate from original currency to USD
      - `originalAmount` number — Original amount in the payment currency (minor units)
      - `planRef` string — Plan reference from the plan snapshot, for reliable plan matching
      - `planSnapshot` object — Snapshot of the plan at time of purchase
      - `productName` string, required — Product name
      - `productRef` string — Product reference
      - `reference` string, required — Purchase reference
      - `startDate` string, required — Start date
      - `status` string, required — Purchase status
    - `status` 'succeeded', required
    - `type` 'recurring', required
  - ProcessPaymentSucceededOneTime
    - `oneTimePurchase` OneTimePurchaseInfo, required
      - `amount` number, required — Amount in USD cents (normalised for aggregation)
      - `completedAt` string, required — When the one-time purchase was completed
      - `currency` string, required — ISO 4217 currency code of the customer-facing charge
      - `productRef` string — Product reference
      - `reference` string, required — Purchase reference
    - `status` 'succeeded', required
    - `type` 'one-time', required
  - ProcessPaymentSucceededBare
    - `status` 'succeeded', required
  - ProcessPaymentProcessing
    - `status` 'processing', required
  - ProcessPaymentTimeout
    - `message` string — Detail message describing the timeout
    - `status` 'timeout', required
  - ProcessPaymentFailed
    - `status` 'failed', required
  - ProcessPaymentCancelled
    - `status` 'cancelled', required

## Other responses

- `400` — Payment not succeeded, invalid request, or forbidden

---

[API](https://skmtc.net/solvapay/apis/solvapay-rest-api.md) · [All operations](https://skmtc.net/solvapay/apis/solvapay-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/solvapay/solvapay-rest-api/versions/bbc2ff2bc849/schema)
