Txn.pro - API Documentation
Sandbox LoginChangelogStatus Page
  • Getting setup
    • Environments
    • Creating a Sandbox account
    • Back office user roles
    • Creating your API keys
    • Postman collection
  • API Basics
    • API specification
    • API status
    • Supported currencies
    • Date and time format
    • Authenticating the API
    • Webhooks
      • Verifying webhooks
      • Source IP addresses
      • Retrying schedule
    • Rate limits
  • Hosted pages
  • Accounts
    • Accounts concept
    • Listing accounts
    • Reading account
    • Listing account addresses
    • Creating account address
    • Listing account transactions
    • Reading account transaction
  • Exchange
    • Exchange concept
    • Reading exchange rates
    • Exchange webhooks
    • Creating quote
    • Confirming quote
    • Listing quotes
    • Reading quote
  • Invoices
    • Invoices concept
    • Invoice status flow
    • Invoices in cashier
    • Invoice limitations
    • Listing invoice currency pairs
    • Invoice webhooks
    • Creating invoice
    • Reading invoice
    • Listing invoices
    • Invoice refunds
  • Payouts
    • Payouts concept
    • Payout status flow
    • Payout limitations
    • Listing payout currency pairs
    • Validating addresses
    • Payout webhooks
    • Creating payout
    • Reading payout
    • Listing payouts
  • Mass Payouts
  • PAYMENT LINKS
    • Payment links concept
    • Creating payment link
    • Expiring payment link
    • Reading payment link
    • Listing payment links
  • CHANNELS
    • Channels concept
    • Channels deposit flow
    • Listing channel currency pairs
    • Channel webhooks
    • Creating channel
    • Reading channel
    • Updating channel
    • Listing channels
    • Listing channel deposits
    • Reading channel deposit
  • (BETA) Fiat Settlements
    • Important information
    • Bank withdrawal webhooks
    • Bank deposit webhooks
    • Listing bank accounts
    • Reading bank account
    • Previewing bank withdrawal
    • Creating bank withdrawal
    • Listing bank withdrawals
    • Reading bank withdrawal
    • Listing bank deposits
    • Reading bank deposit
Powered by GitBook
On this page
  • Example: Invoice Hosted Page
  • Customizing the Hosted Page Appearance
  • Example: Customized Hosted Page

Hosted pages

Txn provides hosted pages for invoices, channels, and payment links. The URL for each hosted page is returned in the hostedPageUrl parameter in API responses.

Example: Invoice Hosted Page

https://sandbox.txn.pro/redirect?invoice_id=1e331bac-ca3a-4480-9c66-ae2536f04b81&request_type=invoice_hosted_page&zone=ca

Customizing the Hosted Page Appearance

You can use the following URL parameters to control the appearance of the hosted page:

  1. showQrCode (true / false)

    • If true, the QR code is displayed by default, so end-users don’t need to click to expand it

    • By default, users must click a button to view the QR code

  2. hideLangSwitcher (true / false)

    • If true, the language switcher is hidden

    • By default, the language switcher is always visible

  3. lang (en, pt, fr, tr, es)

    • Specifies the language of the hosted page

    • By default, the platform detects the end-user's browser locale and applies the appropriate translation. If the locale isn't supported, English is used

    • en - English

    • pt - Portugal

    • fr - French

    • tr - Turkish

    • es - Spanish

  4. payByCard (true / false)

    1. If true, the "Pay by Card" button is available

    2. By default, the "Pay by Card" button is always unavailable

Example: Customized Hosted Page

https://sandbox.txn.pro/redirect?invoice_id=1e331bac-ca3a-4480-9c66-ae2536f04b81&request_type=invoice_hosted_page&zone=ca&showQrCode=true&hideLangSwitcher=on&lang=en&payByCard=true

PreviousRate limitsNextAccounts concept

Last updated 1 month ago