Off-session payment resource.
Attributes
- idstring
ID of the OSP.
- objectstring, value is "v2.payments.off_session_payment"
String representing the object’s type. Objects of the same type share the same value of the object field.
- amount_
requestedobject The amount you requested to be collected on the OSP upon creation.
- cadenceenum
The frequency of the underlying payment that this OSP represents.
Possible enum valuesrecurringIndicates a transaction occurring on a regular interval.
unscheduledIndicates a transaction occurring at irregular periods.
- compartment_
idstring ID of owning compartment.
- createdtimestamp
Timestamp of creation.
- customerstring
Customer owning the supplied payment method.
- failure_
reasonnullable enum Reason why the OSP failed.
Possible enum valuesrejected_by_ partner OSP failed because the payment partner returned a terminal failure.
retries_exhausted OSP failed because we ran out of retry attempts.
- last_
authorization_ attempt_ errornullable string Last error returned by the financial partner for a failed authorization.
- latest_
payment_ attempt_ recordnullable string Payment attempt record for the latest attempt, if one exists.
- livemodeboolean
True if the txn is livemode, false otherwise.
- metadatamap
Metadata you provided.
- on_
behalf_ ofnullable string OBO, same as on the PI.
- payment_
methodstring ID of payment method.
- payment_
recordnullable string Payment record associated with the OSP. consistent across attempts.
- retry_
detailsobject Details about the OSP retries.
- statement_
descriptornullable string Statement descriptor you provided.
- statement_
descriptor_ suffixnullable string Statement descriptor suffix you provided, similar to that on the PI.
- statusenum
Status of the OSP.
Possible enum valuescanceledUser canceled the OSP.
failedOSP is terminally failed.
pendingOSP has not yet been attempted.
pending_retry OSP failed a previous attempt and will be retried automatically.
processingOSP is currently processing an attempt. Do not operate on it.
requires_capture OSP is awaiting capture.
succeededOSP successfully moved money.
- test_
clocknullable string Test clock to be used to advance the retry attempts.
- transfer_
datanullable object Instructions for the transfer to be made with this OSP after successful money movement.
{ "amount_requested": { "value": 2000, "currency": "usd" }, "cadence": "recurring", "compartment_id": "wksp_test_6OdsB30MSQB61rhH1uYqVKa", "created": "2025-01-01T00:00:00.000Z", "customer": "cus_SJjFsJvGPQKfH1", "failure_reason": null, "id": "osp_test_6pO5OrRN03IzV8rd3BaY", "last_authorization_attempt_error": null, "latest_payment_attempt_record": "par_test_65ScpVhNz9xBDZWOi8n41LUaWUrHDArR0K", "livemode": false, "metadata": {}, "object": "v2.payments.off_session_payment", "on_behalf_of": null, "payment_method": "pm_1RP6TAG7mvlzf7RNfspLoGQ9", "payment_record": "pr_test_65ScpUdmQCOf291sX8n41LUaWUrHDArBhg", "retry_details": { "attempts": 1, "retry_strategy": "smart" }, "statement_descriptor": null, "statement_descriptor_suffix": null, "status": "succeeded", "test_clock": null, "transfer_data": null}This is a list of all public thin events we currently send for updates to OffSessionPayment, which are continually evolving and expanding. The payload of thin events is unversioned. During processing, you must fetch the versioned event from the API or fetch the resource’s current state.