Efficient session management is essential to ensure smooth transactions and handle time-sensitive payment links in Modem Pay. You can retrieve specific sessions, list all sessions for a more comprehensive view, and manually expire sessions as needed.
Use the retrieve method to access detailed information about a single session by its unique session ID. This is particularly useful for checking the status, customer information, amount, and other details of a specific session.
This command will return the full session object, allowing you to view properties such as:
The list method provides a summary of all sessions, allowing you to monitor and manage multiple sessions at once. This feature is helpful for tracking recent payment activity, handling session statuses, and generating reports.
Pagination options are also available to limit the number of sessions retrieved per request and to navigate through large datasets.
If a session needs to be invalidated manually, perhaps due to a canceled order or an expired offer, you can expire it immediately. Once expired, the session’s payment link becomes unusable.
When a session is expired:
expired
.This action can’t be undone, ensuring that expired sessions remain securely inactive.
Efficient session management is essential to ensure smooth transactions and handle time-sensitive payment links in Modem Pay. You can retrieve specific sessions, list all sessions for a more comprehensive view, and manually expire sessions as needed.
Use the retrieve method to access detailed information about a single session by its unique session ID. This is particularly useful for checking the status, customer information, amount, and other details of a specific session.
This command will return the full session object, allowing you to view properties such as:
The list method provides a summary of all sessions, allowing you to monitor and manage multiple sessions at once. This feature is helpful for tracking recent payment activity, handling session statuses, and generating reports.
Pagination options are also available to limit the number of sessions retrieved per request and to navigate through large datasets.
If a session needs to be invalidated manually, perhaps due to a canceled order or an expired offer, you can expire it immediately. Once expired, the session’s payment link becomes unusable.
When a session is expired:
expired
.This action can’t be undone, ensuring that expired sessions remain securely inactive.