AkashicPay
繁體中文
繁體中文
  • 簡介
    • 概述
    • 費用結構
    • 交易時間
    • 術語
  • 儀表板
    • 儀表板
    • 帳號
    • 轉帳
    • 設置
    • 開發者
  • SDK
    • 入門
    • 付款流程
    • SDK 與工具套件
    • 函式 (Functions)
      • getDepositAddress
      • getDepositUrl
      • 識別碼 (Identifier) & ReferenceId
      • 要求的金額和貨幣
      • 提款/提幣 (payout)
      • 提款/提幣回調 (Payout callback)
      • 存款回調 (Deposit callback)
      • getTransfers
      • getBalance
      • getTransactionDetails
      • 錯誤訊息 (Errors)
    • 支援貨幣
    • 回調安全性
  • 指南
    • 快速指南
    • 建議整合流程
Powered by GitBook
On this page

Was this helpful?

  1. SDK
  2. 函式 (Functions)

getDepositUrl

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

PreviousgetDepositAddressNext識別碼 (Identifier) & ReferenceId

Last updated 9 days ago

Was this helpful?

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

範例

取得 user123 的存款 URL

const { address, identifier } = await akashicPay.getDepositUrl(
  'user123'
);

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

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

// with referenceId
APDepositAddressResult depositAddress = akashicPay.getDepositUrl(
  'user123', 'order1'
);
var trxDepositAddress = await akashicPay.GetDepositUrlAsync("user123");

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

URL 檢視範例