FAQ
SDK Issuance & Environment Setup
QWhen will the SDK be issued?
The SDK will be issued within 3 business days from the date of submitting the SDK T&C.The
clientId and clientSecret will be sent to your registered email. Join UsQDo we need to develop all three versions (MINI App, LINE Login LIFF, Web)?
No, you do not need to develop all three versions.Depending on your Unifi Apps service strategy, you may choose one of the onboarding combinations listed below.Note: The LINE MINI App can only be onboarded by a Japanese corporation or a sole proprietor residing in Japan, and it may only provide service to users in Japan.Available Version Combinations • LINE MINI App & LINE Login LIFF & Web • LINE MINI App & Web • LINE Login LIFF & Web • LINE MINI App or Web (Single Type)
QDo we need to configure
chainId for the SDK?Yes. The
chainId is used to distinguish between the testnet and mainnet environments.By default, it is set to testnet(chainId: 1001).During development, please use the testnet to test wallet integration and payment flows.For real payment testing or official launch, you must switch to the mainnet(chainId: 8217).QWhere can I get updates about SDK version changes?
SDK version updates are announced through the official Telegram channel.Join the official Telegram channelOnce you join, you'll receive the latest updates and announcements related to the SDK.
QCan I integrate the Unifi Apps SDK with Unity or Cocos engine?
Yes, you can. By porting your Unity or Cocos project to WebGL, you can integrate it as a web application using the Unifi Apps SDK.For detailed instructions, please refer to the integration guide.Unifi Apps Demo
QDo you provide sample code?
Sample code is provided in the following document. • Sample code by method: https://unifiapps-demo.unifi.me • Full integration sample code: https://github.com/techreadiness/unifi-apps-starter
Wallet Provider
QWhy does an "Invalid Origin" error occur and wallet connection fail?
The SDK only works properly on domains registered in the whitelist.Please share your test domain via the Tech Support Channel or email, and we will assist you in registering it to the domain whitelist.
QWhy is the wallet connection window not opening?
If
DappPortalSDK.init() is repeatedly called on every request in the Web/LINE version, it may cause malfunction. Therefore, we strongly recommend calling DappPortalSDK.init() only once during app startup and managing it as a singleton instance.In addition, for the LINE version, make sure to call DappPortalSDK.init() after liff.init() has been successfully initialized.QWhy does OKX Wallet fail to connect or require re-entry to the Unifi Apps on certain devices when using
kaia_requestAccounts and personalSign?This issue is typically caused by timing conflicts during the signature step after wallet connection. To ensure a more stable experience, we recommend using
kaia_connectAndSign instead.QHow can I persist the Wallet Connect session when re-entering or refreshing the Unifi Apps after wallet connection?
First, call
kaia_accounts to check if there is an existing connected wallet.- If a connected wallet is found, you can use that wallet information directly.
- If no connected wallet is found, proceed with wallet reconnection using
kaia_requestAccountsorkaia_connectAndSign.
QWhy is it necessary to implement
disconnectWallet()?You need to implement
disconnectWallet() in the following cases:- When the user has lost the password for the previously connected wallet,
- When the wallet connected via wallet.dappportal.io differs from the one connected in the Unifi Apps,
- Or when the user wants to switch to a different wallet.
disconnectWallet() allows users to disconnect the current wallet and connect a new one.QCan I provide external wallets such as MetaMask instead of using the Unifi Apps SDK wallet integration?
No, it is not allowed.To launch a Unifi Apps, you must use the wallet integration method provided by the Unifi Apps SDK. External wallet integrations such as MetaMask are not supported.
QHow are user accounts identified?
In all three versions — LINE MINI App, LINE Login LIFF, and Web — user accounts should be distinguished by their wallet address.However, in the LINE MINI App and LINE Login LIFF versions, users can enter the Unifi Apps without connecting a wallet.In such cases, you should temporarily create an account based on the user's LINE ID upon first entry, and map the Wallet Address to that account once the wallet connection is completed.
QShould accounts be compatible across LINE MINI App, LINE Login LIFF, and Web versions?
Yes.All three versions — LINE MINI App, LINE Login LIFF, and Web — support wallet types such as LINE Wallet, OKX Wallet, and Bitget Wallet.If a user logs in with the same wallet address in multiple versions, we recommend maintaining account compatibility to ensure a seamless user experience and consistent login and asset data across all environments.
QCan I retrieve LINE ID or profile info via LINE Login in the Web version?
No, the Web version does not support LINE Login. If implemented, it must be removed.The Web version is intended for non-LINE users, including PC users, and should not include features that require LINE authentication.LINE-related features should be provided only in the LINE MINI App and LINE Login LIFF versions.
QIs there a way to distinguish between LINE MINI App, LINE Login LIFF, and Web environments?
YesYou can use
liff.isInClient() to detect whether the user is inside a LINE environment.• If liff.isInClient() returns true: The user is in a LINE environment — either LINE MINI App or LINE Login LIFF. In this case, you must call:liff.init()- Then
DappPortalSDK.init()
liff.isInClient() returns false: The user is in a Web browser environment. In this case, only call:DappPortalSDK.init()
QWhy is Bitget Wallet not shown in the wallet selection list?
To display Bitget Wallet in the wallet list, you must register a
projectId.Please follow the guide documentation to create a projectId, then submit it through the Tech Support channel for registration.QWhat causes unknown errors when signing a transaction with a connected wallet?
This may occur if the Wallet Address requesting the signature differs from the actual signing Wallet Address.Please check that the Wallet Address connected via:is the same Wallet Address being used for signing.
Payment Provider
QDo we need to support LINE IAP, Crypto, and Stripe payments?
The supported payment methods vary depending on the onboarding version.
- LINE MINI App: Only LINE IAP is supported, as it must comply with App Store policies.
LINE IAP is implemented with the LIFF SDK (
liff.iap.*), not the PaymentProvider — see LINE's Integrate the in-app purchase feature guide. - LINE Login LIFF / Web: Both Crypto and Stripe payments are supported.
QWhy does an error occur during payment testing?
Please first check whether the parameters you provided match the example request code in the documentation. Even if the codes seem correct, errors may still occur during testing. If the issue persists, please contact the Tech Support channel for assistance.
QWhat are
lockUrl and unlockUrl?These are useful features when selling products with limited stock. They temporarily "lock" the quantity while a user is attempting to purchase the product, preventing other users from buying the same item simultaneously. This mechanism helps avoid duplicate purchases during the payment process and enables more accurate inventory management.
If the product has no quantity limit, set both
lockUrl and unlockUrl to null.QCrypto payment works, but why does Stripe payment fail? (An error code 500 is returned when
startPayment() is called)This usually happens when the
imageUrl parameter is invalid or not accessible from outside.
Please make sure the product image URL is valid and publicly accessible.QWhy isn't the webhook being received?
The
paymentStatusChangeCallbackUrl must be accessible over the public network.
You should either:- Make the URL publicly accessible, or
- Whitelist the Unifi server IPs.
QWhy does
createPayment succeed but startPayment return an error? (An error code 400 is returned when startPayment() is called)This indicates that something went wrong during the
startPayment phase. Please check the paymentId and the error code used in the test. For root cause analysis and further assistance, share the details via the Tech Support channel.QWhat causes an "Internal JSON-RPC error" or a blank payment screen to appear?
This issue typically occurs when the configured chainId and testMode values do not match.
- Testnet:
chainId: 1001,testMode: true - Mainnet:
chainId: 8217,testMode: false
QHow can I perform real payment testing?
Real payment testing is only available after your settlement information has been updated. This update is completed after your team submits the Due Diligence (DD) form. Once your launch schedule is confirmed, the Kaia Wave team will request your DD submission. In general, real payment testing becomes available three business days before the official launch. If you need to test earlier, please contact the Tech Support channel to request an exception.
Real payment tests are non-refundable, so please proceed with caution.
QIs there a minimum payment amount for products?
Yes, there is a minimum payment threshold:
- USD: Minimum of $0.5
- KAIA: Minimum of 0.01 KAIA
QIs it mandatory to apply exchange rates for Crypto payment products?
Yes, you must provide a converted price based on the current market rate. This ensures transparency for users and accuracy in payment processing. While the SDK does not provide exchange rate conversion, you can use external services such as:
- CoinMarketCap(CMC)
- Kaiascan Open API
QWhy is it necessary to provide a payment history feature?
Users must be able to view their own payment history, which:
- Increases user trust
- Helps customer support(CS) by referencing
paymentIdand other data
openPaymentHistory() function, so please implement this in:- The In-App Store page, or
- Any other screen that users frequently visit.
LINE Integration
QHow do I create a LINE Developers account?
Developers must create a LINE Business ID (Provider) using their personal LINE account or email address.
- Shared or team accounts are not supported in Unifi.
QWhat is the difference between LINE MINI App and LINE Login LIFF?
- LINE MINI App
- Only Japanese corporations or sole proprietors can onboard.
- The service can be provided only to LINE users in Japan.
- Must comply with App Store policies.
- LINE Login LIFF
- No onboarding restrictions.
- Can serve global LINE users.
- Not subject to App Store constraints (Web-based).
| Item | LINE MINI App | LINE Login LIFF |
|---|---|---|
| Onboarding Requirements | Only for companies with a Japanese Corporate Number or individual business owners residing in Japan | - |
| App Store Policy Compliance | Required | Not applicable |
| Target Users | Japan LINE users | Global LINE users |
| LIFF SDK Usage | Yes | Yes |
| Unifi Apps SDK Usage |
|
|
QWhy am I getting a 403 error when accessing the LINE Login LIFF version?
LIFF URLs are inaccessible if the LINE Login channel is not in Published status.Please switch to Published mode when submitting your Demo or performing tests.
QIs it okay to publish the LINE Login LIFF version before launch?
Yes. As long as you do not share the LINE Login LIFF URL or test domain externally, general users won't have access.Publishing early can help streamline Demo submission and testing.If you must test without publishing, you can add the reviewer's email as an admin to the LINE Login channel.
Web3 Provider
QWhat causes the error: "Sending transaction was failed after ~ try, network is busy"?
This is a temporary error caused by high network traffic.If this occurs, simply retry the transaction — it should eventually succeed.