Skip to main content

ProcessPaymentResult

SolvaPay SDK


SolvaPay SDK / server/src / ProcessPaymentResult

Interface: ProcessPaymentResult

Defined in: packages/server/src/types/client.ts:48

Result from processing a payment intent

Properties

purchase?

optional purchase: PurchaseInfo

Defined in: packages/server/src/types/client.ts:51


status

status: "completed"

Defined in: packages/server/src/types/client.ts:52


subscription?

optional subscription: object

Defined in: packages/server/src/types/client.ts:50

agentName

agentName: string

Agent name

Example
AI Assistant

amount

amount: number

Amount paid in original currency (in cents)

Example
9900

cancellationReason?

optional cancellationReason: string

Reason for cancellation

Example
Customer request

cancelledAt?

optional cancelledAt: string

When subscription was cancelled

Example
2025-10-28T10:00:00Z

currency

currency: string

Currency code

Example
USD

endDate?

optional endDate: string

End date of subscription

Example
2025-11-27T10:00:00Z

planName

planName: string

Plan name

Example
Pro Plan

reference

reference: string

Subscription reference

Example
sub_abc123

startDate

startDate: string

Start date

Example
2025-10-27T10:00:00Z

status

status: string

Subscription status

Example
active

type

type: "subscription" | "purchase"

Defined in: packages/server/src/types/client.ts:49