Skip to main content

Endpoint

GET https://pay.sandbox.yabetoopay.com/v1/payment-intents/{id}   # Sandbox
GET https://pay.api.yabetoopay.com/v1/payment-intents/{id}       # Production

Authentication

Use your secret key in the Authorization header:
Authorization: Bearer YOUR_SECRET_KEY

Path Parameters

ParameterTypeDescription
idstringThe payment intent ID

Example Request

curl https://pay.sandbox.yabetoopay.com/v1/payment-intents/pi_XdLeavDjiiaEx2y5nRz0 \
  -H "Authorization: Bearer YOUR_SECRET_KEY"

Response

200 OK

{
  "amount": 2000,
  "currency": "xaf",
  "label": "payment_intent",
  "id": "pi_XdLeavDjiiaEx2y5nRz0",
  "status": "succeeded",
  "client_secret": ""
}

Payment Intent Status

StatusDescription
requires_payment_methodWaiting for payment method
requires_confirmationWaiting for confirmation
processingPayment is being processed
succeededPayment completed successfully
failedPayment failed
canceledPayment was canceled

404 Not Found

{
  "message": "Payment intent not found"
}

401 Unauthorized

{
  "error": "Unauthorized"
}