> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequence.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# クレジットカードによるオンランプ

> Sequenceインフラストラクチャスタックを用いたweb3ゲーム向けUnreal SDK概要のドキュメントです。

ゲーム内でユーザーが暗号資産で支払いできるようにしたい場合、Transakとの連携が非常に便利です。
Transakは、ユーザーが使いやすいウェブインターフェースを通じて、クレジットカードで様々なブロックチェーン上の暗号資産を購入できるサービスです。Transakの詳細は[こちら](https://transak.com/)をご覧ください。

## オンランプURLの生成

ユーザーのTransakオンランプ用リンクを生成します。

<Tabs>
  <Tab title="ブループリント">
    <Frame caption="Pay Onramp Link">
      <img src="https://mintcdn.com/sequence-0fb8d9e6/jCmUvzGpoEMBvubT/images/unreal/pay_onramp_link.png?fit=max&auto=format&n=jCmUvzGpoEMBvubT&q=85&s=7c64c58154045b740eea749f6e9f92aa" width="2688" height="972" data-path="images/unreal/pay_onramp_link.png" />
    </Frame>
  </Tab>

  <Tab title="C++">
    ```cpp theme={null}
    UTransakOnRamp* Transak = UTransakOnRamp::Init("UserWalletAddress");
    FString OnRampLink = Transak->GetTransakLink("USD", "100", "BTC", "network1,network2", false);
    // You can tailor the user experience by providing different default values for the parameters.
    ```
  </Tab>
</Tabs>

<Accordion title="パラメータ">
  **ウォレットアドレス（FString）**

  購入した暗号資産を受け取るユーザーのアドレス。

  **法定通貨（FString）**

  オンランプモーダルで表示されるデフォルトの法定通貨。

  **法定通貨額（FString）**

  オンランプモーダルで表示されるデフォルトの法定通貨額。

  **暗号通貨（FString）**

  ユーザーが購入できる暗号通貨。

  **ネットワーク（FString）**

  ユーザーが選択できるネットワークのリスト。カンマ区切りで指定します。例：'ethereum, mainnet'。

  **ウォレットアドレスフォームの無効化（ブール値）**

  ユーザーがウォレットアドレスを編集できるようにするには、この値を'false'に設定してください。
</Accordion>

<Accordion title="返却型">
  **返却型（FString）**

  WebViewや外部Webブラウザで開くためのオンランプリンク。
</Accordion>

## オンランプURLを開く

ユーザーのTransakオンランプ用リンクを生成するには：

<Tabs>
  <Tab title="ブループリント">
    <Frame caption="Pay Open Onramp">
      <img src="https://mintcdn.com/sequence-0fb8d9e6/jCmUvzGpoEMBvubT/images/unreal/pay_open_onramp.png?fit=max&auto=format&n=jCmUvzGpoEMBvubT&q=85&s=430868019b89354e44c90dff249f1c8d" width="2910" height="996" data-path="images/unreal/pay_open_onramp.png" />
    </Frame>
  </Tab>

  <Tab title="C++">
    ```cpp theme={null}
    UTransakOnRamp* Transak = UTransakOnRamp::Init("UserWalletAddress");
    Transak->OpenTransakLink("USD", "100", "BTC", "network1,network2", false);
    // This will automatically open the generated Transak On-Ramp link in the default web browser.
    ```
  </Tab>
</Tabs>

<Accordion title="パラメータ">
  **ウォレットアドレス（FString）**

  購入した暗号資産を受け取るユーザーのアドレス。

  **法定通貨（FString）**

  オンランプモーダルで表示されるデフォルトの法定通貨。

  **法定通貨額（FString）**

  オンランプモーダルで表示されるデフォルトの法定通貨額。

  **暗号通貨（FString）**

  ユーザーが購入できる暗号通貨。

  **ネットワーク（FString）**

  ユーザーが選択できるネットワークのリスト。カンマ区切りで指定します。例：'ethereum, mainnet'。

  **ウォレットアドレスフォームの無効化（ブール値）**

  ユーザーがウォレットアドレスを編集できるようにするには、この値を'false'に設定してください。
</Accordion>

## 対応国の取得

Transakが対応している国やサポート内容を確認するには、`GetSupportedCountries` メソッドを使用してください。

<Tabs>
  <Tab title="ブループリント">
    <Frame caption="Pay Get Supported Countries">
      <img src="https://mintcdn.com/sequence-0fb8d9e6/jCmUvzGpoEMBvubT/images/unreal/pay_get_supported_countries.png?fit=max&auto=format&n=jCmUvzGpoEMBvubT&q=85&s=550a2cb3eac3cbb688a3535fe5376dda" width="2608" height="1102" data-path="images/unreal/pay_get_supported_countries.png" />
    </Frame>
  </Tab>

  <Tab title="C++">
    ```cpp theme={null}
    Transak->GetSupportedCountries(
        [](TArray<FSupportedCountry> SupportedCountries) {
        for (const FSupportedCountry& Country : SupportedCountries) {
        UE_LOG(LogTemp, Log, TEXT("Country: %s"), *Country.CountryName);
    }
    },
        [](FSequenceError Error) {
            UE_LOG(LogTemp, Error, TEXT("Encountered error fetching supported countries from Transak: %s"), *Error.ErrorMessage);
        }
    );
    ```
  </Tab>
</Tabs>

<Accordion title="返却型">
  **対応国（FSupportedCountryの配列）**

  各国の名称や通貨コードなどの情報を含むオブジェクトのリスト。
</Accordion>
