Embedded Transaction Status

Returns the current status of an Embedded (S2S) transaction. The path parameter is named transactionId, but its value is the trans_id from the Direct Sale response.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Returns the current status of an Embedded (S2S) transaction using the paymentId returned by the Direct Sale API.

📘

Use this endpoint to verify the latest payment status after a Direct Sale request, especially when the transaction is PENDING or required 3-D Secure authentication.

🚧

Hosted Checkout merchants: This endpoint is only for Embedded (S2S) integrations. Hosted Checkout integrations must use GET /payment/checkout/status?sessionId={id}.


Request

MethodGET
URLhttps://api.digetpay.com/v1/payment/s2s/transaction/{transactionId}
AuthHeader x-api-key (Test API Key or Live API Key, required)

Use the same API key mode (Test or Live) that created the transaction.

Path Parameters

ParameterRequiredDescription
transactionIdYesThe paymentId value from the Direct Sale response (also returned as trans_id), e.g. 07077294930390230372
❗️

Critical: The path parameter is named transactionId, but its value is the paymentId from the Direct Sale response, not the UUID in the response's transactionId field. Do not use a Hosted Checkout session ID.


Request example

curl -X GET "https://api.digetpay.com/v1/payment/s2s/transaction/07077294930390230372" \
  -H "x-api-key: YOUR_TEST_API_KEY"

Transaction flow

sequenceDiagram
    autonumber
    participant Merchant as Your Server
    participant API as DigetPay API
    participant Gateway as Payment Gateway

    Note over Merchant: Use after Direct Sale returns PENDING / REDIRECT (3DS)

    Merchant->>API: GET /payment/s2s/transaction/{paymentId}
    API->>Gateway: Retrieve latest transaction status
    Gateway-->>API: APPROVED / DECLINED / PENDING
    API-->>Merchant: status, transactionId, paymentId, card details

Responses

{
  "code": 200,
  "message": "Success",
  "errorCode": null,
  "data": {
    "transactionId": "58288e7a-33ad-4091-9716-20a9b0c3a088",
    "paymentId": "07077294930390230372",
    "order_id": "TEST-S2S-0001",
    "status": "PENDING",
    "amount": "0.11",
    "currency": "SAR",
    "paymentFlow": "DIRECT_S2S",
    "Card": {
      "Brand": "Mastercard",
      "Token": "",
      "Issuer": "TEST BANK",
      "Number": "512345xxxxxx0008",
      "PanType": "Card",
      "ExpiryYear": "39",
      "NameOnCard": "Ahmed Emad Abd-Alfatah",
      "ExpiryMonth": "01",
      "IsValidCard": null,
      "ProductName": "Mastercard",
      "FundingMethod": "credit",
      "Is3DSVerified": false,
      "IssuerCountry": "SAU"
    },
    "operationType": "PAY",
    "transactionType": "PURCHASE",
    "invoice": {
      "id": "7294930"
    }
  }
}

Response fields

FieldDescription
transactionIdDigetPay transaction ID (UUID)
paymentIdPayment ID from the processor
order_idYour orderId from the Direct Sale request
statusCurrent payment status (APPROVED, DECLINED, PENDING)
amountPayment amount
currencyPayment currency
paymentFlowIntegration flow. DIRECT_S2S for Embedded payments
operationTypeOperation, e.g. PAY
transactionTypeTransaction type, e.g. PURCHASE
CardMasked card details: number, expiry, brand, issuer, funding method
Card.TokenSaved card token, filled when the Direct Sale request used saveToken: "Y"
Card.Is3DSVerifiedtrue after 3-D Secure has been completed
invoice.idInvoice reference for the payment

Payment confirmed: Consider the transaction successful only when status is APPROVED.

📘

PENDING means the payment is not final, for example the customer has not completed 3-D Secure yet. Check this endpoint again after the customer returns to your successUrl or failureUrl, or after you receive a webhook. Webhooks and redirects are notifications only; fulfill the order only after this endpoint returns APPROVED.

🚧

Different IDs per integration: Embedded (S2S) uses the paymentId from Direct Sale with this endpoint. Hosted Checkout uses the session ID (id from Create Payment Link) with GET /payment/checkout/status?sessionId=.


Path Params
string
required

trans_id from the Direct Sale response

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json