Skip to content

Commit

Permalink
Merge pull request #301 from LedgerHQ/doc-queryParamsUpdate
Browse files Browse the repository at this point in the history
chore: update query params
  • Loading branch information
mstorozhenko-ledger authored Nov 1, 2024
2 parents 0e931e3 + 7065253 commit 001cc27
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pages/docs/ledger-live/exchange/card/providers-liveapp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
18 changes: 9 additions & 9 deletions pages/docs/ledger-live/exchange/sell/providers-liveapp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
```

<Callout type="info" emoji="👉">
Expand Down
2 changes: 1 addition & 1 deletion pages/docs/ledger-live/exchange/swap/providers-liveapp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion public/exchange/import/test-and-submit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<Steps>
### Test your LiveApp
Expand Down

0 comments on commit 001cc27

Please sign in to comment.