Overview
Check payment status in real-time using the payment reference. Essential for order processing, status polling, and payment verification.Automatic Environment Detection: This endpoint automatically checks both
production (SATIM) and sandbox transactions based on where the payment was
created.
Path Parameters
Payment reference code (format:
OCPL-XXXXXX-YYYY) Examples: -
OCPL-A1B2C3-D4E5 - OCPL-123456-7890This is the
paymentRef returned when you created the payment linkResponse
Indicates if the operation was successful
Payment status information
Response metadata
Status Values Explained
PENDING
PENDING
When you see this:
- Customer hasn’t started the payment process yet
- Payment is currently being processed by the bank
- Link was just created and not yet used
- Continue polling for status updates
- Display “Payment pending” to customer
- Don’t fulfill the order yet
CONFIRMED
CONFIRMED
When you see this: - Payment completed successfully - Funds will be
credited to your OneClick balance What to do: - Mark order as paid in your
system - Fulfill the order/provide service - Send confirmation to customer
FAILED
FAILED
When you see this:
- Payment was declined or failed
- Payment link expired (20 minutes)
- Customer cancelled the payment
- Mark order as failed/cancelled
- Create a new payment link if customer wants to retry
- Don’t fulfill the order
Link Expiration
Payment links expire 20 minutes after creation if no payment is initiated.
After expiration, the status will be
FAILED.
