Create Payment Link

Creates a hosted checkout session and returns redirectUrl for the customer.

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

Creates a hosted checkout session. Redirect the customer to redirectUrl to complete payment.

Flow

sequenceDiagram
    autonumber
    participant M as Your Server
    participant D as DigetPay API
    participant C as Customer
    participant P as Checkout Page

    M->>D: POST /payment/checkout/intiate
    D-->>M: 201 { id, redirectUrl }
    M->>C: Redirect to redirectUrl
    C->>P: Pay (card / Apple Pay)
    P->>C: Redirect successUrl / failureUrl

Try It

  1. Set x-api-key to your fin staging merchant key.
  2. Click Try It — defaults are pre-filled for fin staging.
  3. Open redirectUrl from the response.

customerPhone is required (e.g. 501223324).

Responses

{
  "success": {
    "status": 201,
    "body": {
      "id": "70471003-64ee-4ae7-a639-e607b45e890b",
      "redirectUrl": "https://fin-admin.digetpay.com/pay/checkout?sessionId=70471003-64ee-4ae7-a639-e607b45e890b"
    }
  }
}

Guide → · Integration Code — Hosted (PHP)

Body Params
Response

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