Skip to main content

ProcessPaymentResult

SolvaPay SDK v1.0.0


SolvaPay SDK / server/src / ProcessPaymentResult

Interface: ProcessPaymentResult

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

Result from processing a payment intent

Properties

oneTimePurchase?

optional oneTimePurchase: OneTimePurchaseInfo

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


purchase?

optional purchase: object

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

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 purchase was cancelled

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

currency

currency: string

Currency code

Example
USD

endDate?

optional endDate: string

End date of purchase

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

planName

planName: string

Plan name

Example
Pro Plan

productReference?

optional productReference: string

Product reference

Example
prd_abc123

reference

reference: string

Purchase reference

Example
sub_abc123

startDate

startDate: string

Start date

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

status

status: string

Purchase status

Example
active

status

status: "completed"

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


type

type: "recurring" | "one-time"

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