Get
Overview
The get method retrieves the current status of a payment from the payment processor. Use this to synchronize your system's payment state with the processor's actual state, especially useful for handling asynchronous status updates.
Business Use Case: A webhook notification was missed or delayed. Your system shows a payment as PENDING, but you need to verify its actual status with the processor before fulfilling the order.
Purpose
Why use get?
Webhook fallback
Poll when webhooks fail or are delayed
Reconciliation
Sync payment states with internal systems
Customer service
Verify payment status for support inquiries
Before fulfillment
Confirm payment succeeded before shipping
Key outcomes:
Current payment status from processor
Synchronized state between systems
Accurate payment information
Request Fields
merchant_transaction_id
string
Yes
Your unique transaction reference
connector_transaction_id
string
Yes*
Connector's transaction ID (*one of merchant or connector ID required)
Response Fields
merchant_transaction_id
string
Your transaction reference
connector_transaction_id
string
Connector's transaction ID
status
PaymentStatus
Current status: AUTHORIZED, CAPTURED, FAILED, etc.
amount
Money
Payment amount
error
ErrorInfo
Error details if status is FAILED
status_code
int
HTTP-style status code (200, 404, etc.)
Example
SDK Setup
Request
Response
Common Patterns
Polling for Status Updates
Status Values
AUTHORIZED
Funds reserved, awaiting capture
CAPTURED
Payment completed, funds transferred
FAILED
Payment failed, check error details
VOIDED
Authorization was cancelled
REFUNDED
Payment was refunded
Error Handling
404
Payment not found
Verify transaction ID
400
Invalid request
Check required fields
Next Steps
Last updated
Was this helpful?

