ProcessPaymentResult
SolvaPay SDK / server/src / ProcessPaymentResult
Interface: ProcessPaymentResult
Defined in: packages/server/src/types/client.ts:49
Result from processing a payment intent
Properties
oneTimePurchase?
optionaloneTimePurchase:OneTimePurchaseInfo
Defined in: packages/server/src/types/client.ts:52
purchase?
optionalpurchase:object
Defined in: packages/server/src/types/client.ts:51
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 purchase was cancelled
Example
2025-10-28T10:00:00Z
currency
currency:
string
Currency code
Example
USD
endDate?
optionalendDate:string
End date of purchase
Example
2025-11-27T10:00:00Z
planName
planName:
string
Plan name
Example
Pro Plan
productReference?
optionalproductReference: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