Resmic
  • Resmic SDK
    • 👋Introduction
      • ðŸŠķOverview
    • ðŸ’ŦGetting Started
      • 🏃Installation
      • ðŸ‘ūUsage
        • CryptoPayment
        • For Starknet
        • For EVM
      • 📃Reference
    • 💁Support
      • ⛓ïļBlockchain
      • 🊙Tokens
      • 💰Wallets
    • 🊄Demo
      • Sample React app
    • 📰Whitepaper
      • Github
    • 🛂Contact
  • Resmic Pro
    • Introduction to Resmic Pro
    • Getting Started
    • API Authentications & Security
    • Payment Integration
    • Order Status
    • Transaction Details
    • Webhooks & Notifications
    • Supported Chains & Tokens
    • iFrame
    • Demo
      • Sample React app
    • Failed Transactions & Stuck Payments
    • Contact
  • Quick Payments
    • 🔗Quick Links
      • âœĻGetting Started
      • ðŸĪSharing Quick Links
      • 🚧Errors
    • Invocie
Powered by GitBook
On this page
  • Endpoint:
  • Sample Request
  • Sample Response
  1. Resmic Pro

Order Status

Endpoint elaborates on how you can check the Order Status of the payment.

This API is used to check the payment status: This endpoint retrieves the current payment status of a session. Use this to verify if a payment was successful, failed, or is still pending.

Endpoint:

curl --location 'https://api.resmic.com/api/v1/makepayment/payment-status?session_id=<SESSION_ID>
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'x-user-id: <YOUR_USER_ID>'

Sample Request

const axios = require('axios');

let session_id = ""// Add the session ID here.
let config = {
  method: 'get',
  url: `https://api.resmic.com/api/v1/makepayment/payment-status?session_id=${session_id}`,
  headers: { 
    'x-api-key': 'API_KEY', // Add the API_KEY here
    'x-user-id': 'USER_ID' // Add the user_id here.
  }
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

Sample Response

{
    "status": 200,
    "success": true,
    "message": "Session reterived",
    "data": {
        "session_id": "899e9dde-fda9-4386-9620-065756016805",
        "created_at_utc": "2025-02-21T23:00:13.633Z",
        "updated_at": "2025-02-22T04:31:08.132Z",
        "amount": "100",
        "payment_status": "Completed", // 
        "wallet_address": "0x056397760b973BfB921Bc10Be9DA5034B1e921d7", // Payment from address.
        "is_coupon_applied": false
    }
}

Possilbe Payment Status values (case sensitive)

  1. Completed

  2. Failed

  3. initiated (User initiated the payment but didn't completed.)

PreviousPayment IntegrationNextTransaction Details

Last updated 19 days ago