AkashicPay
繁體中文
繁體中文
  • 簡介
    • 概述
    • 費用結構
    • 交易時間
    • 術語
  • 指南
    • 快速指南
    • 建議整合流程
    • 密鑰對指南
    • 付款流程
    • 支援貨幣
  • 儀表板
    • 儀表板
    • 帳號
    • 轉帳
    • 設置
    • 開發者
  • SDK
    • SDK 入門
    • SDK 與工具套件
    • 函式 (Functions)
      • getDepositAddress
      • getDepositUrl
      • 識別碼 (Identifier) & ReferenceId
      • 要求的金額和貨幣 (Requested amount & currency)
      • 提款/提幣 (payout)
      • getTransfers
      • getBalance
      • getTransactionDetails
  • 參考資料
  • 錯誤訊息
  • SecureAPI
    • SecureAPI 入門
    • 函式 (Functions)
      • 取得存款地址
      • 存款 URL
      • 餘額
      • 交易資訊
      • 提幣/提款
      • 匯率
    • 參考資料
    • 錯誤處理
    • 更新日誌
  • 回調
    • 存款回調
    • 提款/提幣回調
    • 回調安全性
Powered by GitBook
On this page

Was this helpful?

  1. SDK
  2. 函式 (Functions)

getDepositUrl

取得 URL,其中會列出使用者的所有貨幣地址

給定一個使用者識別碼 (user-identifier),這個函式 (function) 會透過 AkashicChain 在所有網路建立錢包供使用者存入,並回調一個 URL 來顯示它們

範例

取得 user123 的存款 URL

const depositUrl = await akashicPay.getDepositUrl(
  'user123'
);

// with referenceId
const depositUrl = await akashicPay.getDepositUrl(
  'user123', 'order1'
);

// with receiveCurrencies
const depositUrl = await akashicPay.getDepositUrl(
  'user123', 'order1', [Currency.USDT]
);

// with requestedAmount and requestedCurrency
const { address, identifier } = await akashicPay.getDepositUrlWithRequestedValue(
  'user123', 'order1', Currency.USD, "1000"
);
$depositUrl = $akashicPay->getDepositUrl(
  'user123'
);

// with referenceId
$depositUrl = $akashicPay->getDepositUrl(
  'user123', 'order1'
);

// with receiveCurrencies
$depositUrl = $akashicPay->getDepositUrl(
  'user123', 'order1', array(CurrencySymbol::USDT)
);

// with requestedAmount and requestedCurrency
$depositAddress = $akashicPay->getDepositUrlWithRequestedValue(
  'user123', 'order1', Currency::USD, 1000
);
APDepositUrlResult depositAddress = akashicPay.getDepositUrl(
  'user123'
);

// with referenceId
APDepositUrlResult depositAddress = akashicPay.getDepositUrl(
  'user123', 'order1'
);

// with receiveCurrencies
APDepositUrlResult depositAddress = akashicPay.getDepositUrl(
  'user123', 'order1', {APCurrencySymbol.USDT}
);

// with requestedAmount and requestedCurrency
APDepositAddressResult depositAddress = akashicPay.getDepositUrlWithRequestedValue(
  'user123', 'order1', APCurrency.USD, 1000
);
var depositUrl = await akashicPay.GetDepositUrlAsync("user123");

// with referenceId
var depositUrl = await akashicPay.GetDepositUrlAsync("user123", "order1");

// with receiveCurrencies
var depositUrl = await akashicPay.GetDepositUrlAsync("user123", "order1", {APCurrencySymbol.USDT});

// with requestedAmount and requestedCurrency
var depositUrl = await akashicPay.GetDepositUrlWithRequestedValueAsync("user123", "order1", Currency.USD, 1000);

URL 檢視範例

PreviousgetDepositAddressNext識別碼 (Identifier) & ReferenceId

Last updated 4 days ago

Was this helpful?