ProcessPaymentResult
SolvaPay SDK / server/src / ProcessPaymentResult
Interface: ProcessPaymentResult
Defined in: packages/server/src/types/client.ts:48
Result from processing a payment intent
Properties
purchase?
optionalpurchase:PurchaseInfo
Defined in: packages/server/src/types/client.ts:51
status
status:
"completed"
Defined in: packages/server/src/types/client.ts:52
subscription?
optionalsubscription: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?
optionalcancellationReason:string
Reason for cancellation
Example
Customer request
cancelledAt?
optionalcancelledAt:string
When subscription was cancelled
Example
2025-10-28T10:00:00Z
currency
currency:
string
Currency code
Example
USD
endDate?
optionalendDate: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