From 854163f331b31d2505a1649348ac590209ed838a Mon Sep 17 00:00:00 2001 From: mstorozhenko-ledger Date: Fri, 1 Nov 2024 15:47:13 +0000 Subject: [PATCH 1/2] chore: update query params --- .../exchange/sell/providers-liveapp.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx b/pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx index 296a2e04..a59b8073 100644 --- a/pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx +++ b/pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx @@ -48,18 +48,18 @@ The LiveApp needs to respond to a URL with some parameters. LiveApp URLs are use The LiveApp URL format is already fixed and will depend on the information you provided inside your [LiveApp manifest](../../../../docs/discover/wallet-api/appendix/manifest) (ex: `ledgerlive://discover/sellprovidername`). - * `account-id`: User’s selected account id, where the crypto he wants to sell is stored. - * `crypto-currency`: The crypto currency that the user wants to sell. It will contain the providerId value to identify the crypto. - * `fiat-currency`: The fiat currency that the user wants to be paid with. - * `crypto-amount`: The crypto amount that the user wants to sell. - * `payment-method`: The preferred payment method for the user. + * `accountId`: User’s selected account id, where the crypto he wants to sell is stored. + * `cryptoCurrency`: The crypto currency that the user wants to sell. It will contain the providerId value to identify the crypto. + * `fiatCurrency`: The fiat currency that the user wants to be paid with. + * `cryptoAmount`: The crypto amount that the user wants to sell. + * `paymentMethod`: The preferred payment method for the user. * `mode`: `buy` or `sell`. In this case always sell. Required you share the same base widget url for both usages. - * `bank-residency`: The bank residency of the user. - * `ledger-transaction-id`: id used by ledger to track transactions and their completion statuses. + * `bankResidency`: The bank residency of the user. + * `ledgerTransactionId`: id used by ledger to track transactions and their completion statuses. __Example__: ``` -https://sell.provider.widget.com?[account-id]=ua11-…&[crypto-currency]=BTC&[fiat-currency]=EUR&[crypto-amount]=0.04 +https://sell.provider.widget.com?[accountId]=ua11-…&[cryptoCurrency]=BTC&[fiatCurrency]=EUR&[cryptoAmount]=0.04 ``` From 706525313be5b7ab71429007c4ca5e46e8762e4e Mon Sep 17 00:00:00 2001 From: mstorozhenko-ledger Date: Fri, 1 Nov 2024 15:58:47 +0000 Subject: [PATCH 2/2] chore: fix links --- pages/docs/ledger-live/exchange/card/providers-liveapp.mdx | 2 +- pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx | 2 +- pages/docs/ledger-live/exchange/swap/providers-liveapp.mdx | 2 +- public/exchange/import/test-and-submit.mdx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/docs/ledger-live/exchange/card/providers-liveapp.mdx b/pages/docs/ledger-live/exchange/card/providers-liveapp.mdx index 8ea43658..ecf807c4 100644 --- a/pages/docs/ledger-live/exchange/card/providers-liveapp.mdx +++ b/pages/docs/ledger-live/exchange/card/providers-liveapp.mdx @@ -13,7 +13,7 @@ Your LiveApp must: ## Ledger Exchange Services Kit -To learn how to create (or embed if already existing) your user interface for the card, please follow the [Discover documentation](../../discover). +To learn how to create (or embed if already existing) your user interface for the card, please follow the [Discover documentation](../../discover/getting-started). Your LiveApp will interact with Ledger Live, through the [ExchangeSDK](https://github.com/LedgerHQ/exchange-sdk), with the corresponding method. diff --git a/pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx b/pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx index a59b8073..ebd6ddac 100644 --- a/pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx +++ b/pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx @@ -14,7 +14,7 @@ Your LiveApp must: ## Ledger Exchange Services Kit -To learn how to create (or embed if already existing) your user interface for the sell, please follow the [Discover documentation](../../discover). +To learn how to create (or embed if already existing) your user interface for the sell, please follow the [Discover documentation](../../discover/getting-started). Your LiveApp will interact with Ledger Live, through the [ExchangeSDK](https://github.com/LedgerHQ/exchange-sdk), with the corresponding method. diff --git a/pages/docs/ledger-live/exchange/swap/providers-liveapp.mdx b/pages/docs/ledger-live/exchange/swap/providers-liveapp.mdx index 9ca09b60..5f7a1c6e 100644 --- a/pages/docs/ledger-live/exchange/swap/providers-liveapp.mdx +++ b/pages/docs/ledger-live/exchange/swap/providers-liveapp.mdx @@ -14,7 +14,7 @@ Your LiveApp must: ## Ledger Exchange Services Kit -To learn how to create (or embed if already existing) your user interface for the swap, please follow the [Discover documentation](../../discover). +To learn how to create (or embed if already existing) your user interface for the swap, please follow the [Discover documentation](../../discover/getting-started). Your LiveApp will interact with Ledger Live, through the [ExchangeSDK](https://github.com/LedgerHQ/exchange-sdk), with the corresponding method. diff --git a/public/exchange/import/test-and-submit.mdx b/public/exchange/import/test-and-submit.mdx index 6eef9237..c7a6de7e 100644 --- a/public/exchange/import/test-and-submit.mdx +++ b/public/exchange/import/test-and-submit.mdx @@ -4,7 +4,7 @@ import { Steps } from "nextra/components"; The end-to-end testing process is a bit more complex than for the regular LiveApp found in the Discover section. -You will need to enable developer mode in Ledger Live. Please refer to the [Developer Mode](../../discover/developer-mode) article for more details. +You will need to enable developer mode in Ledger Live. Please refer to the [Developer Mode](../../discover/references/developer-mode) article for more details. ### Test your LiveApp