AkashicPay
English
English
  • Introduction
    • Overview
    • Fee Structure
    • Transaction Times
    • Terminology
  • Dashboard
    • Dashboard
    • Account
    • Transfer
    • Settings
    • Developers
  • SDK
    • Getting Started
    • Payment Flow
    • SDKs & Toolkits
    • Functions
      • getDepositAddress
      • getDepositUrl
      • Identifier & ReferenceId
      • Requested amount & currency
      • payout
      • Payout callback
      • Deposit callback
      • getTransfers
      • getBalance
      • getTransactionDetails
      • Errors
    • Supported Currencies
  • Secure Callback Endpoint
  • Guides
    • Quick Guide
    • Recommended integration flow
Powered by GitBook
On this page

Was this helpful?

  1. SDK
  2. Functions

getDepositUrl

Get a URL with deposit-addresses for all possible networks for a given identifier

PreviousgetDepositAddressNextIdentifier & ReferenceId

Last updated 2 days ago

Was this helpful?

Given a user-identifier, this function will create wallets on all supported networks via AkashicChain for the user to deposit into, and return a URL to display them

  • If you want to track an individual deposit made to any of the generated address, include

  • If the URL should only display a select choice of currencies, include them in a list as receiveCurrencies

    • If you want to change the type of currencies at a later time, just re-generate the URL via the SDK using the same parameters (but different receiveCurrencies ).

  • If you want precisely specify the amount that should be deposited for tracking purposes, perhaps in a different currency than the deposit will be made in (even fiat), include requestedAmount and requestedCurrency . See more

Example

Get deposit URL for user123

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);

Example deposit URL/QR code view for end-client

referenceId
here