Dex3
Merchant DashboardHome
  • 👋Introduction
    • Dex3 API
    • Payment Gateway
    • Payout System
  • 🌟Getting Started
    • Create merchant
  • ⚙️Connect to API
    • Connect API
  • 🚩Merchant Status
    • Get Merchant Status
  • 🪙Payment Gateway
    • Create New Payment
      • Create Signature
    • Get Payment Status
    • Get Payment Data
    • Payment Success Webhook
      • Verify Webhook Signature
  • 🫴Payout System
    • Create New Payout
      • Create Signature
    • Get Payout Status
    • Get Payout Data
    • Payout Success Webhook
      • Verify Webhook Signature
    • Payout Contracts
Powered by GitBook
On this page
  • Endpoint
  • Headers
  • Example

Was this helpful?

  1. Payment Gateway

Get Payment Data

Use this method to get the payment data using the Payment ID.

Endpoint

GET https://api.dex3.io/api/v1/getpaymentdata/

A successful POST request typically returns a 200 OK or error.

Headers

Name
Value

Content-Type

application/json

merchant_public

YOUR MERCHANT PUBLIC

Example

{
  "state": true,
  "data": {
    "paymentData": {
      "payment_id": "EKKlnN7QXB5ynmqZTeriefGLgr4jq8",
      "order_id": "123",
      "productName": "Add Funds",
      "amount": 100,
      "chainId": 56,
      "tokenName": TOKEN NAME CHOSEN BY CLIENT,
      "settledTo": YOUR SETTLEMENT ADDRESS,
      "payer": ADDRESS OF THE PAYER,
      "finalAmount": AMOUNT IN TOKEN's DECIMALS,
      "status": "created",
      "hash": TRANSACTION HASH,
      "expiration": 1710140681,
      "webhook": "https://www.dex3.io/webhooksample",
      "created": 1710140558,
      "notes": "{\"user_id\": \"3\"}"
    }
  }
}
PreviousGet Payment StatusNextPayment Success Webhook

Last updated 1 year ago

Was this helpful?

🪙