Skip to main content
GET
/
payment
/
checkout
{
  "success": false,
  "error": {
    "status": 404,
    "code": "PAYMENT_NOT_FOUND",
    "message": "Payment not found"
  },
  "data": null
}
Get checkout information for a payment.
paymentId
string
required
Payment ID to get checkout info for
success
boolean
Indicates if the request was successful
data.id
string
Payment ID
data.status
string
Payment status
data.amountCrypto
string
Amount in cryptocurrency
data.crypto
string
Selected cryptocurrency
data.address
string
Cryptocurrency address
data.checkoutUrl
string
Checkout URL for customer
data.expiresAt
string
Payment expiration timestamp

Example Request

curl -X GET "https://api.transaction.gg/payment/checkout?paymentId=pay_abc123def456"

Example Response

{
  "success": true,
  "data": {
    "id": "pay_abc123def456",
    "status": "pending",
    "amountCrypto": "0.00012345",
    "crypto": "BTC",
    "address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
    "checkoutUrl": "https://checkout.transaction.gg/pay_abc123def456",
    "expiresAt": "2024-01-01T01:00:00Z"
  }
}

Error Responses

{
  "success": false,
  "error": {
    "status": 404,
    "code": "PAYMENT_NOT_FOUND",
    "message": "Payment not found"
  },
  "data": null
}