---
title: Coming from v1 & v2
description: Every btcdirect(...) call of the v1 & v2 widget, and what it is on the v3 element.
---

Everything the v1 & v2 widget does, the v3 element does too. What changes is
the shape: one element configured by attributes instead of a script configured
by method calls. Your v1 & v2 integration keeps working as it is; move when it
suits you.

## The script and its bundles

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `fiat-to-coin bundle` | <btcdirect-journey> | optional | With subjects offer_fiat_to_coin and onboarding. |
| `coin-to-fiat bundle` | <btcdirect-journey> | optional | With subjects offer_coin_to_fiat and onboarding. |
| `onboarding bundle` | <btcdirect-journey> | optional | With subjects onboarding. |
| `transaction-history bundle` | <btcdirect-transactions> | optional | See Transactions and recurring buys. |
| `dollar-cost-average bundle` | <btcdirect-savings> | optional | See Transactions and recurring buys. |

## init options

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `token` | api-key | optional | Same value. |
| `locale` | locale | optional | The language is what counts: nl-NL and nl both give Dutch. |
| `theme` | theme | optional | Same values. |
| `selector` | — | optional | Not needed: you place the element where you want it. |
| `userIdentifier` | user-identifier | optional | Same value. |
| `returnUrl` | return-url | optional | Same value. |
| `partnerOrderIdentifier` | partner-order-identifier | optional | Same value. |
| `walletConfirmationRequired` | wallet-confirmation-required | optional | Same value. |

## Calls before the widget loads

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `currencies` | currency, fiat-currency | optional | crypto becomes currency, fiat becomes fiat-currency. |
| `order` | fiat-amount, crypto-amount | optional | Whichever of the two the call named. |
| `payment-method` | payment-method | optional | Same value. |
| `lock-cryptocurrency` | fixed-currency | optional | Set to true. |
| `wallet-addresses` | wallets | optional | A property rather than an attribute, holding the same list: currency, address, memo, label and your id. |
| `wallet-address-selected` | wallet-address, source-wallet | optional | wallet-address on a buy, source-wallet on a sell. |
| `partner-order-identifier` | partner-order-identifier | optional | Same value. |
| `attempt-direct-confirm` | direct-confirm | optional | Set to true. |
| `include-dca` | <btcdirect-savings> | optional | Place the recurring-buy element beside the trading one. |
| `set-parameters / baseCurrency, quoteCurrency` | currency, fiat-currency | optional | Same values. |
| `quoteCurrencyAmount` | fiat-amount | optional | As a decimal string. |
| `baseCurrencyAmount` | crypto-amount | optional | As a decimal string. |
| `walletAddress, walletAddressTag` | wallet-address, wallet-memo | optional | Same values. |
| `fixedAmount, fixedCurrency, fixedPaymentMethod` | fixed-amount, fixed-currency, fixed-payment-method | optional | true or false. |
| `showWalletAddress` | hide-wallet-address | optional | The opposite way round: showWalletAddress false is hide-wallet-address true. |
| `returnUrl, partnerOrderIdentifier` | return-url, partner-order-identifier | optional | Same values. |

## Calls while the customer uses it

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `wallet-address-confirmation` | confirmWalletAddress(address) | optional | See Methods. |
| `wallet-address-confirmation-canceled` | cancelWalletAddress() | optional | See Methods. |
| `transaction-id-confirmation` | confirmSellTransaction(orderId, transactionId) | optional | Now also tells you whether it was accepted. |
| `coin-to-fiat-order-canceled` | cancelSellTransaction() | optional | See Methods. |
| `locale` | locale | optional | Set the attribute; it takes effect at once. |
| `logout` | signOut() | optional | See Methods. |

## Events

The v3 events are dispatched on the element instead of on `window`. Every v1 & v2
event name below starts with `btcdirect-embeddable-`, left out for space.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `fiat-to-coin-order-confirmed` | btcdirect:order-created | optional | amount is a decimal string and currency a ticker, where v1 & v2 sent a number and iso:EUR. |
| `coin-to-fiat-order-requested` | btcdirect:sell-transaction-requested | optional | amount is a decimal string. |
| `wallet-address-confirmation-requested` | btcdirect:wallet-confirmation-requested | optional | Same detail. |
| `registration-started` | btcdirect:registration-started | optional | No detail. |
| `registration-completed` | btcdirect:onboarding-complete | optional | No detail. |
| `user-signed-in` | btcdirect:signed-in | optional | No detail. |
| `user-identified` | btcdirect:identified | optional | No detail. |
| `user-signed-out` | btcdirect:signed-out | optional | No detail. |
