Select the cryptocurrency for a payment request.
Cryptocurrency code (BTC, ETH, LTC, SOL)
Indicates if the request was successful
Payment status (pending, completed, expired)
Cryptocurrency address for payment
Payment expiration timestamp
Checkout URL for customer
Example Request
curl -X POST https://api.transaction.gg/payment/select-crypto \
-H "Content-Type: application/json" \
-d '{
"crypto": "BTC"
}'
Example Response
{
"success": true,
"data": {
"id": "pay_abc123def456",
"status": "pending",
"amountCrypto": "0.00012345",
"crypto": "BTC",
"address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
"expiresAt": "2024-01-01T01:00:00Z",
"checkoutUrl": "https://checkout.transaction.gg/pay_abc123def456"
}
}
Error Responses
{
"success": false,
"error": {
"status": 400,
"code": "VALIDATION_INVALID",
"message": "Invalid cryptocurrency code"
},
"data": null
}
{
"success": false,
"error": {
"status": 404,
"code": "PAYMENT_NOT_FOUND",
"message": "Payment not found"
},
"data": null
}